PrefsDialog prefsDialog = new PrefsDialog(desktop.getSelectedWindow());
PrefsDialog prefsDialog = new PrefsDialog(JSLDesktop.getSelectedWindow());
    private static PrefsDialog initPrefsDialog() {        PrefsDialog prefsDialog = new PrefsDialog(desktop.getSelectedWindow());	// Add the configuration panels to the prefsDialog        prefsDialog.addPanel(new GeneralConfigPanel(appConfig));	prefsDialog.addPanel(new DirectoryConfigPanel(appConfig));	MidiConfigPanel midiConfigPanel = null;	midiConfigPanel = new MidiConfigPanel(appConfig);	//midiConfigPanel.addDriverChangeListener(this);	prefsDialog.addPanel(midiConfigPanel);	// FaderBoxConfigPanel() have to be called after MidiIn is initialized.	FaderBoxConfigPanel faderbox = new FaderBoxConfigPanel(appConfig);	midiConfigPanel.addDriverChangeListener(faderbox); // Notify the faderbox, too... - emenaker 2003.03.19	prefsDialog.addPanel(faderbox);	prefsDialog.addPanel(new NoteChooserConfigPanel(appConfig));	// Create preference dialog window and initialize each config	// panel.	prefsDialog.init();	return prefsDialog;    }