--- old/src/share/classes/javax/swing/plaf/nimbus/SynthPainterImpl.java 2014-06-30 09:10:22.000000000 -0700 +++ new/src/share/classes/javax/swing/plaf/nimbus/SynthPainterImpl.java 2014-06-30 09:10:22.000000000 -0700 @@ -49,7 +49,7 @@ * position and size. Handles if g is a non 2D Graphics by painting via a * BufferedImage. */ - private void paint(Painter p, SynthContext ctx, Graphics g, int x, int y, + private void paint(Painter p, SynthContext ctx, Graphics g, int x, int y, int w, int h, AffineTransform transform) { if (p != null) { if (g instanceof Graphics2D){ @@ -96,7 +96,8 @@ Component c = ctx.getComponent(); Color bg = (c != null) ? c.getBackground() : null; if (bg == null || bg.getAlpha() > 0){ - Painter backgroundPainter = style.getBackgroundPainter(ctx); + + Painter backgroundPainter = style.getBackgroundPainter(ctx); if (backgroundPainter != null) { paint(backgroundPainter, ctx, g, x, y, w, h,transform); } @@ -105,7 +106,7 @@ private void paintForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, AffineTransform transform) { - Painter foregroundPainter = style.getForegroundPainter(ctx); + Painter foregroundPainter = style.getForegroundPainter(ctx); if (foregroundPainter != null) { paint(foregroundPainter, ctx, g, x, y, w, h,transform); } @@ -113,7 +114,7 @@ private void paintBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, AffineTransform transform) { - Painter borderPainter = style.getBorderPainter(ctx); + Painter borderPainter = style.getBorderPainter(ctx); if (borderPainter != null) { paint(borderPainter, ctx, g, x, y, w, h,transform); }