summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/view/impl/View.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index 482f692..a257034 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -60,7 +60,7 @@ public class View extends JFrame implements IView {
@Override
public void componentResized(ComponentEvent e) {
Insets insets = getInsets();
- int x = insets.left, y = insets.top, width = getWidth() - insets.left
+ int width = getWidth() - insets.left
- insets.right, height = getHeight() - insets.top - insets.bottom;
int playerPanelHeight = even(Math.pow((double) width * width * height,
@@ -71,9 +71,9 @@ public class View extends JFrame implements IView {
int tableHeight = height - playerPanelHeight;
- table.setBounds(x, y, width, tableHeight);
+ table.setBounds(0, 0, width, tableHeight);
table.validate();
- playerPanel.setBounds(x, y + tableHeight, width, playerPanelHeight);
+ playerPanel.setBounds(0, tableHeight, width, playerPanelHeight);
}
});