From c4c091eb61738dc9a1b816dbf0b13657f6f881fa Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 May 2011 22:27:39 +0200 Subject: Use correct default foreground color for the time bar git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@247 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/PlayerPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java index 8d0719a..8a5912d 100644 --- a/src/jrummikub/view/impl/PlayerPanel.java +++ b/src/jrummikub/view/impl/PlayerPanel.java @@ -13,6 +13,7 @@ import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JProgressBar; +import javax.swing.UIManager; import javax.swing.border.EmptyBorder; import jrummikub.util.Event; @@ -72,7 +73,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel { if (time <= 10) timeBar.setForeground(Color.RED); else - timeBar.setForeground(Color.BLACK); + timeBar.setForeground(UIManager.getColor("ProgressBar.foreground")); } @Override -- cgit v1.2.3