Make a package "netscape.asw" from the progress bar applet

This commit is contained in:
timm 1998-04-21 06:58:48 +00:00
parent a020a3066b
commit 8c1df5d995
2 changed files with 12 additions and 6 deletions

View File

@ -18,8 +18,9 @@
package netscape.asw;
import netscape.npasw.*;
import netscape.asw.ProgressApplet;
import netscape.npasw.CPGenerator;
import netscape.npasw.ServerDownload;
import java.lang.*;
//import AMDProgressBar;
@ -33,6 +34,7 @@ public class CPGeneratorProgress extends ProgressApplet
final static String WAITING = "Waiting for response...";
final static String RECEIVING_RESPONSE = "Receiving server data...";
final static String ABORT = "There were problems with the server connection...";
final static String DIALING_STRING = "Calling registration server...";
protected int getState()
{
@ -42,6 +44,12 @@ public class CPGeneratorProgress extends ProgressApplet
return ServerDownload.getState();
}
public void init()
{
super.init();
progress.setText( DIALING_STRING );
}
public void run()
{
try

View File

@ -17,7 +17,7 @@
*/
package netscape.asw;
import netscape.npasw.*;
import netscape.npasw.Trace;
import java.awt.*;
import java.applet.*;
//import AMDProgressBar;
@ -28,8 +28,6 @@ public class ProgressApplet extends Applet implements Runnable
Label progress;
Button cancel;
final String DIALING_STRING = "Calling registration server...";
final static Font TEXTFONT = new Font( "Dialog", Font.BOLD, 12 );
final static Font BARFONT = new Font( "Helvetica", Font.PLAIN, 9 );
final static Color BOXCOLOR = Color.darkGray;
@ -54,7 +52,7 @@ public class ProgressApplet extends Applet implements Runnable
resize( insets().left + insets().right + 360, insets().top + insets().bottom + 120 );
setFont( TEXTFONT );
status = new java.awt.Label( DIALING_STRING );
status = new java.awt.Label( "" );
status.reshape( insets().left + 12, insets().top + 8, 340, 24 );
status.setFont( TEXTFONT );
add( status );