This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (opaque)
paintBackground ();
border.paint (gr, new Rectangle (bounds));
paintBorder ();
if (checkClipping) {
Insets insets = border.getInsets ();
gr.fillRect (bounds.x, bounds.y, bounds.width, bounds.height);
else
gr.fillRect (bounds.x + insets.left, bounds.y + insets.top, bounds.width - insets.left - insets.right, bounds.height - insets.top - insets.bottom);
}
/**
* Called to paint the widget border itself only using the Graphics2D instance acquired from Scene.getGraphics method.
*/
protected void paintBorder () {
border.paint (getGraphics (), new Rectangle (bounds));
<td>protected paintBackground
<td>Paints the widget background only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
<tr>
<td>protected paintBorder
<td>Paints the widget border only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
<td>protected paintWidget
<td>Paints the widget only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.