public TileButton(Tile t) {
			super();

			Image i2 = new BufferedImage(gfx.getBaseTileSize().width,
					gfx.getBaseTileSize().height, BufferedImage.TYPE_INT_ARGB);

			if (t != null) {
				Image i = t.getImage();
				i2.getGraphics().drawImage(i, 0, 0, 32, 32, null);
				setToolTipText(t.getName());
			}

			setIcon(new ImageIcon(i2));

			setMargin(new Insets(2, 2, 2, 2));
			tile = t;

			this.addMouseListener(this);
			this.addActionListener(this);
		}