Browse Source

upcase constants

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277956 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
ca96cdaca8
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java

+ 7
- 7
src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java View File

@@ -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 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener {
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 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener {
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 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener {
}

public void actionPerformed(ActionEvent a) {
if (total < max) {
if (total < MAX) {
total++;
} else {
total = min;
total = MIN;
}
pb.setValue(total);
}
@@ -106,7 +106,7 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener {
}

public void buildFinished(BuildEvent event) {
pb.setValue(max);
pb.setValue(MAX);
setVisible(false);
dispose();
}


Loading…
Cancel
Save