• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

changing panel color on right click

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic