ESwitchDetailsPanel is a panel which will ultimately contain 48 jpanels, one for every port on the switch. I only showed the one to the router in the example for simplicity.

My thinking is

jframe contains jpanel and jlable where jlabel has switch jpeg.
next create eswitchDetails jpanel of 48 port jpanels where the 48 port jpanels do lots of work related to status - tooltips, bordercolor, listener. Amazingly, this part works.

I add eswitchDetails panel to frame and set opaque = false, should I also set the 48 port panels false, too? I'll have to try it.

Is there a better way to do this?

I had also successfully painted the image directly on the jframe, but still had problems with transparency, so I switched to the jlabel approach just to try something different. I will freely admit Java GUIs are a bit over my head (understatement of the year!)


Maureen