348 |
Rectangle b = SwingUtilities.getLocalBounds(this); |
Rectangle b = SwingUtilities.getLocalBounds(this); |
349 |
g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); |
g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); |
350 |
g.fillRect(b.x, b.y, b.width, b.height); |
g.fillRect(b.x, b.y, b.width, b.height); |
351 |
MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width |
MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width |
352 |
- paletteCloseIcon.getIconWidth() - 13, b.height - 5, |
- paletteCloseIcon.getIconWidth() - 13, b.height - 5, |
353 |
MetalLookAndFeel.getPrimaryControlHighlight(), |
MetalLookAndFeel.getPrimaryControlHighlight(), |
354 |
MetalLookAndFeel.getBlack()); |
MetalLookAndFeel.getBlack()); |
399 |
endX = Math.max(closeButton.getX(), endX); |
endX = Math.max(closeButton.getX(), endX); |
400 |
endX -= 7; |
endX -= 7; |
401 |
if (endX > startX) |
if (endX > startX) |
402 |
MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); |
MetalUtils.fillMetalPattern(this, g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); |
403 |
} |
} |
404 |
g.setColor(savedColor); |
g.setColor(savedColor); |
405 |
} |
} |