(XMLControlElement xml)
| 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"); |
nothing calls this directly
no test coverage detected