By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,806 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,806 IT Pros & Developers. It's quick & easy.

Disable a Node in JTree

P: 1
Hi I Want to disable a node in JTree using FileSystemModel .Please give me Some Suggestion to do that.I am trying this like below but could not get Response.

Expand|Select|Wrap|Line Numbers
  1.  
  2. DisabledNode node = (DisabledNode)jTree1.getLastSelectedPathComponent();
  3.         node.setEnabled(false);
  4.  
  5.  
  6.  
Thanks
Jun 14 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.