diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-30 22:14:00 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-30 22:14:00 +0200 |
commit | e2ecbd02cb80ac2f7ea323ae41df7bd35e5b01ba (patch) | |
tree | fe61acba57d44a8274c2f4fc40a0de2a7376ef10 /src/jrummikub/view | |
parent | dd46130c8c8718fd108362d8133b6ca9e8c78325 (diff) | |
download | JRummikub-e2ecbd02cb80ac2f7ea323ae41df7bd35e5b01ba.tar JRummikub-e2ecbd02cb80ac2f7ea323ae41df7bd35e5b01ba.zip |
Repaint when necessary
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@38 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/impl/Board.java | 2 | ||||
-rw-r--r-- | src/jrummikub/view/impl/Table.java | 3 |
2 files changed, 4 insertions, 1 deletions
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<Stone, Position> stones) { this.stones = stones; + repaint(); } @Override public void setHighlightedStones(Collection<Stone> 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<StoneSet, Position> stoneSets) { this.stoneSets = stoneSets; + repaint(); } @Override public void setHighlightedStones(Collection<Stone> stones) { highlightedStones = stones; - + repaint(); } @Override |