Skip to content

Commit

Permalink
Added class comments to the view
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Apr 20, 2016
1 parent 1f264d3 commit 8e062a8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/view/CheckersCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

import model.Location;

/**
* Represents the canvas on which the checkers board is drawn.
* @author john
*
*/
@SuppressWarnings("serial")
public class CheckersCanvas extends JPanel {

Expand Down
6 changes: 6 additions & 0 deletions src/view/CheckersWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
* Represents the JFrame window that will hold the graphical components
* of the game.
* @author john
*
*/
@SuppressWarnings("serial")
public class CheckersWindow extends JFrame {
/* Constants for the size of the window */
Expand Down
5 changes: 5 additions & 0 deletions src/view/GameEventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

import javax.swing.JOptionPane;

/**
* Represents an object which listens for any events which occur in the UI
* @author john
*
*/
public class GameEventListener implements MouseListener, KeyListener, ActionListener {

/**
Expand Down
6 changes: 6 additions & 0 deletions src/view/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
* Represents the panel which will hold all of the graphical
* components of the game.
* @author john
*
*/
@SuppressWarnings("serial")
public class GamePanel extends JPanel {
private JLabel messageBar;
Expand Down

0 comments on commit 8e062a8

Please sign in to comment.