permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes Generic Tag Listener - Request for Comment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Generic Tag Listener - Request for Comment" Watch "Generic Tag Listener - Request for Comment" New topic

Generic Tag Listener - Request for Comment

Paul McKenna

Joined: Jan 17, 2003
Posts: 8
I have developed a GenericTagListener class which (I Hope..) will help developers who frequently need to use JTrees in combination with other components in their GUI's
Basically the idea is that there are 3 maps
1. Component Map
2. Value Map
3. Component Type Map
In the component map you register a component key with a component. In the value map the listener will automatically register the value of the component in the map. The Component Type map is again done by you.
Please let me know if anyone has any ideas to improve this code.
It is sorta covered in the JavaRanch Style Guide.
subject: Generic Tag Listener - Request for Comment
Similar Threads
Dynamic class type declaration
How to use struts custom tags to handle this scenario?
JTable usage
JFormattedTextField MaskFormatter issues: Please Help its urgent
is it worth adding a class to distinguish types