Results 1 to 2 of 2
  1. #1
    SwinGirl is offline Member
    Join Date
    Nov 2007
    Posts
    24
    Rep Power
    0

    Angry JSplitPane nightmare

    hi everybody!
    I have a problem with two JSplitPane, and i spent two days working on it, for nothing.
    ŽŽ

    itīs quite simple: I CANīT SET CORRECTLY THE DIVIDER LOCATION!
    i tryed EVERYTHING.

    superiorSplitPane.setDividerLocation(superiorSplit Pane.getWidth()/2);
    superiorSplitPane.setDividerLocation(0.50);

    a LOT of etcs...
    And still canīt set in the middle, the divider.

    I got a splitPane, with 2 JPane at each side, and a table on each Jpanel.

    does anybody know some trick? :confused::confused:

  2. #2
    lonelyShoes is offline Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

    Default

    Hi SwinGirl,

    Have you taken a look at the JSplitPane portion of the Swing Tutorial over on Sun's site? It goes into the details of the different properties of the JSplitPane that you need to set to get the desired behavior. Just off the top of my head, I think you need set the minimum sizes for the components in your split pane, set the resize weight, and set the split location. (Just setting the split location isn't enough, by itself.) Here is a link that presents what I'm talking about in more detail.
    HTH

Similar Threads

  1. I need create a JSplitPane
    By Daniel in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 06:12 AM

Posting Permissions

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