Example usage for java.awt.event ItemEvent getID

List of usage examples for java.awt.event ItemEvent getID

Introduction

In this page you can find the example usage for java.awt.event ItemEvent getID.

Prototype

public int getID() 

Source Link

Document

Returns the event type.

Usage

From source file:Main.java

public void itemStateChanged(ItemEvent ie) {
    System.out.println(ie.getID() == ItemEvent.ITEM_STATE_CHANGED);
}

From source file:Main.java

public void itemStateChanged(ItemEvent ie) {
    System.out.println(ie.getID() == ItemEvent.ITEM_FIRST);
}

From source file:Main.java

public void itemStateChanged(ItemEvent ie) {
    System.out.println(ie.getID() == ItemEvent.ITEM_LAST);
}