summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-02 16:21:38 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-02 16:21:38 +0200
commitd2c5268aa337d11ab55e8d2d6b2c13944a9548f9 (patch)
treea6137e8d89bca5afb67d85fdade5f96826f6e897 /src/jrummikub
parentd967a61c02dc55c7a666a06f704d56493be6db75 (diff)
downloadJRummikub-d2c5268aa337d11ab55e8d2d6b2c13944a9548f9.tar
JRummikub-d2c5268aa337d11ab55e8d2d6b2c13944a9548f9.zip
Fix frame insets
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@68 72836036-5685-4462-b002-a69064685172
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);
}
});