--- old/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java 2011-11-19 00:09:34.000000000 +0100 +++ new/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java 2011-11-19 00:09:34.000000000 +0100 @@ -35,7 +35,6 @@ import javax.swing.plaf.*; import javax.swing.text.View; -import sun.java2d.SunGraphics2D; import sun.swing.SwingUtilities2; import apple.laf.*; import apple.laf.JRSUIConstants.*; @@ -306,11 +305,11 @@ } // from super.paintText - its normal text painting is totally wrong for the Mac - if (!(g instanceof SunGraphics2D)) { + if (!(g instanceof Graphics2D)) { g.setClip(temp); return; } - final SunGraphics2D g2d = (SunGraphics2D)g; + final Graphics2D g2d = (Graphics2D) g; AffineTransform savedAT = null; if (isVertical) {