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