package main.woj.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

import main.woj.controllers.ActionController;
import main.woj.gameplay.Board;
import main.woj.gameplay.Game;

public class GameplayPage extends JPanel{
	private ScoreBoard scoreBoard;
	private QuestionPanel questionPanel;
	private ActionIndicator actionIndicator;
	private GameFrame gameFrame;
	private GameplayContainer gameplayContainer;
	private ActionController controller;
	
	public GameplayPage(GameFrame gameFrame, ActionController controller){
		this.gameFrame = gameFrame;
		this.controller = controller;
		setup();
		initComponents();
	}

	private void setup() {
		this.setSize(getMaximumSize());
		this.setLayout(new BorderLayout());
	}

	private void initComponents() {
		gameplayContainer = new GameplayContainer(controller);
		scoreBoard = new ScoreBoard();
		actionIndicator = new ActionIndicator();
		scoreBoard = new ScoreBoard();
		this.add(gameplayContainer, BorderLayout.CENTER);
		this.add(bottomPanel(), BorderLayout.SOUTH);
	}
	
	public void showBoard(){
		gameplayContainer.switchToBoard();
	}
	
	public void showWheel(){
		gameplayContainer.switchToWheel();
	}
	
	public GameBoard getBoard(){
		return gameplayContainer.getBoard();
	}
	
	private JPanel bottomPanel(){
		JPanel bottomPanel = new JPanel();
		bottomPanel.setLayout(new GridLayout(1,2));
		bottomPanel.add(scoreBoard);
		bottomPanel.add(actionIndicator);
		return bottomPanel;
	}
	
}

@@ -533,18 +533,81 @@
 roller;%0A
+%09private JLabel emptyLabel;%0A%09private JButton scoreBoardButton;%0A
 %09%0A
-
 %09public 
@@ -763,16 +763,249 @@
 ents();%0A
+%09%09initListeners();%0A%09%7D%0A%09%0A%09private void initListeners() %7B%0A%09%09scoreBoardButton.addActionListener(new ActionListener()%7B%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%09%0A%09%09%09%09ScoreBoard.showScoreBoard(gameFrame.gameModel);%0A%09%09%09%7D%0A        %7D);%0A
 %09%7D%0A%0A%09pri
@@ -1188,24 +1188,26 @@
 troller);%0A%09%09
+//
 scoreBoard =
@@ -1225,16 +1225,90 @@
 oard();%0A
+%09%09scoreBoardButton = new JButton(%22Score%22);%0A%09%09emptyLabel = new JLabel(%22%22);%0A
 %09%09action
@@ -1340,24 +1340,26 @@
 icator();%0A%09%09
+//
 scoreBoard =
@@ -1804,15 +1804,85 @@
 t(1,
-2
+3
 ));%0A%09%09
+bottomPanel.add(scoreBoardButton);%0A%09%09bottomPanel.add(emptyLabel);%0A%09%09//
 bott

Change ScoreBoard label to Score Board Button