From e2ecbd02cb80ac2f7ea323ae41df7bd35e5b01ba Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Apr 2011 22:14:00 +0200 Subject: Repaint when necessary git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@38 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/Board.java | 2 ++ src/jrummikub/view/impl/Table.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/jrummikub/view/impl') diff --git a/src/jrummikub/view/impl/Board.java b/src/jrummikub/view/impl/Board.java index be5ec26..2678204 100644 --- a/src/jrummikub/view/impl/Board.java +++ b/src/jrummikub/view/impl/Board.java @@ -77,10 +77,12 @@ public class Board extends JPanel implements IBoard { @Override public void setStones(Map stones) { this.stones = stones; + repaint(); } @Override public void setHighlightedStones(Collection stones) { highlightedStones = stones; + repaint(); } } diff --git a/src/jrummikub/view/impl/Table.java b/src/jrummikub/view/impl/Table.java index 653167e..8e12569 100644 --- a/src/jrummikub/view/impl/Table.java +++ b/src/jrummikub/view/impl/Table.java @@ -57,12 +57,13 @@ public class Table extends JPanel implements ITable { @Override public void setStoneSets(Map stoneSets) { this.stoneSets = stoneSets; + repaint(); } @Override public void setHighlightedStones(Collection stones) { highlightedStones = stones; - + repaint(); } @Override -- cgit v1.2.3