summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-30 22:14:00 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-30 22:14:00 +0200
commite2ecbd02cb80ac2f7ea323ae41df7bd35e5b01ba (patch)
treefe61acba57d44a8274c2f4fc40a0de2a7376ef10
parentdd46130c8c8718fd108362d8133b6ca9e8c78325 (diff)
downloadJRummikub-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
-rw-r--r--src/jrummikub/view/impl/Board.java2
-rw-r--r--src/jrummikub/view/impl/Table.java3
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