Package com.tulskiy.musique.gui.dialogs

Examples of com.tulskiy.musique.gui.dialogs.ProgressDialog


      trackData.setTagFieldValues(FieldKey.DISC_TOTAL, rtm.getTrackDiscTotal(discogsTrack));
    }
  }

  private void writeTracks() {
        ProgressDialog dialog = new ProgressDialog(this, "Writing tags");
        dialog.show(new Task() {
            String status;
            boolean abort = false;
            public int processed;

            @Override
View Full Code Here


        if (files != null) {
            final PlaylistTable table = tabs.getSelectedTable();
            if (table == null)
                return;
            ProgressDialog dialog = new ProgressDialog(table.getParentFrame(), "Adding Files");
            dialog.show(new Task.FileAddingTask(table.getPlaylist(), files, -1));
        }
    }
View Full Code Here

                int ret = fc.showOpenDialog(getRootPane());
                if (ret == JFileChooser.APPROVE_OPTION) {
                    File file = fc.getSelectedFile();
                    Playlist playlist = addPlaylist(Util.capitalize(Util.removeExt(file.getName()), " "));
                    ProgressDialog dialog = new ProgressDialog(tabbedPane, "Adding Files");
                    dialog.show(new Task.FileAddingTask(playlist, new File[]{fc.getSelectedFile()}, -1));
                    config.setString("playlists.lastDir", fc.getCurrentDirectory().getAbsolutePath());
                }
            }
        });
View Full Code Here

            }
        });
        menu.add("Rescan").addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                ProgressDialog progressDialog = new ProgressDialog(getRootPane(), "Library Rescan");
                progressDialog.show(new Task() {
                    HashMap<String, Object> map = new HashMap<String, Object>();

                    @Override
                    public String getStatus() {
                        return "Scanning library\n" + String.valueOf(map.get("processing.file"));
View Full Code Here

        return fileListSupported || urlListSupported || songListSupported;
    }

    private void addFiles(PlaylistTable table, List<File> files, int insertRow) {
        ProgressDialog dialog = new ProgressDialog(table.getParentFrame(), "Adding Files");
        dialog.show(new Task.FileAddingTask(table.getPlaylist(), files.toArray(new File[files.size()]), insertRow));
    }
View Full Code Here

                public void actionPerformed(ActionEvent e) {
                    TreeFileChooser fc = new TreeFileChooser(PlaylistTable.this, "Add Files", true);
                    File[] files = fc.showOpenDialog();

                    if (files != null) {
                        ProgressDialog dialog = new ProgressDialog(PlaylistTable.this, "Adding Files");
                        dialog.show(new Task.FileAddingTask(getPlaylist(), files, getPlaylist().size()));
                    }
                }
            });

            item = tableMenu.add("Add Location");
View Full Code Here

        item.setIcon(Images.getEmptyIcon());
        item.setAccelerator(KeyStroke.getKeyStroke("Q"));
        tableMenu.add(new JMenuItem("Reload Tags")).addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                ProgressDialog dialog = new ProgressDialog(parent, "Reloading Tags");
                dialog.show(new Task() {
                    String currentTrack;
                    float progress = 0;
                    boolean abort = false;

                    @Override
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.gui.dialogs.ProgressDialog

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.