diff options
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, |