This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (button.getBorder() instanceof CompoundBorder) { // from BasicLookAndFeel
Dimension pref = button.getPreferredSize();
pref.height += TOOLBAR_HEIGHT_ADJUSTMENT;
// XXX #41827 workaround w2k, that adds eclipsis (...) insted of actual text
if ("Windows".equals(UIManager.getLookAndFeel().getID())) { // NOI18N
pref.width += 9;
}
button.setPreferredSize(pref);