myPlace = place;
setFocusable(false);
enableEvents(AWTEvent.MOUSE_EVENT_MASK);
- myMinimumButtonSize = JBDimension.create(minimumSize);
putClientProperty(UIUtil.CENTER_TOOLTIP_DEFAULT, Boolean.TRUE);
}
}
else {
return new Dimension(
- icon.getIconWidth() + myInsets.left + myInsets.right,
- icon.getIconHeight() + myInsets.top + myInsets.bottom
+ Math.max(myMinimumButtonSize.width, icon.getIconWidth() + myInsets.left + myInsets.right),
+ Math.max(myMinimumButtonSize.height, icon.getIconHeight() + myInsets.top + myInsets.bottom)
);
}
}