6849277: Nimbus L&F: lots of painter classes were added to JDK7 as public
authorpeterz
Mon, 22 Jun 2009 18:08:50 +0400
changeset 3093 3ae581eddd21
parent 2956 931f209e57a9
child 3094 abb391749982
6849277: Nimbus L&F: lots of painter classes were added to JDK7 as public Reviewed-by: malenkov
jdk/src/share/classes/javax/swing/plaf/nimbus/Defaults.template
jdk/src/share/classes/javax/swing/plaf/nimbus/PainterImpl.template
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/Defaults.template	Sat Jun 13 06:43:54 2009 +0900
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/Defaults.template	Mon Jun 22 18:08:50 2009 +0400
@@ -278,7 +278,7 @@
      * offset (if any), and whether it is to be bold, italic, or left in its
      * default form.</p>
      */
-    public static final class DerivedFont implements UIDefaults.ActiveValue {
+    static final class DerivedFont implements UIDefaults.ActiveValue {
         private float sizeOffset;
         private Boolean bold;
         private Boolean italic;
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/PainterImpl.template	Sat Jun 13 06:43:54 2009 +0900
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/PainterImpl.template	Mon Jun 22 18:08:50 2009 +0400
@@ -31,7 +31,7 @@
 import javax.swing.Painter;
 
 
-public final class ${PAINTER_NAME} extends AbstractRegionPainter {
+final class ${PAINTER_NAME} extends AbstractRegionPainter {
     //package private integers representing the available states that
     //this painter will paint. These are used when creating a new instance
     //of ${PAINTER_NAME} to determine which region/state is being painted