Rectangle cbBounds = comboBox.getBounds();   Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, cbBounds.y + borderInsets.top, cbBounds.width - arrowButtonWidth - borderInsets.left - borderInsets.right, cbBounds.height - borderInsets.top - borderInsets.bottom);
Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height);
  protected Rectangle rectangleForCurrentValue()  {    Rectangle cbBounds = comboBox.getBounds();    // Subtract width or the arrow button and border insets	        Rectangle rectForCurrentValue = new Rectangle(cbBounds.x                                                  + borderInsets.left,                                                  cbBounds.y                                                  + borderInsets.top,                                                  cbBounds.width                                                  - arrowButtonWidth                                                  - borderInsets.left                                                  - borderInsets.right,                                                  cbBounds.height                                                  - borderInsets.top                                                  - borderInsets.bottom);    return rectForCurrentValue;  }