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 JTree focuslistener problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree focuslistener problem" Watch "JTree focuslistener problem" New topic

JTree focuslistener problem

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150

I have posted this topic once but I didnt receieve any reply. So I am posting it again .
I want to add focuslistener to each tree node so that we focus gets lost from particular tree node I want to validate information associated with it.
So I hope reply this time...

Any alternative solution to this other than focuslistener...??


~ Anand,
SCJP 1.5, SCWCD 1.5
Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150

I have implemented using SelectionListener...
It is sorta covered in the JavaRanch Style Guide.
subject: JTree focuslistener problem
jQuery in Action, 3rd edition