Re: How to set a button's position in an applet?
Posted By:
Prashanth_Sukumaran
Posted On:
Sunday, September 15, 2002 02:11 AM
Hi Henry,
Did you try the setBounds(Rectangle r) method. The Buttons new position is specified by r.x and r.y, and its new size is specified by r.width and r.height.
Also you need to set the Layout of the Panel where you are adding the button, to "null", but ofcourse you know the disadvantages of setting a null layout.
Prashanth Sukumaran.