Example usage for javax.swing JDesktopPane getBounds

List of usage examples for javax.swing JDesktopPane getBounds

Introduction

In this page you can find the example usage for javax.swing JDesktopPane getBounds.

Prototype

public Rectangle getBounds() 

Source Link

Document

Gets the bounds of this component in the form of a Rectangle object.

Usage

From source file:com.g2inc.scap.editor.gui.windows.EditorMainWindow.java

public void cascade(JDesktopPane desktopPane) {
    JInternalFrame[] frames = desktopPane.getAllFrames();
    if (frames.length == 0) {
        return;//from  w  ww .java  2s . co  m
    }

    cascade(frames, desktopPane.getBounds(), 24);
}

From source file:com.g2inc.scap.editor.gui.windows.EditorMainWindow.java

public void cascade(JDesktopPane desktopPane, int layer) {
    JInternalFrame[] frames = desktopPane.getAllFramesInLayer(layer);
    if (frames.length == 0) {
        return;//from   w ww .j  a v  a2s.co m
    }

    cascade(frames, desktopPane.getBounds(), 24);
}