Browse Source

REPORT-127437 fix: 规约问题

fbp/release
lemon 3 months ago
parent
commit
e1724969d2
  1. 9
      designer-base/src/main/java/com/fr/design/dialog/FineJOptionPane.java

9
designer-base/src/main/java/com/fr/design/dialog/FineJOptionPane.java

@ -395,16 +395,11 @@ public class FineJOptionPane extends JOptionPane {
String title, int optionType, int messageType,
Icon icon, Object[] options, Object initialValue,
boolean isSuccessMessage) {
FineJOptionPane pane = new FineJOptionPane(message, messageType,
optionType, icon,
options, initialValue, isSuccessMessage);
FineJOptionPane pane = new FineJOptionPane(message, messageType, optionType, icon, options, initialValue, isSuccessMessage);
pane.setInitialValue(initialValue);
pane.setComponentOrientation(((parentComponent == null) ?
getRootFrame() : parentComponent).getComponentOrientation());
pane.setComponentOrientation(((parentComponent == null) ? getRootFrame() : parentComponent).getComponentOrientation());
JDialog dialog = pane.createDialog(parentComponent, title);
pane.selectInitialValue();
dialog.show();
dialog.dispose();

Loading…
Cancel
Save