Example usage for javax.swing JFrame findComponentAt

List of usage examples for javax.swing JFrame findComponentAt

Introduction

In this page you can find the example usage for javax.swing JFrame findComponentAt.

Prototype

public Component findComponentAt(Point p) 

Source Link

Document

Locates the visible child component that contains the specified point.

Usage

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

private JInternalFrame findInternalFrame(JFrame frame) {
    Point mouseLocation = MouseInfo.getPointerInfo().getLocation();
    Component component = frame.findComponentAt(mouseLocation);
    return findInternalFramesubdir(component);
}