Example usage for javax.swing JInternalFrame getLocationOnScreen

List of usage examples for javax.swing JInternalFrame getLocationOnScreen

Introduction

In this page you can find the example usage for javax.swing JInternalFrame getLocationOnScreen.

Prototype

public Point getLocationOnScreen() 

Source Link

Document

Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.

Usage

From source file:com.github.srec.rec.DefaultScreenShot.java

private Rectangle getScreenSize(JInternalFrame iframe) {
    Point p = iframe.getLocationOnScreen();
    Rectangle r = iframe.getBounds();
    r.setLocation(p);//from  ww  w.  ja v a 2  s.com
    return r;
}