Package javax.swing

Examples of javax.swing.JProgressBar$ModelListener


  public CiteSeerFetcher(SidePaneManager p0)  {
    super(p0, GUIGlobals.getIconUrl("citeseer"), Globals.lang("CiteSeer Transfer"));

    sidePaneManager = p0;
    progressBar = new JProgressBar();
    progressBar2 = new JProgressBar();
    citeSeerProgress = new JLabel();
    progressBar.setValue(0);
    progressBar.setMinimum(0);
    progressBar.setMaximum(100);
    progressBar.setStringPainted(true);
View Full Code Here


                                      final JDialog diag) {

        final Collection<BibtexEntry> entries = new ArrayList<BibtexEntry>();
        entries.add(entry);
        final ExternalFileType[] types = Globals.prefs.getExternalFileTypeSelection();
        final JProgressBar prog = new JProgressBar(JProgressBar.HORIZONTAL, types.length-1);
        prog.setIndeterminate(true);
        prog.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        final JLabel label = new JLabel(Globals.lang("Searching for files"));
        if (diag != null) {
            diag.setTitle(Globals.lang("Autosetting links"));
            diag.getContentPane().add(prog, BorderLayout.CENTER);
            diag.getContentPane().add(label, BorderLayout.SOUTH);
View Full Code Here

            for (Iterator<FileListEntry> iterator = links.iterator(); iterator.hasNext();) {
                FileListEntry entry = iterator.next();
                System.out.println("Link: " + entry.getLink());
            }

            final JProgressBar prog = new JProgressBar();
            prog.setIndeterminate(true);
            final JDialog diag = new JDialog(panel.frame(), false);
            diag.getContentPane().add(prog, BorderLayout.CENTER);
            diag.pack();
            diag.setLocationRelativeTo(panel.frame());
            diag.setVisible(true);
View Full Code Here

  private JProgressBar progress;

  public SplashWindow( URL image ) {
    super();

    progress = new JProgressBar(JProgressBar.HORIZONTAL, 0, 100);
    progress.setValue(0);
    progress.setStringPainted(true);
   
    ImageIcon splashImage = new ImageIcon( image );
    int imageHeight = splashImage.getIconHeight();
View Full Code Here

       
        taskDescription = new JLabel();
        JLabel processDescriptor = new JLabel(LangageManager
                .getProperty("common.dialog.progresstask")
                + ":");
        progressBar = new JProgressBar();

        content.add(processDescriptor, new GridBagConstraints(0, 0, 1, 1, 0.0,
                0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE,
                new Insets(0, 0, 0, 0), 0, 0));
        content.add(taskDescription, new GridBagConstraints(1, 0, 1, 1, 0.0,
View Full Code Here

            }
        });

        currentDirectory = new JLabel("not set");
        currentFile = new JLabel("not set");
        progressBar = new JProgressBar();
        messagePane = new JTextPane();
        messagePane.setEditable(false);
        messagePane.setAutoscrolls(true);

        content.add(currentDirectory, new GridBagConstraints(0, 0, 2, 1, 0, 0,
View Full Code Here

        myProgressMonitor = progressMonitor;
      }
     
    protected void dialogInit() {
      super.dialogInit();
        myProgressBar = new JProgressBar();
        myProgressBar.setMinimumSize(new Dimension(400,50));
        myProgressBar.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        myLabel = new JLabel();
        myLabel.setFont(Fonts.GENERAL_DIALOG_FONT.deriveFont(14));
        myLabel.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
View Full Code Here

            removeAll();

            // Progress panel
            JPanel progressPanel = new JPanel(new BorderLayout());
            progressPanel.setBorder(BorderFactory.createTitledBorder("Progress"));
            final JProgressBar b = new JProgressBar(0, l.size());
            b.setStringPainted(true);
            progressPanel.add(b, BorderLayout.CENTER);
            add(progressPanel, BorderLayout.NORTH);
           
            // Console panel
            JPanel consolePanel = new JPanel(new BorderLayout());
            consolePanel.setBorder(BorderFactory.createTitledBorder("Output"));
            console = new JTextPane();
            JScrollPane scrollPane = new JScrollPane(console);
            consolePanel.add(scrollPane, BorderLayout.CENTER);
            add(consolePanel, BorderLayout.CENTER);
           
            //
           
            validate();
            repaint();
           
            //
           
            Thread t = new Thread() {
                public void run() {
                    try {
                        for(Iterator i = l.iterator(); i.hasNext(); ) {
                            AbstractDatabaseUpgrade upgrade = (AbstractDatabaseUpgrade)i.next();
                            b.setValue(b.getValue() + 1);
                            upgrade.upgrade(GUIUpgrader.this);
                            try {
                                Thread.sleep(750);
                            }
                            catch(InterruptedException ie) {                               
View Full Code Here

    }
    if(u != null) {
        ImageIcon icon = new ImageIcon(u);
     
      // Create progress bar
      progress = new JProgressBar(0, 100);
      progress.setBackground(Color.white);
      progress.setForeground(Color.black);
      progress.setStringPainted(true);
      JPanel pp = new JPanel(new BorderLayout());
      pp.setBorder(BorderFactory.createEmptyBorder(2, 5, 5, 5));
View Full Code Here

    }
  }

  private static JProgressBar getJProgressBarDossier(int value) {
    try {
      jProgressBarDossier = new JProgressBar();
      jProgressBarDossier.setToolTipText(LangageManager.getProperty("miage.jprogressDossier"));
      jProgressBarDossier.setValue(value);
            String s= String.valueOf(LangageManager.getProperty("miage.folder")+jProgressBarDossier.getValue()+" %");

            jProgressBarDossier.setBackground(new Color(Color.TRANSLUCENT));
View Full Code Here

TOP

Related Classes of javax.swing.JProgressBar$ModelListener

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.