Results 1 to 2 of 2
Thread: JSplitPane nightmare
- 04-03-2008, 11:34 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 24
- Rep Power
- 0
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:
- 05-01-2008, 09:24 PM #2
Member
- Join Date
- May 2008
- Posts
- 6
- Rep Power
- 0
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
-
I need create a JSplitPane
By Daniel in forum AWT / SwingReplies: 1Last Post: 07-05-2007, 07:12 AM
Bookmarks