Window decorations consist of title bar, window controls and border.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Custom 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.void
setCustomTitleBar
(Dialog dialog, WindowDecorations.CustomTitleBar customTitleBar) IfcustomTitleBar
is 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.void
setCustomTitleBar
(Frame frame, WindowDecorations.CustomTitleBar customTitleBar) IfcustomTitleBar
is 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
IfcustomTitleBar
is 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=null
resets 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
IfcustomTitleBar
is 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=null
resets 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:
-