Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: Window
The PopupWindow class wraps javafx.stage.PopupWindow, the base for the lightweight pop-up surfaces (through PopupControl, the ContextMenu and Tooltip). It extends Window and adds the anchor position and anchor location, the auto-fix, auto-hide, and hide-on-escape behaviors, the owning node or window, and the pop-up show variants. This wrapper is not constructed directly. Concrete pop-ups extend it, mirroring the JavaFX inheritance model.
PopupWindow ()
Base constructor. PopupWindow is abstract and is never instantiated on its own.
show (Owner)
Shows the pop-up bound to the given owner window at its current anchor.
Owner is the owner Window, passed as a wrapper or a raw AJO.this object for chainingshow (Owner, double X, double Y)
Shows the pop-up anchored at the given screen coordinates. The owner may be a Window or a Node; the correct JavaFX overload is chosen from the owner's runtime type.
Owner is the owner Window or Node, passed as a wrapper or a raw AJO.X is a double with the anchor x coordinate on screen.Y is a double with the anchor y coordinate on screen.this object for chainingsetAnchorX (double X)
Sets the anchor x position of the pop-up on screen, in pixels.
X is a double with the anchor x coordinate.this object for chaininggetAnchorX ()
Returns the anchor x position of the pop-up on screen, in pixels.
A double with the anchor x coordinate.anchorXProperty ()
Returns the ReadOnlyDoubleProperty backing the anchor x position.
An AJO wrapping ReadOnlyDoubleProperty.setAnchorY (double Y)
Sets the anchor y position of the pop-up on screen, in pixels.
Y is a double with the anchor y coordinate.this object for chaininggetAnchorY ()
Returns the anchor y position of the pop-up on screen, in pixels.
A double with the anchor y coordinate.anchorYProperty ()
Returns the ReadOnlyDoubleProperty backing the anchor y position.
An AJO wrapping ReadOnlyDoubleProperty.setAnchorLocation (string Location)
Sets which corner of the pop-up the anchor point refers to.
Location is a javafx.stage.PopupWindow$AnchorLocation constant name, for example WINDOW_TOP_LEFT, CONTENT_TOP_LEFT, or WINDOW_BOTTOM_RIGHT.this object for chaininggetAnchorLocation ()
Returns which corner of the pop-up the anchor point refers to.
An AJO wrapping javafx.stage.PopupWindow$AnchorLocation.anchorLocationProperty ()
Returns the ObjectProperty backing the anchor location.
An AJO wrapping ObjectPropertysetAutoFix (bool AutoFix)
Sets whether the pop-up is automatically repositioned to stay on screen.
AutoFix is a bool; true enables auto-fix.this object for chainingisAutoFix ()
Returns whether auto-fix is enabled.
A bool that is true when auto-fix is enabled.autoFixProperty ()
Returns the BooleanProperty backing the auto-fix flag.
An AJO wrapping javafx.beans.property.BooleanProperty.setAutoHide (bool AutoHide)
Sets whether the pop-up hides automatically when it loses focus.
AutoHide is a bool; true enables auto-hide.this object for chainingisAutoHide ()
Returns whether auto-hide is enabled.
A bool that is true when auto-hide is enabled.autoHideProperty ()
Returns the BooleanProperty backing the auto-hide flag.
An AJO wrapping javafx.beans.property.BooleanProperty.setHideOnEscape (bool HideOnEscape)
Sets whether the pop-up hides when the Escape key is pressed.
HideOnEscape is a bool; true enables hide-on-escape.this object for chainingisHideOnEscape ()
Returns whether hide-on-escape is enabled.
A bool that is true when hide-on-escape is enabled.hideOnEscapeProperty ()
Returns the BooleanProperty backing the hide-on-escape flag.
An AJO wrapping javafx.beans.property.BooleanProperty.setConsumeAutoHidingEvents (bool Consume)
Sets whether the events that trigger auto-hide are consumed.
Consume is a bool; true consumes the auto-hiding events.this object for chaininggetConsumeAutoHidingEvents ()
Returns whether the events that trigger auto-hide are consumed.
A bool that is true when auto-hiding events are consumed.consumeAutoHidingEventsProperty ()
Returns the BooleanProperty backing the consume-auto-hiding-events flag.
An AJO wrapping javafx.beans.property.BooleanProperty.setOnAutoHide (callback Cb)
Registers a callback invoked when the pop-up auto-hides.
Cb is a callback invoked with an Event.this object for chaininggetOnAutoHide ()
Returns the onAutoHide handler.
An AJO wrapping javafx.event.EventHandler, or null.onAutoHideProperty ()
Returns the ObjectProperty backing the onAutoHide handler.
An AJO wrapping ObjectPropertygetOwnerNode ()
Returns the node that owns this pop-up, if any.
An AJO wrapping javafx.scene.Node, or null.ownerNodeProperty ()
Returns the ReadOnlyObjectProperty backing the owner node.
An AJO wrapping ReadOnlyObjectPropertygetOwnerWindow ()
Returns the window that owns this pop-up, if any.
An AJO wrapping javafx.stage.Window, or null.ownerWindowProperty ()
Returns the ReadOnlyObjectProperty backing the owner window.
An AJO wrapping ReadOnlyObjectProperty
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.