|
|
@ -690,8 +690,12 @@ public class WindowsTitlePane extends CustomTitlePane { |
|
|
|
int right = 0; |
|
|
|
int right = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (windowIconButton != null) { |
|
|
|
if (windowIconButton != null) { |
|
|
|
windowIconButton.setBounds(start, y, ICON_WIDTH, height); |
|
|
|
int windowButtonWidth = windowIconButton.getIcon() != null ? |
|
|
|
start += ICON_WIDTH + PAD; |
|
|
|
Math.max(windowIconButton.getIcon().getIconHeight(), |
|
|
|
|
|
|
|
windowIconButton.getIcon().getIconWidth()) : ICON_WIDTH; |
|
|
|
|
|
|
|
windowButtonWidth = Math.min(ICON_WIDTH, windowButtonWidth); |
|
|
|
|
|
|
|
windowIconButton.setBounds(start + PAD / 2, y, windowButtonWidth, height); |
|
|
|
|
|
|
|
start += windowButtonWidth + PAD; |
|
|
|
left = start; |
|
|
|
left = start; |
|
|
|
} |
|
|
|
} |
|
|
|
if (menuBar != null) { |
|
|
|
if (menuBar != null) { |
|
|
|