public void render(Graphics2D g) {
		if (!img) {
			if (on == false) {
				g.setColor(Color.GRAY);
			} else {
				g.setColor(Color.LIGHT_GRAY);
			}
			g.fill3DRect(x, y, width, height,true);
			g.setColor(Color.BLACK);
			g.setFont(f);
			g.drawString(title, x + xOff, y + yOff + g.getFont().getSize());

		}else{
			if (on == false) {
				g.drawImage(imgs[0], x, y, width, height, null);
			} else {
				g.drawImage(imgs[1], x, y, width, height, null);
			}
		}
	}