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);
}
}