Package com.tulskiy.musique.system

Examples of com.tulskiy.musique.system.Application


*/
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();
View Full Code Here


    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new MetalLookAndFeel());
        } catch (UnsupportedLookAndFeelException ignored) {
        }
        Application app = Application.getInstance();
        app.load();
        TreeFileChooser fileChooser = new TreeFileChooser(new JLabel(), "Select files", true);
        File[] files = fileChooser.showOpenDialog();
        if (files != null) {
            System.out.println(Arrays.toString(files));
        }
        app.exit();
    }
View Full Code Here

            return (float) processed / totalSize;
        }
    }

    public static void main(String[] args) {
        Application app = Application.getInstance();
        app.load();
        try {
            UIManager.setLookAndFeel(new NimbusLookAndFeel());
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.system.Application

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.