private void jCheckBox1İtemStateChanged(java.awt.event.ItemEvent evt);
Seçim durumunu kullanmak için evt metodunu şöyle kullanmamız gerekir.
int secimdurumu=evt.getStateChange();//change seçim anlamındadır.
if (secimDurumu==ItemEvent.SELECTED)
if (secimDurumu==ItemEvent.DESELECTED)
gibi kontrollerle kullanılabilir
Hiç yorum yok:
Yorum Gönder