jcheckbox.isSelected()
boolean checked = c1.getState(); if(c1.getState()) { //c1 is checked } else if (c2.getState()) { // }