public void draw(Graphics g) {
		if (isShown) {
			g.drawImage(img, x, y, x + (3 * 8), y + (3 * 8), 0, 0, 3, 3, null);
			g.drawImage(img, x, y + (3 * 8), x + (3 * 8), y + h - (3 * 8), 0,
					3, 3, 6, null);
			g.drawImage(img, x, y + h - (3 * 8), x + (3 * 8), y + h, 0, 6, 3,
					9, null);
			g.drawImage(img, x + 3 * 8, y, x + w - (3 * 8), y + (3 * 8), 3, 0,
					6, 3, null);
			g.drawImage(img, x + 3 * 8, y + (3 * 8), x + w - (3 * 8), y + h
					- (3 * 8), 3, 3, 6, 6, null);
			g.drawImage(img, x + (3 * 8), y + h - (3 * 8), x + w - (3 * 8), y
					+ h, 3, 6, 6, 9, null);
			g.drawImage(img, x + w - (3 * 8), y, x + w, y + (3 * 8), 6, 0, 9,
					3, null);
			g.drawImage(img, x + w - (3 * 8), y + (3 * 8), x + w, y + h
					- (3 * 8), 6, 3, 9, 6, null);
			g.drawImage(img, x + w - (3 * 8), y + h - (3 * 8), x + w, y + h, 6,
					6, 9, 9, null);
		}
		if (!isShown) {
			if (isControlledByPlayer) {
				deselectAll();
				for (int i = 0; i < ItemW; i++) {
					g.drawImage(ITEMS[ItemH - 1][i].item, x + 16 + (i * 64), y
							+ ((ItemH - 1) * 40) + (h / 4)
							+ (h / 16 + (h / 32)), 32, 32, null);
				}
			}
		} else if (isControlledByPlayer) {
			checkForSwap();
			if (swapped) {
				if (!Mouse.isPressed) {
					deselectAll();
					swapped = false;
				}
			}
		}
		if (isShown) {
			for (int j = 0; j < ItemH; j++) {
				for (int i = 0; i < ItemW; i++) {
					g.drawImage(ITEMS[j][i].item, x + 16 + (i * 64), y
							+ (j * 40) + (h / 4) + (h / 16 + (h / 32)), 32, 32,
							null);
					if (RECTS[j][i].intersects(Mouse.r)) {
						g.drawImage(ImageFileHandler.Selecter, x + 16
								+ (i * 64), y + (j * 40) + (h / 4)
								+ (h / 16 + (h / 32)), 32, 32, null);
						if (Mouse.isPressed) {
							ITEMS[j][i].isSelected = true;
						}
					}
					if (ITEMS[j][i].isSelected) {
						g.drawImage(ImageFileHandler.Selected, x + 16
								+ (i * 64), y + (j * 40) + (h / 4)
								+ (h / 16 + (h / 32)), 32, 32, null);
					}
				}
			}
			g.drawImage(PImage, x + 16, y + 16, x + 128 + 16, y + 128 + 16, 0,
					0, 8, 8, null);
			g.setColor(Color.BLACK);
			g.drawString(PName, x + 256 - 96, y + 48);
			g.drawString(PType, x + 256 - 96, y + 72);
		}

	}