Package javax.swing

Examples of javax.swing.JProgressBar$ModelListener


    }

  private static JProgressBar getJProgressBarReel(int value) {
   
    try {
      jProgressBarReel = new JProgressBar();
      jProgressBarReel.setValue(value);
      jProgressBarReel.setToolTipText(LangageManager.getProperty("miage.jprogressReel"));
            String s= String.valueOf(LangageManager.getProperty("miage.reel")+jProgressBarReel.getValue()+" %");

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


   
    this.progressLabel = new JLabel();
    this.progressLabel.setFont(toolTipFont);
    this.progressLabel.setHorizontalAlignment(JLabel.CENTER);
   
    this.progressBar = new JProgressBar();
    this.progressBar.setIndeterminate(true);
    this.progressBar.getModel().addChangeListener(new ChangeListener() {
        private long timeAfterFirstImage;
       
        public void stateChanged(ChangeEvent ev) {
View Full Code Here

  /**
   * Creates and initializes components.
   */
  private void createComponents(String taskMessage) {
    this.taskLabel = new JLabel(taskMessage);
    this.taskProgressBar = new JProgressBar();
    this.taskProgressBar.setIndeterminate(true);
  }
View Full Code Here

                status.setCursor(normal);
            }
           
        });
        bottomPanel.add(status, BorderLayout.WEST);
        myProgress = new JProgressBar();
        myProgress.setBorder(BorderFactory.createEmptyBorder(4, 16, 4, 4));
        myProgress.setStringPainted(true);
        bottomPanel.add(myProgress, BorderLayout.CENTER);
        myPanel.add(bottomPanel, BorderLayout.SOUTH);
       
View Full Code Here

  }
 
  @Override
  protected void paintDeterminate(Graphics g, JComponent component) {
    // OK, whose bright idea was to have JComponent as a parameter here
    JProgressBar bar = (JProgressBar) component;
   
    // Background color
    g.setColor(style.getHighLightColor());
    g.fillRect(0, 0, bar.getWidth(), bar.getHeight());
   
    // Wood and border
    Insets insets = bar.getInsets();
    int width = getAmountFull(insets, bar.getWidth(), bar.getHeight());
    StyleUtil.fillBackground(style, g, 0, 0, width, bar.getHeight());
    style.getBorder().paintBorder(component, g, insets.left, insets.top,
        width, bar.getHeight() - insets.left - insets.right);
  }
View Full Code Here

    contentPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

    contentPane.add(new JLabel("Connecting..."));
    contentPane.add(Box.createVerticalStrut(5));

    m_progressBar = new JProgressBar(0, 100);
    m_progressBar.setStringPainted(false);
    m_progressBar.setValue(0);
    contentPane.add(m_progressBar);
  }
View Full Code Here

    } else {
      contentPane.add(new JLabel("Downloading updates..."));
    }
    contentPane.add(Box.createVerticalStrut(5));

    progressBar = new JProgressBar(0, max);
    progressBar.setStringPainted(false);
    progressBar.setValue(0);
    contentPane.add(progressBar);
    contentPane.add(Box.createVerticalStrut(5));
View Full Code Here

        }
      }
    }

    public void createDialog(int msgSize) {
      progressBar = new JProgressBar(0, msgSize);
      progressBar.setBorderPainted(true);
      progressBar.setStringPainted(true);

      jd = new JDialog();
      jd.getContentPane().setLayout(new BoxLayout(jd.getContentPane(), BoxLayout.Y_AXIS));
View Full Code Here

        segmenter.setTempoMultiplier(tempoMult);
        segmenter.writeMEAPFile = meapsoftGUI.writeMEAPFile;

        JPanel progressPanel1 = new JPanel();
        progressPanel1.add(new JLabel("Segmenting: "));
        JProgressBar progressBar1 = new JProgressBar(segmenter.getProgress());
        progressBar1.setStringPainted(true);
        progressPanel1.add(progressBar1);
        meapsoftGUI.setProgressPanel(progressPanel1);

        try
        {
            segmentFile = segmenter.processAudioFile(inputSoundFileNameFull);

            if(segmenter.writeMEAPFile)
                segmentFile.writeFile();

            segmentFile = segmenter.getSegFile();
        }
        catch (Exception e)
        {
            GUIUtils.ShowDialog(e, "Error running Segmenter", GUIUtils.MESSAGE, meapsoftGUI.jframe);

            return -1;
        }

        JPanel progressPanel2 = new JPanel();
        progressPanel2.add(new JLabel("drawing waveform "));
        JProgressBar progressBar2 = new JProgressBar(meapsoftGUI.waveformPanel.getProgress());
        progressBar2.setStringPainted(true);
        progressPanel2.add(progressBar2);
        meapsoftGUI.setProgressPanel(progressPanel2);

        meapsoftGUI.waveformPanel.initialize(segmentFile, "Waveform");
        meapsoftGUI.waveformPanel.setSegTickType(SingleFeaturePanel.SHORT_SEG_TICKS);
        meapsoftGUI.waveformPanel.updateWaveformPoints();
       
        JPanel progressPanel3 = new JPanel();
        progressPanel3.add(new JLabel("drawing spectrum "));
        JProgressBar progressBar3 = new JProgressBar(meapsoftGUI.spectrumPanel.getProgress());
        progressBar3.setStringPainted(true);
        progressPanel3.add(progressBar3);
        meapsoftGUI.setProgressPanel(progressPanel3);

        meapsoftGUI.spectrumPanel.initialize(segmentFile, "Spectrum");
        meapsoftGUI.spectrumPanel.setSegTickType(SingleFeaturePanel.SHORT_SEG_TICKS);
View Full Code Here

        featExtractor.setClearNonMetaFeatures(
            clearNonMetaFeatures.isSelected());

        JPanel progressPanel = new JPanel();
        progressPanel.add(new JLabel("Extracting features: "));
        JProgressBar progressBar = new JProgressBar(featExtractor.getProgress());
        progressBar.setStringPainted(true);
        progressPanel.add(progressBar);
        meapsoftGUI.setProgressPanel(progressPanel);

        try
        {       
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.