日期:2014-05-20 浏览次数:20686 次
JOptionPane.showInputDialog(
null,
DmsMessages.getString("message.selectBU2"),
DmsMessages.getString("label.title.selectBU2"),
JOptionPane.PLAIN_MESSAGE,
null,
possibilities,
possibilities[0]);
JOptionPane.showConfirmDialog(
null,
DmsMessages.getString("message.confirm.user.Regenerate"),
DmsMessages.getString("Confirm.Title"),
JOptionPane.OK_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE);
public static Object showInputDialog(Component parentComponent,
Object message, String title, int messageType, Icon icon,
Object[] selectionValues, Object initialSelectionValue)
throws HeadlessException {
JOptionPane pane = new JOptionPane(message, messageType,
OK_CANCEL_OPTION, icon,
null, null);
pane.setWantsInput(true);
pane.setSelectionValues(selectionValues);
pane.setInitialSelectionValue(initialSelectionValue);
pane.setComponentOrientation(((parentComponent == null) ?