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

Method windowOpened

src/org/opensourcephysics/tools/DataTool.java:299–306  ·  view source on GitHub ↗
(WindowEvent e)

Source from the content-addressed store, hash-verified

297 } else {
298 tool.addWindowListener(new WindowAdapter() {
299 @Override
300 public void windowOpened(WindowEvent e) {
301 if (tool.getTabCount() == 0) {
302 DataToolTab tab = tool.createTab(null);
303 tab.setUserEditable(true);
304 tool.addTab(tab);
305 }
306 }
307 });
308 tool.setVisible(true);
309 }

Callers

nothing calls this directly

Calls 4

setUserEditableMethod · 0.95
createTabMethod · 0.80
getTabCountMethod · 0.45
addTabMethod · 0.45

Tested by

no test coverage detected