Nie można zmienić koloru JProgressBar w systemie Mac OS

Wiem, że na to pytanie udzielono wcześniej odpowiedzi, ale dla mnie to nie działa. Postępowałem zgodnie z instrukcjami tutaj:Jak zmienić kolor JProgressBar?

import javax.swing.*;
import java.awt.*;

public class ProgressBarTest extends JFrame {

    public static void main(String args[]) {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        UIManager.put("ProgressBar.background", Color.orange);
        UIManager.put("ProgressBar.foreground", Color.black);
        UIManager.put("ProgressBar.selectionBackground", Color.red);
        UIManager.put("ProgressBar.selectionForeground", Color.green);
        JProgressBar progressBar = new JProgressBar(0,100);
        progressBar.setValue(50);
        f.add(progressBar, BorderLayout.PAGE_END);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }

}

Dostaję tylko te same stare kolory.

Używam Mac OS X 10.7.3 i Java 1.6. PróbowałemCrossPlatformLookAndFeel i działa z nowymi kolorami. Jednak chcę tego w domyślnym wyglądzie i stylu. Jak mogę to zrobić?

questionAnswers(1)

yourAnswerToTheQuestion