Java AWT Choice

The object of Choice class is used to show popup menu of choices. Choice selected by user is shown on the top of a menu. It inherits Component class.

AWT Choice Class Declaration

public class Choice extends Component implements ItemSelectable, Accessible

Java AWT Choice Example

Flash Soon


Output:

Java AWT Choice Example with ActionListener

Flash Soon


Output:


Advertisement

Copyright ©2017 Design& develop