aspose file tools
The moose likes Swing / AWT / SWT and the fly likes changing panel color on right click Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "changing panel color on right click" Watch "changing panel color on right click" New topic
Author

changing panel color on right click

Vinod Venugopal
Ranch Hand

Joined: Dec 06, 2000
Posts: 148
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


- Vinod<br />-------<br />SCJP2
Martin webster
Greenhorn

Joined: Jun 20, 2001
Posts: 20
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...

Martin
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: changing panel color on right click
 
Similar Threads
Loading and unloading panels on one side of JSplitPane
How do I find out if a change has been made on a panel
Calculating size-accordance between Main Panel & Child Panel.
component colors
Do I need to refresh?