Solved

JSplitPane dividend bar

Posted on 2006-07-23
6
401 Views
Last Modified: 2008-02-01
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()
0
Comment
Question by:javamate06
  • 4
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162467
0
 

Author Comment

by:javamate06
ID: 17162516
I saw this site before but I could not find the method for setting the divider unresizable.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162541
I thought this is what you want?

>>So, how to fix this line and make it size can be changed?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:javamate06
ID: 17162553
No!

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


0
 
LVL 86

Accepted Solution

by:
CEHJ earned 30 total points
ID: 17162571
Try

sp.setEnabled(false)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162581
:-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 64
MySqlDump not dumping triggers 1 53
Adding multiple JVM environments to RedHat 6 7 69
web project error add remove 1 49
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question