The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Data Validation while moving to a new node in JTree

Posted by Tarun on February 07, 2001 at 11:58 AM

I want to validate data on the pane associated with old JTree node which is going out of focus when a user clicks on a new node.

In generic controls, we could listen for the event, and consume() it on failure of data validation. but TreeSelectionEvent (the event which gets fired when a new node is selected) doesn't provide consume() method.

Thanking in advance for any solutions to this problem.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us