JavaFX 25 previews JavaFX controls in title bars
Briefly

JavaFX 25 previews JavaFX controls in title bars
"JavaFX 25 also adds new geometry-based methods to Text and TextFlow. This was done to provide missing APIs as well as the ability to properly account for insets and padding in TextFlow. JavaFX 25 also introduces TabStopPolicy for TextFlow, which provides a way for applications to define tab stops based on a geometric position in the text line rather than a fixed number of characters. This makes it suitable for proportional and monospaced fonts while boosting support for rich text."
"The addition of media queries in JavaFX CSS enables stylesheets to dynamically test specific aspects of the JavaFX scene. Media queries are independent of the contents of the scene graph, its styling, or any other internal aspect. And a new LayoutInfo object for text layout holds a snapshot of the text layout geometry in a Textor TextFlow node. This includes a list of text lines, shapes derived from the layout (selection, underline, strike-through, etc.), and caret information."
JavaFX 25 adds ability to style RichTextArea highlights using CSS and overloads for methods that accept lists of CSS style names, including RichParagraph::addHighlight and addWavyUnderline and SimpleViewOnlyStyledModel::highlight and addWavyUnderline. Geometry-based methods for Text and TextFlow provide missing APIs and properly account for TextFlow insets and padding. TabStopPolicy for TextFlow enables tab stops based on geometric positions in text lines rather than fixed character counts, improving support for proportional and monospaced fonts and rich text. Media queries in JavaFX CSS let stylesheets test scene aspects independently of scene graph contents or styling. A LayoutInfo object captures text layout geometry, shapes (selection, underline, strike-through), and caret information.
Read at InfoWorld
Unable to calculate read time
[
|
]