KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > swingui > MacProgressBar


1 package junit.swingui;
2
3 import javax.swing.JTextField JavaDoc;
4
5 /**
6     http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/
7 */

8 public class MacProgressBar extends ProgressBar {
9
10     private JTextField JavaDoc component;
11
12     public MacProgressBar(JTextField JavaDoc component) {
13         super();
14         this.component= component;
15      }
16
17     protected void updateBarColor() {
18         component.setBackground(getStatusColor());
19     }
20 }
21
Popular Tags