Class BasicErrorPaneUI.EqualSizeJButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
BasicErrorPaneUI

private static final class BasicErrorPaneUI.EqualSizeJButton extends JButton
This is a button that maintains the size of the largest button in the button group by returning the largest size from the getPreferredSize method. This is better than using setPreferredSize since this will work regardless of changes to the text of the button and its language.
  • Field Details

  • Constructor Details

    • EqualSizeJButton

      public EqualSizeJButton(String text)
    • EqualSizeJButton

      public EqualSizeJButton(Action a)
  • Method Details