private void setHeight() {
FontMetrics metrics = this.getFontMetrics(getFont());
NB_HEIGHT = metrics.getHeight() + 9;
}
public ConstantSizeButton() {
<BUG>super();</BUG>
setHeight();
Dimension d = getPreferredSize();
d.setSize(NB_WIDTH, NB_HEIGHT);
this.setPreferredSize(d);
this.setSize(NB_WIDTH, NB_HEIGHT);
this.setMinimumSize(d);
this.setMaximumSize(d);
}
}

private void setHeight() {
FontMetrics metrics = this.getFontMetrics(getFont());
NB_HEIGHT = metrics.getHeight() + 9;
}
public ConstantSizeButton() {
setHeight();
Dimension d = getPreferredSize();
d.setSize(NB_WIDTH, NB_HEIGHT);
this.setPreferredSize(d);
