Make a package "netscape.asw" from the progress bar applet
git-svn-id: svn://10.0.0.236/trunk@443 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user