this.devConf = new DevicesConfig(); AvailableDeviceList = new JList(this.devConf.deviceNames());
AvailableDeviceList = new JList(PatchEdit.devConfig.deviceNames());
    public DeviceAddDialog(JFrame Parent) {        super(Parent,"Synthesizer Device Install",true);        JPanel container= new JPanel();        container.setLayout(new BorderLayout());	// Read in list of available devices	this.devConf = new DevicesConfig();        AvailableDeviceList = new JList(this.devConf.deviceNames());        AvailableDeviceList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);        JScrollPane scrollpane = new JScrollPane(AvailableDeviceList);        container.add(scrollpane, BorderLayout.CENTER);        JPanel buttonPanel = new JPanel();        buttonPanel.setLayout( new FlowLayout(FlowLayout.CENTER) );        JButton ok = new JButton("OK");        ok.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent e) {		    OKPressed();		}	    });        buttonPanel.add( ok );        JButton cancel = new JButton("Cancel");        cancel.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent e) {		    CancelPressed();		}	    });        buttonPanel.add( cancel );        getRootPane().setDefaultButton(ok);        container.add(buttonPanel, BorderLayout.SOUTH);        getContentPane().add(container);        setSize(400,300);        centerDialog();    }