Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unable to move JSplitPane.

Posted on 2000-04-25
2
Medium Priority
?
386 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 120 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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 …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

971 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