Solved

JSplitPane dividend bar

Posted on 2006-07-23
6
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

734 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