diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java index d569579c5..0795863bd 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java @@ -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(); }