aspose file tools*
The moose likes Java in General and the fly likes Selection of Panel 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 » Java in General
Bookmark "Selection of Panel" Watch "Selection of Panel" New topic
Author

Selection of Panel

Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
Dear Readers,
In regard to my Chat application, I also wanted to add the feature where the list of users were listed with some info about each user such as his image and name, etc.
I want to give the user the capability of "selecting" a user info such that that particular region changes colour, giving it the impression of being selected.
I have till now tried listing the names of users in a JPanel. Can I attach mouse listeners to a JPanel to detect changes that occur there?


With Best Regards,
Shyam Prasad Murarka
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Selection of Panel