FileDocCategorySizeDatePackage
Progress.javaAPI DocExample3204Mon Apr 06 18:10:26 BST 1998c13.swing

Progress

public class Progress extends JPanel

Fields Summary
JProgressBar
pb
JSlider
sb
Constructors Summary
public Progress()

    
    setLayout(new GridLayout(2,1));
    add(pb);
    sb.setValue(0);
    sb.setPaintTicks(true);
    sb.setMajorTickSpacing(20);
    sb.setMinorTickSpacing(5);
    sb.setBorder(new TitledBorder("Slide Me"));
    sb.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        pb.setValue(sb.getValue());
      }
    });
    add(sb);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    Show.inFrame(new Progress(),200,150);