Example usage for java.awt Container getComponentAt

List of usage examples for java.awt Container getComponentAt

Introduction

In this page you can find the example usage for java.awt Container getComponentAt.

Prototype

public Component getComponentAt(Point p) 

Source Link

Document

Gets the component that contains the specified point.

Usage

From source file:Main.java

public static final Component getChildAt(Container container, Point p) {
    Component c = container.getComponentAt(p);
    return c == null || c.getParent() != container ? null : c;
}