MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / showOptionDialog

Method showOptionDialog

src/javajs/async/AsyncDialog.java:120–128  ·  view source on GitHub ↗
(Component frame, Object message, String title, int optionType, int messageType,
			Icon icon, Object[] options, Object initialValue, ActionListener a)

Source from the content-addressed store, hash-verified

118 }
119
120 public void showOptionDialog(Component frame, Object message, String title, int optionType, int messageType,
121 Icon icon, Object[] options, Object initialValue, ActionListener a) {
122 actionListener = a;
123 this.options = options;
124 setListener(a);
125 process(JOptionPane.showOptionDialog(frame, message, title, optionType, messageType, icon, options,
126 initialValue));
127 unsetListener();
128 }
129
130 public void showConfirmDialog(Component frame, Object message, String title, ActionListener a) {
131 showConfirmDialog(frame, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, a);

Callers 2

loadImagesMethod · 0.80

Calls 3

setListenerMethod · 0.95
processMethod · 0.95
unsetListenerMethod · 0.95

Tested by

no test coverage detected