MCPcopy Index your code
hub / github.com/OpenSourcePhysics/osp / SetXMLControlTest

Method SetXMLControlTest

src/test/SetXMLControlTest.java:16–27  ·  view source on GitHub ↗
(XMLControlElement xml)

Source from the content-addressed store, hash-verified

14 boolean useFrame = false;
15
16 SetXMLControlTest(XMLControlElement xml) {
17 if (useFrame) {
18 frame = new JFrame("Test XML Tree Panel");
19 }
20 //JDialog dialog = new JDialog(frame, true); // this signature works in JS
21 JDialog dialog = new JDialog((JFrame)null, true); // this signature DOES NOT WORK in JS
22 XMLTreePanel treePanel = new XMLTreePanel(xml);
23 dialog.setContentPane(treePanel);
24//alternative dialog.add(treePanel);
25 dialog.setSize(new Dimension(600, 300));
26 dialog.setVisible(true);
27 }
28
29 public static void main(String[] args) {
30 //System.out.println("Testing XML Control Element");

Callers

nothing calls this directly

Calls 3

setContentPaneMethod · 0.80
setSizeMethod · 0.65
setVisibleMethod · 0.65

Tested by

no test coverage detected