*/
public class PlaybackQueueDialog extends JDialog {
public PlaybackQueueDialog(final JComponent owner) {
super(SwingUtilities.windowForComponent(owner), "Playback Queue", ModalityType.MODELESS);
Application app = Application.getInstance();
final PlaybackOrder playbackOrder = app.getPlayer().getPlaybackOrder();
final List<PlaybackOrder.QueueTuple> queue = playbackOrder.getQueue();
final JList list = new JList(new DefaultListModel() {
@Override
public int getSize() {
return queue.size();