11-26-2009, 10:23 AM
Join Date: Nov 2009
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | question about displaying button field and grahics line on the screen
Please Login to Remove!
I want to display a button field and a line on the screen. code:
ButtonField myButton1 = new ButtonField("hello");
XYEdges b1 = new XYEdges();
b1.set(5, 10, 5,10);
Graphics GUI = this.getGraphics();
GUI.drawLine(25, 275, 55, 275);
however, only the button can be showed on the screen. The line will disappear once "this.add(myButton1)" is called.
how can I solve it?