Solved

JSplitPane dividend bar

Posted on 2006-07-23
6
402 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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

739 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