aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Node selection in JTree stops working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Node selection in JTree stops working" Watch "Node selection in JTree stops working" New topic

Node selection in JTree stops working

Rupert Brown

Joined: Jul 29, 2009
Posts: 17
I am wondering if anybody else has seen this behaviour - I have a Java 6 SE application - in a .jar file - that contains a JTree. It was running on my Windows XP laptop at work. The administrators applied a security patch to XP and now node selection on the JTree component no longer works. Everything else on the GUI seems OK - any ideas as to why that might happen?
Darryl Burke

Joined: May 03, 2008
Posts: 4811

Create a small program -- an SSCCE -- that only creates a JTree, wraps it in a JScrollPane and adds the scroll pane to a JFrame (or shows it in a JOptionPane messageDialog). If node selection works in the sample program, you have a bug in your code. If it doesn't there are two things I can think of that you might like to try:
  • Check for updates to your Graphics drivers
  • Reduce hardware graphics accelleration

  • luck, db
    There are no new questions, but there may be new answers.
    Don't get me started about those stupid light bulbs.
    subject: Node selection in JTree stops working