harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r565634 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
Date Tue, 14 Aug 2007 06:12:08 GMT
Author: apetrenko
Date: Mon Aug 13 23:12:07 2007
New Revision: 565634

URL: http://svn.apache.org/viewvc?view=rev&rev=565634
Log:
Patch for HARMONY-4613 "[classlib][swing] SetOptions/SetMessage of JOptionPane not implemented"

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

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java?view=diff&rev=565634&r1=565633&r2=565634
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JOptionPane.java
Mon Aug 13 23:12:07 2007
@@ -456,6 +456,7 @@
         Object oldValue = message;
         message = newMessage;
         firePropertyChange(MESSAGE_PROPERTY, oldValue, newMessage);
+		updateUI();
     }
 
     public Object getMessage() {
@@ -466,6 +467,7 @@
         Icon oldValue = icon;
         icon = newIcon;
         firePropertyChange(ICON_PROPERTY, oldValue, newIcon);
+		updateUI();
     }
 
     public Icon getIcon() {
@@ -476,6 +478,7 @@
         Object oldValue = value;
         value = newValue;
         firePropertyChange(VALUE_PROPERTY, oldValue, newValue);
+		updateUI();
     }
 
     public Object getValue() {
@@ -486,6 +489,7 @@
         Object[] oldValue = options;
         options = newOptions;
         firePropertyChange(OPTIONS_PROPERTY, oldValue, newOptions);
+		updateUI();
     }
 
     public Object[] getOptions() {
@@ -496,6 +500,7 @@
         Object oldValue = initialValue;
         initialValue = newValue;
         firePropertyChange(INITIAL_VALUE_PROPERTY, oldValue, newValue);
+		updateUI();
     }
 
     public Object getInitialValue() {
@@ -519,6 +524,7 @@
                     "JOptionPane.WARNING_MESSAGE, JOptionPane.QUESTION_MESSAGE " + //$NON-NLS-1$
                     "or JOptionPane.PLAIN_MESSAGE"); //$NON-NLS-1$
         }
+		updateUI();
     }
 
     public int getMessageType() {
@@ -538,6 +544,7 @@
         default:
             throw new RuntimeException(Messages.getString("swing.20")); //$NON-NLS-1$
         }
+		updateUI();
     }
 
     public int getOptionType() {
@@ -549,6 +556,7 @@
         selectionValues = newValues;
         firePropertyChange(SELECTION_VALUES_PROPERTY, oldSelectionValues, newValues);
         setWantsInput(selectionValues != null);
+		updateUI();
     }
 
     public Object[] getSelectionValues() {
@@ -559,6 +567,7 @@
         Object oldInitialSelectionValue = initialSelectionValue;
         initialSelectionValue = newValue;
         firePropertyChange(INITIAL_SELECTION_VALUE_PROPERTY, oldInitialSelectionValue, newValue);
+		updateUI();
     }
 
     public Object getInitialSelectionValue() {
@@ -569,6 +578,7 @@
         Object oldValue = inputValue;
         inputValue = newValue;
         firePropertyChange(INPUT_VALUE_PROPERTY, oldValue, newValue);
+		updateUI();
     }
 
     public Object getInputValue() {
@@ -583,6 +593,7 @@
         boolean oldValue = wantsInput;
         wantsInput = newValue;
         firePropertyChange(WANTS_INPUT_PROPERTY, oldValue, newValue);
+		updateUI();
     }
 
     public boolean getWantsInput() {
@@ -638,5 +649,6 @@
             return;
         }
         dialog.getRootPane().setWindowDecorationStyle(messageTypeToRootPaneDecoration(messageType));
+		//updateUI();
     }
 }



Mime
View raw message