private Component getTile(int row, int col) {
JPanel panel = new JPanel();
Tile t = board[row][col];
/*panel.setBorder(
BorderFactory.createCompoundBorder(
BorderFactory.createEmptyBorder(
0,0,0,0),
BorderFactory.createMatteBorder(
t.isUp()?0:3, t.isLeft()?0:3,
t.isDown()?0:3, t.isRight()?0:3,
(row+col)%2==0?Color.BLUE:Color.RED)));*/
/*int tileNum = (int)(Math.random()*16);
String address = "img/p" + tileNum + ".bmp";
ImageIcon image = new ImageIcon(address);
System.out.println(address);
JLabel button = new JLabel(image);
//button.setIcon(image);
return button;*/
//panel.add(new JButton("X"));
Image image;
try {
image = ImageIO.read(new File (String.format("images/p%d.bmp", t.getTileNumber())));
JButton btn = new JButton(new ImageIcon(image));
btn.setVisible(true);
btn.setContentAreaFilled(false);
panel.add(btn);
} catch (MalformedURLException e) {