harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r466075 - /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
Date Fri, 20 Oct 2006 11:44:27 GMT
Author: mloenko
Date: Fri Oct 20 04:44:25 2006
New Revision: 466075

URL: http://svn.apache.org/viewvc?view=rev&rev=466075
Log:
applied patch from HARMONY-1536
[classlib][swing] JOptionPane creates dialogs with double decorations if default look&feel
is undecorated

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java?view=diff&rev=466075&r1=466074&r2=466075
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
Fri Oct 20 04:44:25 2006
@@ -632,6 +632,9 @@
     }
     
     private static void setDialogDecorations(final JDialog dialog, final int messageType)
{
+        if (!JDialog.isDefaultLookAndFeelDecorated()) {
+            return;
+        }
         dialog.getRootPane().setWindowDecorationStyle(messageTypeToRootPaneDecoration(messageType));
     }
 }



Mime
View raw message