Window decorations consist of title bar, window controls and border.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCustom title bar allows merging of window content with native title bar, which is done by treating title bar as part of client area, but with some special behavior like dragging or maximizing on double click. -
Method Summary
Modifier and TypeMethodDescriptionYou must set title bar height before adding it to a window.voidsetCustomTitleBar(Dialog dialog, WindowDecorations.CustomTitleBar customTitleBar) IfcustomTitleBaris not null, system-provided title bar is removed and client area is extended to the top of the dialog with window controls painted over the client area.voidsetCustomTitleBar(Frame frame, WindowDecorations.CustomTitleBar customTitleBar) IfcustomTitleBaris not null, system-provided title bar is removed and client area is extended to the top of the frame with window controls painted over the client area.
-
Method Details
-
setCustomTitleBar
IfcustomTitleBaris not null, system-provided title bar is removed and client area is extended to the top of the frame with window controls painted over the client area.customTitleBar=nullresets to the default appearance with system-provided title bar.- Parameters:
frame- frame to setup custom title bar oncustomTitleBar- new title bar instance, or null- See Also:
-
setCustomTitleBar
IfcustomTitleBaris not null, system-provided title bar is removed and client area is extended to the top of the dialog with window controls painted over the client area.customTitleBar=nullresets to the default appearance with system-provided title bar.- Parameters:
dialog- dialog to setup custom title bar oncustomTitleBar- new title bar instance, or null- See Also:
-
createCustomTitleBar
WindowDecorations.CustomTitleBar createCustomTitleBar()You must set title bar height before adding it to a window.- Returns:
- new CustomTitleBar instance
- See Also:
-