protected JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem();
protected JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem();
protected JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem();
+ JMenuItem pngTree = new JMenuItem();
+ JMenuItem epsTree = new JMenuItem();
public GTreePanel()
{
fitToWindow_actionPerformed(e);
}
});
+ epsTree.setText("Save as EPS file");
+ epsTree.addActionListener(new java.awt.event.ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ epsTree_actionPerformed(e);
+ }
+ });
+ pngTree.setText("Save as PNG image");
+ pngTree.addActionListener(new java.awt.event.ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ pngTree_actionPerformed(e);
+ }
+ });
this.getContentPane().add(scrollPane, BorderLayout.CENTER);
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenu2);
jMenu1.add(saveMenu);
+ jMenu1.add(epsTree);
+ jMenu1.add(pngTree);
jMenu1.add(printMenu);
jMenu2.add(fitToWindow);
jMenu2.add(fontSize);
}
+ protected void pngTree_actionPerformed(ActionEvent e)
+ {
+ }
+ protected void epsTree_actionPerformed(ActionEvent e)
+ {
-
+ }
}