This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree Display problem

Bonagiri UmaMaheshwar Rao
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JTree to display my project structure. But Tree nodes are not displayed fully. It is displyaying partially. I need to explicitly double click on each node to display its name fully. This is happening to its child nodes also. The code i have is as follows.

The sample code in init method is as follows.

public void init()
JTree gclsTree = getTree();
JScrollpane gclsTreeView = new JScrollPane(gclsTree);
getContentPane().add(gclsTreeView, BorderLayout.CENTER);

I am adding my tree to the ScrollPane and adding it to the ContentPane of the applet. How to display full name of the TreeNode.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic