ProgressIndicator.java

/*
 * $RCSfile: ProgressIndicator.java,v $
 * $Id: ProgressIndicator.java,v 1.6 1998/11/30 02:21:07 devnull Exp $
 * by Lee Wilson, http://www.ad1440.net/~devnull
 * Development started on 1998 10 01
 * (c) Devnull Software, LLC. (http://www.devnullsoftware.com)
 */

package com.devnullsoftware.swingutils;

import java.awt.*;
import javax.swing.*;

/**
  Creates a small floating window with a progress bar indicator.

  @author Lee Wilson
  @version 1.0
 */

public class ProgressIndicator extends JFrame {
  public JProgressBar pProgressBar;

  public ProgressIndicator (String sTitle)  {
    super (sTitle);
    JPanel pProgressPanel = new JPanel();
    getContentPane().add(pProgressPanel);
    pProgressBar = new JProgressBar(1,100);
    pProgressBar.setValue(1);
    pProgressPanel.add(pProgressBar);
    addNotify();
//    pack();
    Insets pInsets = getInsets();
    setBounds(200,200,200+pInsets.left+pInsets.right,
              20+pInsets.top+pInsets.bottom);
    setVisible(true);
    pack();
  }

  
}