App can now be built using Ant and run from the JAR file.
Note: this requires adding the res/lib folder to the classpath in order to run in Eclipse (included in this commit). Another commit will follow to remove build artifacts from git.
This commit is contained in:
BIN
src/img/blue.png
BIN
src/img/blue.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB |
BIN
src/img/none.png
BIN
src/img/none.png
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB |
BIN
src/img/red.png
BIN
src/img/red.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
@@ -51,28 +51,22 @@ public class BoardPanel extends JPanel implements Refreshable {
|
||||
|
||||
}
|
||||
|
||||
public static final URL BLUE_ICON = ClassLoader
|
||||
.getSystemResource("img/blue.png");
|
||||
|
||||
public static final URL GREEN_ICON = ClassLoader
|
||||
.getSystemResource("img/green.png");
|
||||
public static final URL NONE_ICON = ClassLoader
|
||||
.getSystemResource("img/none.png");
|
||||
public static final URL RED_ICON = ClassLoader
|
||||
.getSystemResource("img/red.png");
|
||||
public static final URL YELLOW_ICON = ClassLoader
|
||||
.getSystemResource("img/yellow.png");
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public static final URL BLUE_ICON = BoardPanel.class
|
||||
.getResource("/img/blue.png");
|
||||
public static final URL GREEN_ICON = BoardPanel.class
|
||||
.getResource("/img/green.png");
|
||||
public static final URL NONE_ICON = BoardPanel.class
|
||||
.getResource("/img/none.png");
|
||||
public static final URL RED_ICON = BoardPanel.class
|
||||
.getResource("/img/red.png");
|
||||
public static final URL YELLOW_ICON = BoardPanel.class
|
||||
.getResource("/img/yellow.png");
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final JLabel[][] board = new JLabel[Board.NUM_ROWS][Board.NUM_COLS];
|
||||
private final Referee referee;
|
||||
|
||||
// private final ImageIcon[][] icons = new
|
||||
// ImageIcon[Board.NUM_ROWS][Board.NUM_COLS];
|
||||
|
||||
public BoardPanel(Referee ref) {
|
||||
referee = ref;
|
||||
setLayout(new GridLayout(Board.NUM_ROWS, Board.NUM_COLS));
|
||||
|
||||
Reference in New Issue
Block a user