JavaSwing-ItemListener接口

The listener interface to receive project events. Event handling projects of interest to the class will implement this interface. Then use the object class created using the component method addItemListener registered with a component. Project selection event occurs, it will call the method itemStateChanged listener object.

Handling ItemEvent should implement this interface. The class object must be a registered component. You can use addItemListener () method to register the object. When the operation event occurs, it will call the object's method itemStateChanged

  • Called when the user select or deselect an item. Perform you need to do when choosing (or deselect) the project for this purpose coding method.
Published 430 original articles · won praise 1176 · Views 590,000 +

Guess you like

Origin blog.csdn.net/qq_33589510/article/details/105365029