meow00
asked on
print a number (string) in a Frame ...
Hi Experts,
How do I print a number (or a string) at a certain location of a frame ? thanks !
How do I print a number (or a string) at a certain location of a frame ? thanks !
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use a null layout and add a Lael at the required location.
(assuming Swing)
Label l = new Label("Hello");
frame.setLayout(null);
frame.add(l);
label.setBounds(x, y, w, h);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
objects: wouldn't you set the layout of the content pane to null in the swing example?
i.e.:
frame.getContentPane().set Layout(nul l);
i.e.:
frame.getContentPane().set
> objects: wouldn't you set the layout of the content pane to null in the swing example?
correct, missed that when showing the swing difference.
correct, missed that when showing the swing difference.
Ok, good. I don't feel so confused any more. ;)