JCheckBox checkbox = new JCheckBox("Checkbox"); checkbox.setEnabled(false);
JCheckBox checkbox = new JCheckBox("Checkbox"); checkbox.setEnabled(true);In this example, the checkbox is enabled using the `setEnabled` method with a value of `true`. The package library for the javax.swing JCheckBox is javax.swing.