Package net.sf.swingdocking

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

Related Classes of net.sf.swingdocking.DockConstraints

Copyright © 2018 www.massapicom. 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.