01: package com.dwipal;
02:
03: import javax.swing.*;
04:
05: public class MibTreeTester {
06: public static void main(String[] args) {
07: DwSnmpMibTreeBuilder tree = new DwSnmpMibTreeBuilder();
08: tree.addFile("root_mib.txt");
09: tree.addFile("mib_core.txt");
10: tree.addFile("mib_demo.txt");
11:
12: JTree myTree = tree.buildTree();
13:
14: JFrame myFrame = new javax.swing.JFrame("Mib Tree Tester");
15: JScrollPane sp = new JScrollPane(myTree);
16: myFrame.getContentPane().add(sp);
17: myFrame.setVisible(true);
18: }
19: }
|