示例#1
0
 public void actionPerformed(ActionEvent e) {
   for (int x = 0; x < mapWidth; x++) {
     for (int y = 0; y < mapHeight; y++) {
       Tile t = backEnd.getTile(x, y);
       t.setIcon(new ImageIcon(scaleImage(currTileImg.getImage(), DISPLAY_SCALE)));
       // System.out.println("fillButton actionListener");
       t.setSource(currTileLoc);
     }
   }
 }
示例#2
0
 public void mouseClicked(MouseEvent e) {
   Tile t = (Tile) e.getSource();
   t.setIcon(new ImageIcon(scaleImage(currTileImg.getImage(), 1)));
   t.setSource(currTileLoc);
 }