changeset 27273:f263d0b5c64a

8059297: Test api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame [JInternalFrameTest0007] fails with MotifLookAndFeel Reviewed-by: alexsch, serb
author azvegint
date Mon, 13 Oct 2014 14:36:44 +0400
parents cffe6690ee9d
children 62de2c957523
files jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java	Fri Oct 10 20:14:42 2014 +0400
+++ b/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java	Mon Oct 13 14:36:44 2014 +0400
@@ -1141,14 +1141,15 @@
     /**
      * Sets an image to be displayed in the titlebar of this internal frame (usually
      * in the top-left corner).
+     * Some look and feels might not support displaying an icon in the titlebar.
+     *
      * This image is not the <code>desktopIcon</code> object, which
      * is the image displayed in the <code>JDesktop</code> when
      * this internal frame is iconified.
      *
      * Passing <code>null</code> to this function is valid,
-     * but the look and feel
-     * can choose the
-     * appropriate behavior for that situation, such as displaying no icon
+     * but the look and feel can choose the appropriate behavior
+     * for that situation, such as displaying no icon
      * or a default icon for the look and feel.
      *
      * @param icon the <code>Icon</code> to display in the title bar