code: @Override
      public void calcInnerBounds() {
          final Insets INSETS = getInsets();
          final int SIZE = (getWidth() - INSETS.left - INSETS.right) <= (getHeight() - INSETS.top - INSETS.bottom) ? (getWidth() - INSETS.left - INSETS.right) : (getHeight() - INSETS.top - INSETS.bottom);
          if (!isFrameVisible()) {
              INNER_BOUNDS.setBounds(INSETS.left, INSETS.top, (int)(SIZE * 1.202247191), (int)(SIZE * 1.202247191));
          } else {
              INNER_BOUNDS.setBounds(INSETS.left, INSETS.top, SIZE, SIZE);
          }
      }
docs: <editor-fold defaultstate="collapsed" desc="Size related">