private final void setMenuLayout()
			{
				if (isVertical)
					{
						double componentidth = Math.max(smallestComponentWidth, (width - (2 * borderSize)) - (usingScrollBar ? TScrollBar.scrollBarThickness : 0));
						double componentHeight = Math.max(componentidth * (0.8 / 4.0), smallestComponentHeight);

						for (int i = 0; i < getTComponents().size(); i++)
							{
								TComponent c = getTComponents().get(i);

								if (resizeComponentArray.get(i))
									{
										c.setHeight(componentHeight);
										c.setWidth(componentidth);
										calculateTotalMenuLength();
									}

								c.setX(x + ((width - (usingScrollBar ? TScrollBar.scrollBarThickness : 0)) - c.getWidthD()) / 2);
							}
					}
				else
					{
						double componentHeight = Math.max(smallestComponentHeight, (height - (2 * borderSize)) - (usingScrollBar ? TScrollBar.scrollBarThickness : 0));
						double componentWidth = Math.max(componentHeight * (0.8 / 4.0), smallestComponentWidth);

						for (int i = 0; i < getTComponents().size(); i++)
							{
								TComponent c = getTComponents().get(i);

								if (resizeComponentArray.get(i))
									{
										c.setHeight(componentHeight);
										c.setWidth(componentWidth);
										calculateTotalMenuLength();
									}
								c.setY(y + ((height - (usingScrollBar ? TScrollBar.scrollBarThickness : 0)) - c.getHeightD()) / 2);
							}
					}
			}