Package javax.swing

Examples of javax.swing.JInternalFrame.validate()


    JInternalFrame jif = new JInternalFrame();   
    Dimension size = new Dimension(100, 100);
    jif.setLayout(new GroupLayout());
    jif.setSize(size);
    JavaUtil.layoutContainer(jif);
    jif.validate();
    jif.addNotify();
    desktopPane.add(jif);
    jif.setVisible(true);
    return jif;
  }
View Full Code Here


      WidgetAdapter target = adaptable.getDropWidget().get(0);
      JMenuBar jmb = (JMenuBar) target.getWidget();
      JInternalFrame jframe = (JInternalFrame) adaptable.getWidget();
      jframe.setJMenuBar(jmb);
      target.requestNewName();
      jframe.validate();
      adaptable.doLayout();
      adaptable.validateContent();
      adaptable.clearAllSelected();
      target.setSelected(true);
      adaptable.setDirty(true);
View Full Code Here

            // Last area stretched to fill remaining space
            int modifier = (count < rows * noOfColumns && i == count - 1)
                ? rows * noOfColumns - count + 1 : 1;
            iFrame.setLocation(xCoord, yCoord);
            iFrame.setSize(newWidth * modifier, newHeight);
            iFrame.validate();
        }
    }

    /**
     * Cascade all internal frames.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.