package boundary;

import controller.PlayerMainMenuCtrl;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import model.PlayerModel;
import javax.swing.BoxLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Component;

/**
 * The view when a player loads up a level.
 * @author Bailey Sheridan &amp; Maurizio Vitale &amp; Eli Skeggs
 */
public class PlayerLevelView extends JPanel {
  PlayerApplication app;
  PlayerModel model;
  public PlayerBoardView boardView;

  public PlayerLevelView(PlayerApplication app, PlayerModel model) {
    this.app = app;
    this.model = model;

    setMinimumSize(new Dimension(600,480));
    setPreferredSize(new Dimension(600, 480));
    setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

    //Panel Left (Game Board)

    JPanel panelLeft = new JPanel();
    panelLeft.setAlignmentY(0);
    add(panelLeft);
    panelLeft.setLayout(new BoxLayout(panelLeft, BoxLayout.X_AXIS));
    boardView = new PlayerBoardView(app, model);
    boardView.setAlignmentY(0);
    panelLeft.add(boardView);

    //Panel Controls

    JPanel panelControls = new JPanel();
    panelControls.setAlignmentY(Component.TOP_ALIGNMENT);
    panelLeft.add(panelControls);
    panelControls.setLayout(new BoxLayout(panelControls, BoxLayout.Y_AXIS));

    JButton btnSwap = new JButton("Z");
    panelControls.add(btnSwap);

    JButton btnRemove = new JButton("X");
    panelControls.add(btnRemove);

    JButton btnScramble = new JButton("C");
    panelControls.add(btnScramble);

    //Panel Right

    JPanel panelRight = new JPanel();
    panelRight.setAlignmentX(0);
    panelRight.setAlignmentY(0);
    add(panelRight);
    panelRight.setLayout(new BoxLayout(panelRight, BoxLayout.Y_AXIS));

    //Panel Navigation

    JPanel panelNavigation = new JPanel();
    panelNavigation.setAlignmentX(0.0f);
    panelNavigation.setAlignmentY(Component.BOTTOM_ALIGNMENT);
    panelRight.add(panelNavigation);
    panelNavigation.setLayout(new BoxLayout(panelNavigation, BoxLayout.X_AXIS));

    JButton btnRestart = new JButton("Restart");
    btnRestart.addActionListener(new PlayerResetLevelCtrl(app,model));
    panelNavigation.add(btnRestart);

    JButton btnMainMenu = new JButton("Main Menu");
    btnMainMenu.addActionListener(new PlayerMainMenuCtrl(app, model));
    panelNavigation.add(btnMainMenu);

    //Panel Info

    JPanel panelInfo = new JPanel();
    panelInfo.setAlignmentX(0);

    panelRight.add(panelInfo);
    panelInfo.setLayout(new BoxLayout(panelInfo, BoxLayout.Y_AXIS));

    JLabel lblScore = new JLabel("Score");
    panelInfo.add(lblScore);

    JLabel lblScoreNum = new JLabel("12345");
    panelInfo.add(lblScoreNum);

    JLabel lblCounter = new JLabel("Moves Left");
    panelInfo.add(lblCounter);

    JLabel lblCounterNum = new JLabel("20");
    panelInfo.add(lblCounterNum);
  }
}

@@ -373,22 +373,17 @@
 Sheridan
- &amp;
+,
  Maurizi
@@ -394,14 +394,13 @@
 tale
- &amp;
+, and
  Eli
@@ -1887,11 +1887,8 @@
 tX(0
-.0f
 );%0A 

Add minor changes to playerlevelview