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;
	private JLabel emptyLabel;
	private JButton scoreBoardButton;
	
	public GameplayPage(GameFrame gameFrame, ActionController controller){
		this.gameFrame = gameFrame;
		this.controller = controller;
		setup();
		initComponents();
		initListeners();
	}
	
	private void initListeners() {
		scoreBoardButton.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {	
				ScoreBoard.showScoreBoard(gameFrame.gameModel);
			}
        });
	}

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

	private void initComponents() {
		gameplayContainer = new GameplayContainer(controller);
		//scoreBoard = new ScoreBoard();
		scoreBoardButton = new JButton("Score");
		emptyLabel = new JLabel("");
		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,3));
		bottomPanel.add(scoreBoardButton);
		bottomPanel.add(emptyLabel);
		//bottomPanel.add(scoreBoard);
		bottomPanel.add(actionIndicator);
		return bottomPanel;
	}
	
}

package main.woj.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
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;
	private JLabel emptyLabel;
	private JButton scoreBoardButton;
	
	public GameplayPage(GameFrame gameFrame, ActionController controller){
		this.gameFrame = gameFrame;
		this.controller = controller;
		setup();
		initComponents();
		initListeners();
	}
	
	private void initListeners() {
		scoreBoardButton.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {	
				ScoreBoard.showScoreBoard(gameFrame.gameModel);
			}
        });
	}

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

	private void initComponents() {
		gameplayContainer = new GameplayContainer(controller);
		//scoreBoard = new ScoreBoard();
		scoreBoardButton = new JButton("Score");
		emptyLabel = new JLabel("");
		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,3));
		bottomPanel.add(scoreBoardButton);
		bottomPanel.add(emptyLabel);
		//bottomPanel.add(scoreBoard);
		bottomPanel.add(actionIndicator);
		return bottomPanel;
	}
	
}

Add imports