A
andrewm1986
Hey all.
When a user clicks on something I want to add a new control to a panel
in my frame with an XYLayout.
This is the code I have.
GUI.Components.Component c = null; //My packages
....
c = new SomeComponentICreated();
pnlMain.add("10,10,50,20",c);
System.out.println(c.isVisible());
System.out.println(pnlMain.getComponentCount());
Output is
true
1
true
2
If I do it twice, but I cannot see my controls!
Andrew
When a user clicks on something I want to add a new control to a panel
in my frame with an XYLayout.
This is the code I have.
GUI.Components.Component c = null; //My packages
....
c = new SomeComponentICreated();
pnlMain.add("10,10,50,20",c);
System.out.println(c.isVisible());
System.out.println(pnlMain.getComponentCount());
Output is
true
1
true
2
If I do it twice, but I cannot see my controls!
Andrew