| ItemListener | เป็น Interface ในการ ดักฟังเหตุการณ์ ของการทำงานของ item |
|---|
interface:ItemListener
content:เป็น Interface ในการ ดักฟังเหตุการณ์ ของการทำงานของ item เช่น JCheckBox, JRadioButton, JToggleButton โดยมี abstract method คือ itemStateChanged คือจะทำงานเมื่อ component ถูกเปลี่ยนแปลงสถานะ
structure:Public Interface ItemListener { public abstract void itemStateChanged ( ItemEvent e ); }