samedi 3 octobre 2015

The name of my checkbox can not be resolved

I have a problem with my checkbox. When I try to read the state of it the name of it can not be resolved.

JCheckBox checkbox1 = new JCheckBox("Test");
    checkbox1.setBounds(6, 59, 121, 23);
    frmTree.getContentPane().add(checkbox1);

public void Checkbox() {

if (checkbox1.isSelected()) {
Sytem.out.println("Selected");
        }}




Aucun commentaire:

Enregistrer un commentaire