I have a Jpanel with some widgets on it that I created in Netbeans IDE as a new class ApcUps_Panel
As I detect different APC UPS's sending a UPD broadcast on the network, I want to add one ApcUps_Panel inside a Jframe for each UPS seen on the network.
I am a beginner to Java.
In a nutshell how would I do this?
AcUps_Panel myApcUps_Panel = new ApcUpsPanel();
will create a new jpanel object right?
I need to give it a UPS name feild and draw it on the Jframe at the top down such that each Jpanel is added beloow the last one and a vert scroll bar is created when the JFrame reached the limit of the desktop.
The Jframe should also grow vertically.