peterreilly 2005/03/14 10:15:36
Modified: src/main/org/apache/tools/ant/taskdefs/optional/splash
SplashScreen.java
Log:
upcase constants
Revision Changes Path
1.13 +7 -7
ant/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java
Index: SplashScreen.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SplashScreen.java 7 Sep 2004 08:55:38 -0000 1.12
+++ SplashScreen.java 14 Mar 2005 18:15:36 -0000 1.13
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2004 The Apache Software Foundation
+ * Copyright 2002-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,8 +38,8 @@
private JLabel text;
private JProgressBar pb;
private int total;
- private static final int min = 0;
- private static final int max = 200;
+ private static final int MIN = 0;
+ private static final int MAX = 200;
public SplashScreen(String msg) {
init(null);
@@ -65,7 +65,7 @@
text.setFont(new Font("Sans-Serif", Font.BOLD, 12));
text.setBorder(BorderFactory.createEtchedBorder());
- pb = new JProgressBar(min, max);
+ pb = new JProgressBar(MIN, MAX);
pb.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
JPanel pan2 = new JPanel();
pan2.setLayout(new BorderLayout());
@@ -93,10 +93,10 @@
}
public void actionPerformed(ActionEvent a) {
- if (total < max) {
+ if (total < MAX) {
total++;
} else {
- total = min;
+ total = MIN;
}
pb.setValue(total);
}
@@ -106,7 +106,7 @@
}
public void buildFinished(BuildEvent event) {
- pb.setValue(max);
+ pb.setValue(MAX);
setVisible(false);
dispose();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]