Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Selection of Panel" Watch "Selection of Panel" New topic

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
I agree. Here's the link:
subject: Selection of Panel
It's not a secret anymore!