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

Method actionPerformed

src/test/Test_Dialog.java:132–138  ·  view source on GitHub ↗
(ActionEvent e)

Source from the content-addressed store, hash-verified

130 content.add(new JLabel("this is the option panel"), BorderLayout.CENTER);
131 b.addActionListener(new ActionListener() {
132 @Override
133 public void actionPerformed(ActionEvent e) {
134 Test_Dialog.this.onDialogReturn(JOptionPane.showConfirmDialog(Test_Dialog.this,
135 "<html>The frame is now " + (isResizable() ? "<b>NOT</b> " : "") + "resizable.</html>",
136 "Testing JOptionPane", JOptionPane.OK_CANCEL_OPTION));
137 setResizable(!isResizable());
138 }
139
140 });
141 p.add(b);

Callers

nothing calls this directly

Calls 8

onDialogReturnMethod · 0.95
showConfirmDialogMethod · 0.80
showMessageDialogMethod · 0.80
setVisibleMethod · 0.65
printlnMethod · 0.65
showInputDialogMethod · 0.45
showOpenDialogMethod · 0.45
showDialogMethod · 0.45

Tested by

no test coverage detected