View Full Version : [JAVA] JCheckBox help evento
come fai capire se un checkBox è attivo?
come fai capire se un checkBox è attivo?Per attivo intendi che ha il focus? O che è marcato?
Per attivo intendi che ha il focus? O che è marcato?
focus??
si attivato cmq trovato dovrebbe essere setSelected!
focus??
si attivato cmq trovato dovrebbe essere setSelected!Una cosa è il focus e un'altra cosa è lo stato selezionato/deselezionato del checkbox.
Per il focus vedi: isFocusOwner() e addFocusListener()
Per la selezione vedi: isSelected(), setSelected(), addActionListener() / addItemListener()
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.