Link to home
Start Free TrialLog in
Avatar of sugi v
sugi v

asked on

Leftpane size be greater than Rightpane in JSplitpane

Also, I have a doudt in JSplitPane. By default rightpane size be greater than leftpane. But i want both leftpane and rightpane be the same size or leftpane size will be greater than the rightpane. How can i do in java application using netbeans?
Avatar of zzynx
zzynx
Flag of Belgium image

Not sure if I understand what you're exactly asking, but it seems to me that you probably need to read the article How to Use Split Panes

The JSplitPane has a method setDividerLocation() that lets YOU determine where to put the split, so that should solve your problem, no?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.