Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By susieferrari

Thread: Add JsplitPanes in XYChart

  1. #1
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

    Default 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.

    Add JsplitPanes in XYChart-a01844.jpg

    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

    Add JsplitPanes in XYChart-a01845.jpg

    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
    Last edited by susieferrari; 05-28-2012 at 12:19 PM.

  2. #2
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

    Default 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

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default 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.

    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
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

    Default 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

  5. #5
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

    Default Re: Add JsplitPanes in XYChart

    After all this time, I was able to solve the problem

    Add JsplitPanes in XYChart-a01974.png

    It's been very hard for me, but finally now I can say this question is closed.

    Thanks all
    DarrylBurke likes this.

Similar Threads

  1. Zoom on XYChart + draw freehand
    By susieferrari in forum JavaFX
    Replies: 5
    Last Post: 07-26-2012, 03:54 PM
  2. Draw text and lines on a XYChart
    By susieferrari in forum JavaFX
    Replies: 2
    Last Post: 04-11-2012, 04:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •