On Fri, 27 Nov 1998, Karthik Vishwanath wrote:

>       when i create an application as :
> public class Myapp extends Frame
> {
>       public Myapp()
>       {
>         super("MyApp");
>         setSize(100,100);
>         show();
>       }
> }
> 
> and run it, the setSize does not resize the frame.
> 
>       Can anyone tell me what must i do inorder to resize a frame?

I run things in this order with no problems:

   pack();
   setSize(x, y);
   show();


Try the pack method, even though you have nothing to pack.  :)  If you
run pack after show, the size will change.  You'll have to look at
your code to see where you run your layout stuff.

Sean

                 === Friends don't let friends use DOS... ===
  Sean Starkey  [EMAIL PROTECTED]  WWW: http://rmi.net/~starkey  ICQ: 4863014
            Check out Universe! - http://rmi.net/~starkey/Universe

Reply via email to