2 Attachment(s)
Add JsplitPanes in XYChart
Hi all,
I have a problem using JSplitPanes in a JavaFX XYChart: the attached files plots a Frame in which there is an HORIZONTAL_SPLIT JsplitPane, and a FX XYChart in the Test Graph tab.
Attachment 3824
Now I would like to add sub-graphs (as VERTICAL_SPLIT JSplitPane) to this chart by clicking on the "Add Split Pane To Graph" button and it does, but the result is not what I am expecting
Attachment 3825
The JSplitPane is added but the XYChart collapse, and line plot disappear.
There must be something I am missing since if I do the same selecting Tab1, Add an Internal Frame then add split pane all works fine (Tab1 -> "Add Int Frame" button, -> "Add Split Pane" button).
Any help greatly appreciated
PS There are some problems also for attachments: the window for add attachements apperas but it always stay grey and no way to add files, will try later to add all my codes
Re: Add JsplitPanes in XYChart
Well, "Manage Attachments" button do not work anymore, window appear but it always stays blank and I can't upload my code I hope it will works later, if there is not another solution to share my codes.
Susie
Re: Add JsplitPanes in XYChart
Are you talking about javax.swing.JSplitPane or javafx.scene.control.SplitPane? If the former, why are you trying to mix Swing and FX?
What class is the window titled "test" in your screenshot? If that's a Swing class, have you studied the tutorial Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing) Swing top level windows have a default java.awt.BorderLayout.
Quote:
if there is not another solution to share my codes.
To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem. Not tons of code unrelated to the problem.
db
Re: Add JsplitPanes in XYChart
Thanks DarrylBurke, as you pointed out I think my problems come from mixing Swing and Fx.
I will study the lesson you suggest and will ask for more help only if I can't solve.
Susie
1 Attachment(s)
Re: Add JsplitPanes in XYChart
After all this time, I was able to solve the problem
Attachment 3957
It's been very hard for me, but finally now I can say this question is closed.
Thanks all