Win
type (joe.win
)
This static type provides access to the application window.
- Win.css(css) → this
- Win.cssFile(filename) → this
- Win.root() → VBox
- Win.setSize(width, height) → this
- Win.setTitle(title) → this
Static Methods
Win.css()
Win.css(css) → this
Sets the text of the CSS style sheet for the application as a whole to css. For example,
Win.css("""
.label { -fx-text-fill: pink; }
""");
See Styling with CSS for more on using CSS in joe win
scripts.
JavaFX: In particular, this adds the given CSS to the
Scene
's stylesheets
property as a data:
URL containing
the given css text. The styles are therefore accessible to
the entire scene.
Win.cssFile()
Win.cssFile(filename) → this
Sets the CSS style sheet for the application as a whole given
a path to a .css
file.
Win.cssFill("my.css");
See Styling with CSS for more on using CSS in joe win
scripts.
JavaFX: In particular, this adds the given CSS file to the
Scene
's stylesheets
property as a file:
URL. The styles are
therefore accessible to // the entire scene.
Win.root()
Win.root() → VBox
Returns the root window, a VBox
.
Win.setSize()
Win.setSize(width, height) → this
Sets the preferred size of the root window. The width and height must be positive.
Win.setTitle()
Win.setTitle(title) → this
Sets the title of the root window.