Example usage for java.awt Event LIST_SELECT

List of usage examples for java.awt Event LIST_SELECT

Introduction

In this page you can find the example usage for java.awt Event LIST_SELECT.

Prototype

int LIST_SELECT

To view the source code for java.awt Event LIST_SELECT.

Click Source Link

Document

An item in a list has been selected.

Usage

From source file:BenchmarkApplet.java

public boolean handleEvent(Event evt) {
      if (evt.target == testList) {
          if (evt.id == Event.LIST_SELECT || evt.id == Event.LIST_DESELECT)
              if (timeEstimate != null)
                  timeEstimate.setText(getTimeEstimate());
      }//  w w w  . j  a  v a  2s .  co m
      return super.handleEvent(evt);
  }