• Post Reply Bookmark Topic Watch Topic
  • New Topic

changing panel color on right click

 
Vinod Venugopal
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I got some panels with imageicons in each of them, when I right click on each of these panels I want to let the user know its selected, so that means I got to draw some border around the panel or change the panel color, how do i do it on right click?..do i have to add mouselisteners or is there any other alternative? Pls reply asap.
Regards,
Vinod
 
Martin webster
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would probably just use a series of buttons... they will give you the required behaviour, and with the ability to attach a button group you can guarentee that only one is selected....
Another approach is to use a List with a custom listRenderer. The renderer can display an image, and a border can be easily attached...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!