|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.dialog; |
|
|
|
package com.fr.design.dialog; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.invoke.Reflect; |
|
|
|
import com.fr.invoke.Reflect; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.Icon; |
|
|
|
import javax.swing.Icon; |
|
|
|
import javax.swing.JDialog; |
|
|
|
import javax.swing.JDialog; |
|
|
@ -279,8 +280,11 @@ public class FineJOptionPane extends JOptionPane { |
|
|
|
dialog.show(); |
|
|
|
dialog.show(); |
|
|
|
dialog.dispose(); |
|
|
|
dialog.dispose(); |
|
|
|
|
|
|
|
|
|
|
|
Object value = pane.getInputValue(); |
|
|
|
//点击取消按钮,返回null
|
|
|
|
|
|
|
|
if (StringUtils.equals((String) pane.getValue(), OPTION_OK_CANCEL[1])) |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object value = pane.getInputValue(); |
|
|
|
if (value == UNINITIALIZED_VALUE) { |
|
|
|
if (value == UNINITIALIZED_VALUE) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|