File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 5115

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.
    I agree. Here's the link:
    subject: Node selection in JTree stops working
    It's not a secret anymore!