Solved

JSplitPane dividend bar

Posted on 2006-07-23
6
399 Views
Last Modified: 2008-02-01
We have in JAVA “JSplitPane” that has a line that divide the areas of the layout; this line is a moveable line to resize the frame’s parts.

So, how to fix this line and make it size can be changed?

Is there method for it like the one for the frame?

frame.setResizable(false) ;


-------------------------------------------------------

JSplitPane splitPane = new JSplitPane()
0
Comment
Question by:javamate06
  • 4
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162467
0
 

Author Comment

by:javamate06
ID: 17162516
I saw this site before but I could not find the method for setting the divider unresizable.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162541
I thought this is what you want?

>>So, how to fix this line and make it size can be changed?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:javamate06
ID: 17162553
No!

>>>So, how to fix this line and make the size of the two parts can
>>>NOT
>>>be changed?


0
 
LVL 86

Accepted Solution

by:
CEHJ earned 30 total points
ID: 17162571
Try

sp.setEnabled(false)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17162581
:-)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 38
Java JRE greater than 1.6 5 62
Maven Project: Hibernate Dependencies Conflict 10 22
ejb on wildfly 5 20
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

777 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