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

Method customize

src/davidson/qm/QMSuperpositionApp.java:339–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 }
338
339 void customize() {
340 OSPFrame f = getMainFrame();
341 if(f==null || !f.isDisplayable()) return;
342 JMenu menu = f.getMenu("Display");
343 JMenuItem item = new JMenuItem("Switch GUI");
344 item.addActionListener(new ActionListener() {
345
346 @Override
347 public void actionPerformed(ActionEvent e) {
348 switchGUI();
349 }
350 });
351 menu.add(item);
352 addChildFrame(psiFrame);
353 addChildFrame(dataFrame);
354 }
355
356
357 /**

Callers 2

runMethod · 0.95
mainMethod · 0.95

Calls 6

getMenuMethod · 0.95
isDisplayableMethod · 0.80
getMainFrameMethod · 0.65
addActionListenerMethod · 0.65
addChildFrameMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected