< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2017, 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

@@ -125,11 +125,11 @@
 
     /** Get a named <code>String</code> value from the current style
      *
      * @param part a <code>Part</code>
      * @param state a <code>String</code>
-     * @param attributeKey a <code>String</code>
+     * @param prop a <code>String</code>
      * @return a <code>String</code> or null if key is not found
      *    in the current style
      *
      * This is currently only used by WindowsInternalFrameTitlePane for painting
      * title foregound and can be removed when no longer needed

@@ -170,11 +170,10 @@
                                   prop.getValue());
     }
 
     /** Get a named <code>Dimension</code> value from the current style
      *
-     * @param key a <code>String</code>
      * @return a <code>Dimension</code> or null if key is not found
      *    in the current style
      *
      * This is currently only used by WindowsProgressBarUI and the value
      * should probably be cached there instead of here.

@@ -187,11 +186,10 @@
     }
 
     /** Get a named <code>Point</code> (e.g. a location or an offset) value
      *  from the current style
      *
-     * @param key a <code>String</code>
      * @return a <code>Point</code> or null if key is not found
      *    in the current style
      *
      * This is currently only used by WindowsInternalFrameTitlePane for painting
      * title foregound and can be removed when no longer needed

@@ -203,11 +201,10 @@
         return (d != null) ? new Point(d.width, d.height) : new Point();
     }
 
     /** Get a named <code>Insets</code> value from the current style
      *
-     * @param key a <code>String</code>
      * @return an <code>Insets</code> object or null if key is not found
      *    in the current style
      *
      * This is currently only used to create borders and by
      * WindowsInternalFrameTitlePane for painting title foregound.

@@ -221,11 +218,10 @@
     }
 
 
     /** Get a named <code>Color</code> value from the current style
      *
-     * @param part a <code>Part</code>
      * @return a <code>Color</code> or null if key is not found
      *    in the current style
      */
     synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
         String key = skin.toString() + "." + prop.name();
< prev index next >