diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-29 21:21:55 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-29 21:21:55 +0200 |
commit | 08e9b28f3b679a8f511ca40f5b8b6aa5ec8aa188 (patch) | |
tree | 3ef75f09f1da9e02cedef682f2c037ee0e506572 /src/jrummikub/view/impl | |
parent | d6b8b23c6de5d9fbe65b49c784dd698e83b0ca79 (diff) | |
download | JRummikub-08e9b28f3b679a8f511ca40f5b8b6aa5ec8aa188.tar JRummikub-08e9b28f3b679a8f511ca40f5b8b6aa5ec8aa188.zip |
Fix metrics
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@314 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r-- | src/jrummikub/view/impl/PlayerPanel.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java index 1db7f50..5eba07a 100644 --- a/src/jrummikub/view/impl/PlayerPanel.java +++ b/src/jrummikub/view/impl/PlayerPanel.java @@ -173,6 +173,12 @@ class PlayerPanel extends JPanel implements IPlayerPanel { timeBar.setStringPainted(true); rightPanel.add(timeBar); + createRightPanelButtons(); + + rightPanel.addComponentListener(new RightPanelResizeListener()); + } + + private void createRightPanelButtons() { endTurnButton = createButton(rightPanel, "---", new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -195,8 +201,6 @@ class PlayerPanel extends JPanel implements IPlayerPanel { redealEvent.emit(); } }); - - rightPanel.addComponentListener(new RightPanelResizeListener()); } private JButton createButton(JPanel panel, String caption, |