On Mon, 08 Mar 1999 15:03:49 -0700, Kevin White wrote:

>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.

Where is the addNotify()?  (Just a guess...  But that is what sets up
the peer...)

Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz



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

Reply via email to