@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);

		final int x = 6;
		final int y = 6;
		final int width = getWidth() - 12;
		final int height = getHeight() - 12;

		final FontMetrics fontMetrics = getFontMetrics(font);
		final int charWidth = fontMetrics.getWidths()[0];
		final int charHeight = fontMetrics.getHeight();

		g.setFont(font);
		if(isFocused) {
			g.setColor(Color.gray);
//			g.fillRect(x, y, width, height);
			g.fillRoundRect(x, y, width, height, 5, 5);
		}
		g.setColor(Color.black);
//		g.drawRect(x, y, width, height);
		g.drawRoundRect(x, y, width, height, 5, 5);

		g.setColor(Color.black);
		g.drawString(Integer.toString(box.getValue()), x + (width - charWidth) / 2 + 1, y + (height - charHeight) / 2 + 12);

		final FontMetrics littleMetrics = getFontMetrics(smallFont);
		final int littleWidth = littleMetrics.getWidths()[0];
		final int littleHeight = littleMetrics.getHeight();

		int littlePlace = width - box.getLittleBoxes().size() * (littleWidth + 2) - 2;

		g.setFont(smallFont);
		for(Integer littleBox : box.getLittleBoxes()) {
			g.drawString(littleBox.toString(), x + littlePlace, y + 10 + littleHeight / 2);
			littlePlace += littleWidth + 2;
		}
	}