changeset 1347:743021a4938c

6849277: Nimbus L&F: lots of painter classes were added to JDK7 as public Reviewed-by: malenkov
author peterz
date Mon, 22 Jun 2009 18:08:50 +0400
parents 1bbbd0ef5d04
children ce347002bbd9
files src/share/classes/javax/swing/plaf/nimbus/Defaults.template src/share/classes/javax/swing/plaf/nimbus/PainterImpl.template
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/nimbus/Defaults.template	Sat Jun 13 06:43:54 2009 +0900
+++ b/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/src/share/classes/javax/swing/plaf/nimbus/PainterImpl.template	Sat Jun 13 06:43:54 2009 +0900
+++ b/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