@Override public boolean isPressed(){
  boolean b=shouldActLikeButton() ? pressed : super.isPressed();
  return b || (pressedWhenPopupVisible && comboBox.isPopupVisible());
}

@ Override public boolean isPressed ( ) { boolean b = shouldActLikeButton ( ) ? pressed : super . isPressed ( ) ; return b || ( pressedWhenPopupVisible && comboBox . isPopupVisible ( ) ) ; }
indicates if the button is pressed .
