首頁
返回
繼續
最後一頁
摘要
圖形
CheckBox與Radio
JCheckBox:用來建立CheckBox
JradioButton:用來建立Radio Button
處理物件是ItemListener
處理方法是itemStateChanged(ItemEvent e)
getSource():可以用來看看是那個物件發出event的
Radio必須用ButtonGroup來集合成一群,以做到「一組中只選定一個」的功能