From 59e4d3664f172db9f173056fcf0dd628f503d09f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Apr 2011 22:21:42 +0200 Subject: Paint table background git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@4 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/PlayerPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jrummikub/view/PlayerPanel.java') diff --git a/src/jrummikub/view/PlayerPanel.java b/src/jrummikub/view/PlayerPanel.java index f0416dd..b4affd0 100644 --- a/src/jrummikub/view/PlayerPanel.java +++ b/src/jrummikub/view/PlayerPanel.java @@ -15,7 +15,7 @@ import javax.swing.border.LineBorder; @SuppressWarnings("serial") public class PlayerPanel extends JPanel implements IPlayerPanel { - private final static DecimalFormat intFormat = new DecimalFormat("00"); + private final static DecimalFormat secondFormat = new DecimalFormat("00"); private Board board; @@ -40,7 +40,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { public void setTimeLeft(int time) { timeBar.setValue(time); - timeBar.setString(Integer.toString(time/60) + ":" + intFormat.format(time%60)); + timeBar.setString(Integer.toString(time/60) + ":" + secondFormat.format(time%60)); } -- cgit v1.2.3