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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Node selection in JTree stops working" Watch "Node selection in JTree stops working" New topic
Author

Node selection in JTree stops working

Rupert Brown
Greenhorn

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
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

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.
     
    jQuery in Action, 2nd edition
     
    subject: Node selection in JTree stops working