public void actionPerformed(ActionEvent ev) {
Object source = ev.getSource();
if (alwaysOnTopMenuItem == source) {
mainWindow.setAlwaysOnTop(alwaysOnTopMenuItem.isSelected());
} else if (manageLogTypesMenuItem == source) {
LogTypesDialog dialog = new LogTypesDialog(mainWindow);
dialog.setVisible(true);
} else if (fontSelectorMenuItem == source) {
FontChooserDialog dialog = new FontChooserDialog(mainWindow);
dialog.setVisible(true);
} else if (preferencesMenuItem == source) {
PreferencesDialog dialog = new PreferencesDialog(mainWindow);
dialog.setVisible(true);
}
}