class ScrollbarSample.secondListener extends Object implements ItemListener
Modifier and Type | Field and Description |
---|---|
(package private) Choice |
a |
(package private) Color |
colorChoice |
String |
colorName
String value containing the name of the selected color.
|
Constructor and Description |
---|
ScrollbarSample.secondListener(Choice a2) |
Modifier and Type | Method and Description |
---|---|
void |
itemStateChanged(ItemEvent e)
This method is executed by the system whenever
the value in the pull-down menu.
|
Color colorChoice
public String colorName
Since this is a public value, it can be read and changed by other objects.
ScrollbarSample.secondListener(Choice a2)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener