@Override
	public void paint(Graphics g) {
		g.setColor(super.getBackground());
		g.fillRect(0, 0, this.getWidth(), this.getHeight());
		if(autosize)
		{
			if(selected)
			{
				Image tmp = this.highlighted.getImage().getScaledInstance(this.getWidth(), this.getHeight(), java.awt.Image.SCALE_SMOOTH);				
				g.drawImage(new ImageIcon(tmp).getImage(), 0, 0, null);
			}
			else
			{
				Image tmp = this.normal.getImage().getScaledInstance(this.getWidth(), this.getHeight(), java.awt.Image.SCALE_SMOOTH);				
				g.drawImage(new ImageIcon(tmp).getImage(), 0, 0, null);
			}
		
		}
		else
		{
			if(selected)
				g.drawImage(this.highlighted.getImage(), 0, 0, null);
			else
				g.drawImage(this.normal.getImage(), 0, 0, null);
		}
	}