summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/view/Table.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jrummikub/view/Table.java b/src/jrummikub/view/Table.java
index aaa1068..f1197b7 100644
--- a/src/jrummikub/view/Table.java
+++ b/src/jrummikub/view/Table.java
@@ -1,6 +1,7 @@
package jrummikub.view;
import java.awt.BorderLayout;
+import java.awt.Color;
import java.awt.Graphics;
import javax.swing.ImageIcon;
@@ -35,14 +36,17 @@ public class Table extends JPanel implements ITable {
setLayout(new BorderLayout());
leftPlayerLabel = new JLabel();
+ leftPlayerLabel.setForeground(Color.WHITE);
add(leftPlayerLabel, BorderLayout.WEST);
topPlayerLabel = new JLabel();
topPlayerLabel.setHorizontalAlignment(JLabel.CENTER);
topPlayerLabel.setHorizontalTextPosition(JLabel.CENTER);
+ topPlayerLabel.setForeground(Color.WHITE);
add(topPlayerLabel, BorderLayout.NORTH);
rightPlayerLabel = new JLabel();
+ rightPlayerLabel.setForeground(Color.WHITE);
add(rightPlayerLabel, BorderLayout.EAST);
innerPanel = new JPanel();
@@ -51,7 +55,7 @@ public class Table extends JPanel implements ITable {
}
@Override
- public void paint(Graphics g) {
+ protected void paintComponent(Graphics g) {
for(int x = 0; x < getWidth(); x += background.getIconWidth()) {
for(int y = 0; y < getHeight(); y += background.getIconHeight()) {
background.paintIcon(this, g, x, y);