3 Replies Latest reply on Dec 9, 2003 10:42 AM by 807587

    How to resize the JInternalFrame?? reshape() setMaximum(true) didn't work!

    807577
      How to resize the JInternalFrame?? I tried reshape() setMaximum(true) but didn't work. Any ideas??

      JInternalFrame iframe = new JInternalFrame(t,
      true, // resizable
      true, // closable
      true, // maximizable
      true); // iconifiable

      iframe.getContentPane().add(c);
      //why doesn't change the size no matter what number I put??
           iframe.reshape(0, 50, 300, 50);

      /**
      The following will throw java.lang.NullPointerException
      at javax.swing.DefaultDesktopManager.maximizeFrame(DefaultDesktopManager
      .java:87)
      */
      /**     
           try
           {
           iframe.setMaximum(true);
           }
           catch (PropertyVetoException e)
           {
           }
      */