?
Solved

JTree:  hide the connecting lines between nodes

Posted on 2005-04-12
2
Medium Priority
?
1,096 Views
Last Modified: 2006-11-18
Hi

I need to hide the connecting lines on some trees in our application, (but not on all trees).
The app uses a number of look and Feels (some from JideSoft inc) for Windows and Metal.
I have experimented with     tree.putClientProperty("JTree.lineStyle", "None");
but this only works on Java look and feel, not Windows types.
I have also tried     UIManager.put("Tree.paintLines", Boolean.FALSE);
but this turns them off across the entire application.

Any ideas?
Thanks
0
Comment
Question by:richard_fairall
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 13769671
The UI properties should only apply to any trees created *after* you change the property.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month15 days, 22 hours left to enroll

850 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