Solved

Unable to move JSplitPane.

Posted on 2000-04-25
2
377 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
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

763 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

6 Experts available now in Live!

Get 1:1 Help Now