To support changing the orientation of the visual components, the Desktop has the orientation attribute. When this attribute is passed as a parameter, the Desktop changes the orientation of all of its visual elements to match the orientation value. The orientation change of these visual components is supported by the ComponentOrientation Java class.