java jcheckbox mendapatkan nilai

boolean selected = checkBox.isSelected();
Zwazel