|
|
@ -352,8 +352,10 @@ public class XWCardMainBorderLayout extends XWBorderLayout { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void paintBorder(Graphics g, Rectangle bounds){ |
|
|
|
public void paintBorder(Graphics g, Rectangle bounds){ |
|
|
|
if (isDragInAble()) { |
|
|
|
if (isDragInAble()) { |
|
|
|
|
|
|
|
Color oldColor = g.getColor(); |
|
|
|
g.setColor(OUTER_BORDER_COLOR); |
|
|
|
g.setColor(OUTER_BORDER_COLOR); |
|
|
|
GraphHelper.draw(g, new Rectangle(bounds.x - BORDER_WIDTH, bounds.y - BORDER_WIDTH, bounds.width + BORDER_WIDTH + 3, bounds.height + BORDER_WIDTH + 3), Constants.LINE_LARGE); |
|
|
|
GraphHelper.draw(g, new Rectangle(bounds.x - BORDER_WIDTH, bounds.y - BORDER_WIDTH, bounds.width + BORDER_WIDTH + 3, bounds.height + BORDER_WIDTH + 3), Constants.LINE_LARGE); |
|
|
|
|
|
|
|
g.setColor(oldColor); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!isMouseEnter) { |
|
|
|
if (!isMouseEnter) { |
|
|
|
super.paintBorder(g, bounds); |
|
|
|
super.paintBorder(g, bounds); |
|
|
|