Example usage for java.awt.event ComponentEvent COMPONENT_FIRST

List of usage examples for java.awt.event ComponentEvent COMPONENT_FIRST

Introduction

In this page you can find the example usage for java.awt.event ComponentEvent COMPONENT_FIRST.

Prototype

int COMPONENT_FIRST

To view the source code for java.awt.event ComponentEvent COMPONENT_FIRST.

Click Source Link

Document

The first number in the range of ids used for component events.

Usage

From source file:Main.java

@Override
public void componentShown(ComponentEvent evt) {
    System.out.println(evt.getID() == ComponentEvent.COMPONENT_FIRST);
}

From source file:Main.java

@Override
public void componentShown(ComponentEvent evt) {
    System.out.println(evt.getID() == ComponentEvent.COMPONENT_FIRST);
    ComponentEvent event = new ComponentEvent((Component) evt.getSource(), ComponentEvent.COMPONENT_MOVED);

}