Solved

Unable to move JSplitPane.

Posted on 2000-04-25
2
383 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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 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…
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…

729 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