Ver originalpublic class UnaClase implements ActionListener { JCheckBox unCheckBox; JButton unBoton; boolean unaVariable; public void unMetodoQueSea () { unaVariable= ....; } public void actionPerformed (ActionEvent e) { if (unaVariable) { ..... }}