Solved

Unable to move JSplitPane.

Posted on 2000-04-25
2
378 Views
Last Modified: 2008-03-04
I have a frame with Horizontal Split. My right panel has nested panels using different layout managers. I am able to move the splitter towards the left, but can't move it towards right. In other words, I cannot make my right panel smaller using splitter.

I have used the followng:

      setOneTouchExpandable(true);
      setContinuousLayout(true);
      setDividerLocation(150);

Any suggestions?

Thanks.

Theta

0
Comment
Question by:theta
2 Comments
 
LVL 7

Accepted Solution

by:
conick earned 30 total points
ID: 2748479
JSplitPane looks at the minimum sizes of components to decide how far it can expand.
You may have to explicitly set the minimum size of the right panel with
panel.setMinimumSize(Dimension);
0
 

Author Comment

by:theta
ID: 2748633
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

937 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now