List of usage examples for javax.swing JButton getMaximumSize
@Transient
public Dimension getMaximumSize()
null
value just returns it. From source file:org.rimudb.editor.DescriptorEditor.java
/** * Create a button for a menu/*w w w . ja va 2s . c o m*/ */ private JButton createMenuButtonVert(String text) { JButton btn = new JButton(text); btn.setAlignmentX(CENTER_ALIGNMENT); int height = btn.getMaximumSize().height; btn.setMaximumSize(new Dimension(Short.MAX_VALUE, height)); return btn; }