-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b03
-
generic
-
generic
-
Verified
A DESCRIPTION OF THE FIX :
Fixes a few errors in java.awt.GraphicsEnvironment.registerFont(java.awt.Font) Javadoc:
--- jdk-6-rc-src-b95/j2se/src/share/classes/java/awt/GraphicsEnvironment.old 2006-08-11 14:29:36.442709704 +0000
+++ jdk-6-rc-src-b95/j2se/src/share/classes/java/awt/GraphicsEnvironment.java 2006-08-11 15:03:03.318618192 +0000
@@ -284,7 +284,7 @@
public abstract String[] getAvailableFontFamilyNames(Locale l);
/**
- * Registers a <i>/created</i> <code>Font</code>in this
+ * Registers a <i>created</i> <code>Font</code> in this
* <code>GraphicsEnvironment</code>.
* A created font is one that was returned from calling
* {@link Font#createFont}, or derived from a created font by
@@ -297,18 +297,19 @@
* a way that they are visible to other applets.
* <p>
* Reasons that this method might not register the font and therefore
- * return <code>false</code> are :
+ * return <code>false</code> are:
* <ul>
- * <li>The font is not a <i>/created</i> <code>Font</code>.
+ * <li>The font is not a <i>created</i> <code>Font</code>.</li>
* <li>The font conflicts with a non-created <code>Font</code> already
- * in this <code>GraphicsEnvironment</code>. For example if the name
- * is that of a system font, or a logical font as described in the
- * documentation of the {@link Font} class. It is implementation dependent
- * whether a font may also conflict if it has the same family name
- * as a system font. The exception for created fonts means that an
- * application can supersede the registration
- * of an earlier created font with a new one.
+ * in this <code>GraphicsEnvironment</code>. For example, it could occur
+ * if the name is that of a system font, or a logical font as described
+ * in the documentation of the {@link Font} class. It is implementation
+ * dependent whether a font may also conflict if it has the same family
+ * name as a system font.</li>
* </ul>
+ * <p>Notice that an application can supersede the registration of an
+ * earlier <i>created</i> font with a new one using this method.</p>
+ *
* @return true if the <code>font</code> is successfully
* registered in this <code>GraphicsEnvironment</code>.
* @since 1.6
Fixes a few errors in java.awt.GraphicsEnvironment.registerFont(java.awt.Font) Javadoc:
--- jdk-6-rc-src-b95/j2se/src/share/classes/java/awt/GraphicsEnvironment.old 2006-08-11 14:29:36.442709704 +0000
+++ jdk-6-rc-src-b95/j2se/src/share/classes/java/awt/GraphicsEnvironment.java 2006-08-11 15:03:03.318618192 +0000
@@ -284,7 +284,7 @@
public abstract String[] getAvailableFontFamilyNames(Locale l);
/**
- * Registers a <i>/created</i> <code>Font</code>in this
+ * Registers a <i>created</i> <code>Font</code> in this
* <code>GraphicsEnvironment</code>.
* A created font is one that was returned from calling
* {@link Font#createFont}, or derived from a created font by
@@ -297,18 +297,19 @@
* a way that they are visible to other applets.
* <p>
* Reasons that this method might not register the font and therefore
- * return <code>false</code> are :
+ * return <code>false</code> are:
* <ul>
- * <li>The font is not a <i>/created</i> <code>Font</code>.
+ * <li>The font is not a <i>created</i> <code>Font</code>.</li>
* <li>The font conflicts with a non-created <code>Font</code> already
- * in this <code>GraphicsEnvironment</code>. For example if the name
- * is that of a system font, or a logical font as described in the
- * documentation of the {@link Font} class. It is implementation dependent
- * whether a font may also conflict if it has the same family name
- * as a system font. The exception for created fonts means that an
- * application can supersede the registration
- * of an earlier created font with a new one.
+ * in this <code>GraphicsEnvironment</code>. For example, it could occur
+ * if the name is that of a system font, or a logical font as described
+ * in the documentation of the {@link Font} class. It is implementation
+ * dependent whether a font may also conflict if it has the same family
+ * name as a system font.</li>
* </ul>
+ * <p>Notice that an application can supersede the registration of an
+ * earlier <i>created</i> font with a new one using this method.</p>
+ *
* @return true if the <code>font</code> is successfully
* registered in this <code>GraphicsEnvironment</code>.
* @since 1.6