< prev index next >

src/java.desktop/share/classes/sun/awt/SunGraphicsCallback.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -69,13 +69,10 @@
                 constrainGraphics(cg, bounds);
                 cg.setFont(comp.getFont());
                 cg.setColor(comp.getForeground());
                 if (cg instanceof Graphics2D) {
                     ((Graphics2D)cg).setBackground(comp.getBackground());
-                } else if (cg instanceof Graphics2Delegate) {
-                    ((Graphics2Delegate)cg).setBackground(
-                        comp.getBackground());
                 }
                 run(comp, cg);
             } finally {
                 cg.dispose();
             }
< prev index next >