public interface Border
Borders can be opaque. If true, then the border has to care about painting all pixels in borders. If false, then the widget background is painted under borders too.
This can be used for non-rectagular shapes of borders e.g. returning true from isOpaque and drawing a filled rounded rectangle.
Insets getInsets()
void paint(Graphics2D gr, Rectangle bounds)
gr
- the Graphics2D instancebounds
- the boundaryboolean isOpaque()
Built on January 9 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.