Example usage for javax.swing.plaf.basic BasicProgressBarUI BasicProgressBarUI

List of usage examples for javax.swing.plaf.basic BasicProgressBarUI BasicProgressBarUI

Introduction

In this page you can find the example usage for javax.swing.plaf.basic BasicProgressBarUI BasicProgressBarUI.

Prototype

BasicProgressBarUI

Source Link

Usage

From source file:org.pmedv.core.app.SplashScreen.java

public SplashScreen() {

    progressBar = new JProgressBar();
    progressBar.setForeground(Colors.COLOR_PROGRESSBAR);

    BasicProgressBarUI ui = new BasicProgressBarUI() {
        protected Color getSelectionBackground() {
            return Colors.COLOR_PROGRESSBAR; // string color over the background
        }//from w  w w  .  j a  va 2 s.  c  o  m

        protected Color getSelectionForeground() {
            return Color.WHITE; // string color over the foreground
        }
    };
    progressBar.setUI(ui);
}