Type: Posts; User:
I'm not 100% sure what fixed my problem but I did get it working.
I deleted the first jpanel where I had the added the label containing the jpeg, instead I just added the...
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
I would try changing
ActionListener listen = new ClickListener (); to
ClickListener listen = new ClickListener ();
If you are interested in mouse clicks you can play around with...
I am writing a Java program which is supposed to display a "picture" of a switch and then add status boxes over each port. These boxes which I implemented as jpanels change color based on the status...
Click Here to Expand Forum to Full Width