# HG changeset patch # User azvegint # Date 1413196604 -14400 # Node ID f263d0b5c64a014d4323f86b8cefeedfd9af3536 # Parent cffe6690ee9d21d8971d10c9e88a284276c7ac7f 8059297: Test api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame [JInternalFrameTest0007] fails with MotifLookAndFeel Reviewed-by: alexsch, serb diff -r cffe6690ee9d -r f263d0b5c64a jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java --- 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 desktopIcon object, which * is the image displayed in the JDesktop when * this internal frame is iconified. * * Passing null 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 Icon to display in the title bar