if(!MacUIHelper.isMacOS()) {
fileMenu = new JMenu("File");
JMenuItem preferencesMenuItem = fileMenu.add(new JMenuItem("Preferences"));
preferencesMenuItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
PreferencesDialog prefs = new PreferencesDialog(frame, getGraphView(), cup);
prefs.setVisible(true);
}
});
JMenuItem exitMenuItem = fileMenu.add(new JMenuItem("Exit"));
exitMenuItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {