Solved

Unable to move JSplitPane.

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

628 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