JSplitPane dividend bar

We have in JAVA “JSplitPane” that has a line that divide the areas of the layout; this line is a moveable line to resize the frame’s parts.

So, how to fix this line and make it size can be changed?

Is there method for it like the one for the frame?

frame.setResizable(false) ;


-------------------------------------------------------

JSplitPane splitPane = new JSplitPane()
javamate06Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJConnect With a Mentor Commented:
Try

sp.setEnabled(false)
0
 
javamate06Author Commented:
I saw this site before but I could not find the method for setting the divider unresizable.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CEHJCommented:
I thought this is what you want?

>>So, how to fix this line and make it size can be changed?
0
 
javamate06Author Commented:
No!

>>>So, how to fix this line and make the size of the two parts can
>>>NOT
>>>be changed?


0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.