Java java.awt Choice fields, constructors, methods, implement or subclass

Example usage for Java java.awt Choice fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Choice.

The text is from its open source code.

Subclass

java.awt.Choice has subclasses.
Click this link to see all its subclasses.

Constructor

Choice()
Creates a new choice menu.

Method

voidadd(String item)
Adds an item to this Choice menu.
voidaddItem(String item)
Obsolete as of Java 2 platform v1.1.
voidaddItemListener(ItemListener l)
Adds the specified item listener to receive item events from this Choice menu.
StringgetSelectedItem()
Gets a representation of the current choice as a string.
voidremoveAll()
Removes all items from the choice menu.
voidsetEnabled(boolean b)
Enables or disables this component, depending on the value of the parameter b .