PatchEdit.deviceList.remove (table2.getSelectedRow ());
PatchEdit.appConfig.removeDevice(table2.getSelectedRow ());
    void RemovePressed ()    {        table=table2;        if ((table2.getSelectedRow ()==-1) ||(table2.getSelectedRow()==0)) return;        if (JOptionPane.showConfirmDialog (null,"Are you sure?","Remove Device?",JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) return;	try        {            PatchEdit.deviceList.remove (table2.getSelectedRow ());            revalidateLibraries();	  ((SynthTableModel)table.getModel ()).fireTableDataChanged ();            table2.repaint ();        }catch (Exception e)        {}    }