[jsword-svn] r1892 - trunk/common-swing/src/main/java/org/crosswire/common/swing
dmsmith at www.crosswire.org
dmsmith at www.crosswire.org
Tue Jul 22 10:19:41 MST 2008
Author: dmsmith
Date: 2008-07-22 10:19:41 -0700 (Tue, 22 Jul 2008)
New Revision: 1892
Modified:
trunk/common-swing/src/main/java/org/crosswire/common/swing/CWOptionPane.java
Log:
replaced a deprecation
Modified: trunk/common-swing/src/main/java/org/crosswire/common/swing/CWOptionPane.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/swing/CWOptionPane.java 2008-07-22 17:13:18 UTC (rev 1891)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/CWOptionPane.java 2008-07-22 17:19:41 UTC (rev 1892)
@@ -339,7 +339,7 @@
JDialog dialog = pane.createDialog(parentComponent, title, style);
pane.selectInitialValue();
- dialog.show();
+ dialog.setVisible(true);
dialog.dispose();
Object value = pane.getInputValue();
@@ -598,7 +598,7 @@
JDialog dialog = pane.createDialog(parentComponent, title, style);
pane.selectInitialValue();
- dialog.show();
+ dialog.setVisible(true);
dialog.dispose();
Object selectedValue = pane.getValue();
@@ -618,22 +618,22 @@
return CLOSED_OPTION;
}
- if (getActionName("Yes").equals(selectedValue)) //$NON-NLS-1$
+ if (getActionName("Yes").equals(selectedValue)) //$NON-NLS-1$�
{
return YES_OPTION;
}
- if (getActionName("No").equals(selectedValue)) //$NON-NLS-1$
+ if (getActionName("No").equals(selectedValue)) //$NON-NLS-1$�
{
return NO_OPTION;
}
- if (getActionName("OK").equals(selectedValue)) //$NON-NLS-1$
+ if (getActionName("OK").equals(selectedValue)) //$NON-NLS-1$�
{
return OK_OPTION;
}
- if (getActionName("CANCEL").equals(selectedValue)) //$NON-NLS-1$
+ if (getActionName("CANCEL").equals(selectedValue)) //$NON-NLS-1$�
{
return CANCEL_OPTION;
}
More information about the jsword-svn
mailing list