boolean (AbstractButton checkBox) { Rectangle cellPosition = (Rectangle)checkBox.getClientProperty(UIUtil.CHECKBOX_PRESSED_PROPERTY); return cellPosition != null && cellPosition.getBounds().equals(checkBox.getBounds()); }