I have a frame in which I would like to use no layout manager so that I
can directly position elements where I want them.

I use the following code, in the constructor of a class that descends
from Frame:

setSize(600,380);
setLayout(null);
Label label=new Label("Hi there");
label.setBounds(10,10,200,20);
add(label);

Is there anything wrong with this?  This is what I do on other platforms
and works fine.  However, unless I use a layout manager, I cannot see
this label show up on the window.
--
Kevin White, Software Engineer
Envision Telephony
[EMAIL PROTECTED]
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to