public static void setPlatform(int plaf)
	{
		switch (plaf) {
			case WINDOWS_XP:
				setRelatedGap(LPX4, LPY4);
				setUnrelatedGap(LPX7, LPY9);
				setParagraphGap(LPX14, LPY14);
				setIndentGap(LPX9, LPY9);
				setGridCellGap(LPX4, LPY4);

				setMinimumButtonWidth(new UnitValue(75, UnitValue.LPX, null));
				setButtonOrder("L_E+U+YNBXOCAH_R");
				setDialogInsets(LPY11, LPX11, LPY11, LPX11);
				setPanelInsets(LPY7, LPX7, LPY7, LPX7);
				break;
			case MAC_OSX:
				setRelatedGap(LPX4, LPY4);
				setUnrelatedGap(LPX7, LPY9);
				setParagraphGap(LPX14, LPY14);
				setIndentGap(LPX10, LPY10);
				setGridCellGap(LPX4, LPY4);

				setMinimumButtonWidth(new UnitValue(68, UnitValue.LPX, null));
				setButtonOrder("L_HE+U+NYBXCOA_R");
				setDialogInsets(LPY14, LPX20, LPY20, LPX20);
				setPanelInsets(LPY16, LPX16, LPY16, LPX16);

//				setRelatedGap(LPX8, LPY8);
//				setUnrelatedGap(LPX12, LPY12);
//				setParagraphGap(LPX16, LPY16);
//				setIndentGap(LPX10, LPY10);
//				setGridCellGap(LPX8, LPY8);
//
//				setMinimumButtonWidth(new UnitValue(68, UnitValue.LPX, null));
//				setButtonOrder("L_HE+U+NYBXCOA_R");
//				setDialogInsets(LPY14, LPX20, LPY20, LPX20);
//				setPanelInsets(LPY16, LPX16, LPY16, LPX16);
				break;
			case GNOME:
				setRelatedGap(LPX6, LPY6);                    // GNOME HIG 8.2.3
				setUnrelatedGap(LPX12, LPY12);                // GNOME HIG 8.2.3
				setParagraphGap(LPX18, LPY18);                // GNOME HIG 8.2.3
				setIndentGap(LPX12, LPY12);                   // GNOME HIG 8.2.3
				setGridCellGap(LPX6, LPY6);                   // GNOME HIG 8.2.3

				// GtkButtonBox, child-min-width property default value
				setMinimumButtonWidth(new UnitValue(85, UnitValue.LPX, null));
				setButtonOrder("L_HE+UNYACBXIO_R");           // GNOME HIG 3.4.2, 3.7.1
				setDialogInsets(LPY12, LPX12, LPY12, LPX12);  // GNOME HIG 3.4.3
				setPanelInsets(LPY6, LPX6, LPY6, LPX6);       // ???
				break;
			default:
				throw new IllegalArgumentException("Unknown platform: " + plaf);
		}
		CUR_PLAF = plaf;
		BASE_DPI = BASE_DPI_FORCED != null ? BASE_DPI_FORCED : getPlatformDPI(plaf);
	}