jMenuItemToolsArffViewer.
setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.CTRL_MASK));
jMenuItemToolsArffViewer.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final ArffViewer av = new ArffViewer();
av.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent w) {
m_ArffViewers.remove(av);
checkExit();
}
});
av.setVisible(true);
m_ArffViewers.add(av);
}
});
// Tools/SqlViewer