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:
Woody Folsom
2012-04-02 13:54:55 -04:00
parent 521fac6e08
commit 02c4986c30
10 changed files with 115 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -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));