From 08e9b28f3b679a8f511ca40f5b8b6aa5ec8aa188 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 29 May 2011 21:21:55 +0200 Subject: Fix metrics git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@314 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/PlayerPanel.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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, -- cgit v1.2.3