Examples of DockConstraints


Examples of net.sf.swingdocking.DockConstraints

    public void moveFrame(JComponent frame, int newX, int newY) {
    JDesktopPane desktop = getDesktopPane(frame);
    LayoutManager2 layoutManager = (LayoutManager2)desktop.getLayout();
    Component componentToDock = desktop.getComponentAt(newX, newY);
    if (componentToDock != null && componentToDock != frame) {
      layoutManager.addLayoutComponent(frame, new DockConstraints(componentToDock, getDockLocation(componentToDock, newX, newY)));
      layoutManager.layoutContainer(desktop);
    }
    if (frame instanceof JInternalFrame) {
      setSelected((JInternalFrame)frame);
    }
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.