mi.removeActionListener(this);
mi.addActionListener(this);
mainpopup.add(mi);
// Popup menu on TitleBar
ui.getAcTitleBar().removeMouseListener(popupAdapter);
popupAdapter = new PopupAdapter(mainpopup);
ui.getAcTitleBar().addMouseListener(popupAdapter);
// Popup menu on Eject button
ejectpopup = new JPopupMenu();
mi = new JMenuItem(ui.getResource("popup.eject.openfile"));
mi.setActionCommand(PlayerActionEvent.MIPLAYFILE);
mi.removeActionListener(this);
mi.addActionListener(this);
ejectpopup.add(mi);
mi = new JMenuItem(ui.getResource("popup.eject.openlocation"));
mi.setActionCommand(PlayerActionEvent.MIPLAYLOCATION);
mi.removeActionListener(this);
mi.addActionListener(this);
ejectpopup.add(mi);
ui.getAcEject().removeMouseListener(ejectpopupAdapter);
ejectpopupAdapter = new PopupAdapter(ejectpopup);
ui.getAcEject().addMouseListener(ejectpopupAdapter);
// EqualizerUI
if (equalizerUI != null) equalizerUI.loadUI();
if (playlistUI != null) playlistUI.loadUI();
validate();