}
}
+ public void closeAll_actionPerformed(ActionEvent e)
+ {
+ JInternalFrame [] frames = desktop.getAllFrames();
+ for(int i=0; i<frames.length; i++)
+ {
+ try{
+ frames[i].setClosed(true);
+ }catch(java.beans.PropertyVetoException ex){}
+ }
+ }
+
+
/**
* DOCUMENT ME!
*
{
source.viewport.gatherViewsHere = true;
source.viewport.explodedPosition = source.getBounds();
- JInternalFrame[] frames = Desktop.desktop.getAllFrames();
+ JInternalFrame[] frames = desktop.getAllFrames();
String viewId = source.viewport.sequenceSetID;
for (int t = 0; t < frames.length; t++)
protected JMenuItem vamsasLoad = new JMenuItem();\r
JMenuItem inputSequence = new JMenuItem();\r
protected JMenuItem vamsasStop = new JMenuItem();\r
+ JMenuItem closeAll = new JMenuItem();\r
\r
/**\r
* Creates a new GDesktop object.\r
vamsasStop_actionPerformed(e);\r
}\r
});\r
+ closeAll.setText("Close All");\r
+ closeAll.addActionListener(new ActionListener()\r
+ {\r
+ public void actionPerformed(ActionEvent e)\r
+ {\r
+ closeAll_actionPerformed(e);\r
+ }\r
+ });\r
desktopMenubar.add(FileMenu);\r
desktopMenubar.add(toolsMenu);\r
VamsasMenu.setVisible(false);\r
inputMenu.add(inputLocalFileMenuItem);\r
inputMenu.add(inputURLMenuItem);\r
inputMenu.add(inputTextboxMenuItem);\r
- // inputMenu.add(vamsasLoad);\r
+ windowMenu.add(closeAll);\r
+ // inputMenu.add(vamsasLoad);\r
}\r
\r
/**\r
public void vamsasStop_actionPerformed(ActionEvent e)\r
{\r
\r
- }\r
+ }\r
+\r
+ public void closeAll_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
}\r