62,567
社区成员




private void init(){
//初始化菜单
open.addActionListener(new Act_OpenFile());
exit.addActionListener(new Act_Exit());
//funOntology.addActionListener(new Act_FunOnto());
funOntology.addActionListener(new Act_fun());
devOntology.addActionListener(new Act_devOnto());
wayOfAch.addActionListener(new Act_WayOfAch());
funTree.addActionListener(new Act_FunTree());
showHelp.addActionListener(new Act_Help());
mb.add(m1);
m1.add(open);
m1.add(exit);
m2.add(funOntology);
m2.add(devOntology);
m2.add(wayOfAch);
m2.add(funTree);
m3.add(showHelp);
mb.add(m2);
mb.add(m3);
setJMenuBar(mb);
button1 = new JButton( "pre ");
button2 = new JButton( "next ");
button3 = new JButton( "end ");
toolBar.add(button1);
toolBar.add(button2);
toolBar.add(button3);
toolBar.add(toolTip);
toolBar.setFloatable(true);
showPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
showPanel.add(toolBar);
root=new DefaultMutableTreeNode("System");
red=new DefaultMutableTreeNode("function");
blue=new DefaultMutableTreeNode("way");
green=new DefaultMutableTreeNode("entity");
jtree1=new JTree(root);
root.add(red);
root.add(blue);
root.add(green);
actionPanel.setPreferredSize(new Dimension(200, 380));
actionPanel.setLayout(new BorderLayout());
actionPanel.add(new JScrollPane(jtree1));
this.getContentPane().setLayout(new BorderLayout());
this.getContentPane().add(showPanel,BorderLayout.NORTH);
this.getContentPane().add("West",actionPanel);
jsplit=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true,actionPanel,contentPanel);
jsplit.setOneTouchExpandable(true);
jsplit.setMinimumSize(new Dimension(100,50));
this.getContentPane().add(jsplit);
this.getContentPane().add("East",contentPanel);