New API since JavaFX 9
Show API added in:
Contents
-
New ModulesModuleAdded inDescription9Defines the base APIs for the JavaFX UI toolkit, including APIs for bindings, properties, collections, and events.9Defines the UI controls, charts, and skins that are available for the JavaFX UI toolkit.9Defines the FXML APIs for the JavaFX UI toolkit.9Defines the core scenegraph APIs for the JavaFX UI toolkit (such as layout containers, application lifecycle, shapes, transformations, canvas, input, painting, image handling, and effects), as well as APIs for animation, css, concurrency, geometry, printing, and windowing.9Defines APIs for playback of media and audio content, as part of the JavaFX UI toolkit, including
MediaViewandMediaPlayer.99Defines APIs for the WebView functionality contained within the the JavaFX UI toolkit.
-
New InterfacesInterfaceAdded inDescription22Contains UI preferences of the current platform.9Load listener interface.21Represents a cancel or cleanup operation for an action that can be cancelled or that allocated resources.
-
New ClassesClassAdded inDescription9A compound selector which behaves according to the CSS standard.9Converter to convert a
Stringto aBoolean.9Converter to convert aStringto aColor.9Converter to convert aStringto aCursor.9Converter to convert a combination of color and brightness values to a derivedColor.9Converter to combine twoSizevalues.9Converter to Convert aSizetoDuration.9Converter to convert a string representation of anEffectto anEffect.9Converter to convert aDropShadoweffect.9Converter to convert anInnerShadoweffect.9Converter to convert a string representation of anEnumto anEnum.9Converter to convert a parsed representation of aFontto aFont.9Converter to convert a parsed font size value to aNumberobject.9Converter to convert aStringvalue to aFontPostureobject.9Converter to convert aStringvalue to aFontWeightobject.9Converter to convert a parsed value array of 1 to 4 size components to anInsets.9Converter to convert an array of parsed values, each of which is an array of 1 to 4 size components, to an array ofInsetsobjects.9Converter to convert a parsed representation of color ladder values to aColor.9Converter to convert a parsed representation of aPaintto aPaint.9Converter to convert image pattern parsed values to aPaintobject.9Converter to convert linear gradient parsed values to aPaintobject.9Converter to convert radial gradient parsed values to aPaintobject.9Converter to convert repeating image pattern parsed values to aPaintobject.9Converter to convert a sequence of parsed values to an array ofPaintobjects.9Converter to convert a SVG shape string into aShapeobject.9Converter to convert aSizeto aNumber.9Converter to convert a sequence of sizes to an array ofNumber.9Converter to convert aStopfrom aSizeand aColor.9Converter for quoted strings which may have embedded unicode characters.9Converter to convert a sequence ofStrings to an array ofStrings.9Converter to convert a parsed value representing URL to a URL string that is resolved relative to the location of the stylesheet.9Converter to convert a sequence of URLs to an array ofStrings.9A parser for a CSS document string.9This class serves as a container of a CSS property and its value.9A FontFace is a @font-face definition from CSS file9Used byRuleto determine whether or not the selector applies to a given object.9A Rule is a collection of CSSSelectors andDeclarations.9Used byCSSRuleto determine whether or not theSelectorapplies to a given object.9A simple selector which behaves according to the CSS standard.9Represents a size specified in a particular unit, such as 14px or 0.2em.9A Style is just the selector and declaration from a Rule.9A class that containsStyleClassinformation.9The StringStore class.9A stylesheet which can apply properties to a tree of objects.20Base class for a constrained column resize policy.9Default skin implementation for theAccordioncontrol.9Default skin implementation for theButtonBarcontrol.9Default skin implementation for theButtoncontrol.99Default skin implementation for the tri-stateCheckBoxcontrol.9Default skin implementation for theChoiceBoxcontrol.9Default skin implementation for theColorPickercontrol.9An abstract class intended to be used as the base skin for ComboBox-like controls that are based onComboBoxBase.9Default skin implementation for theComboBoxcontrol.9An abstract class that extends the functionality ofComboBoxBaseSkinto include API related to showing ComboBox-like controls as popups.9Default Skin implementation for ContextMenu.9Default skin implementation for theDateCellcontrol.9Default skin implementation for theDatePickercontrol.9Default skin implementation for theHyperlinkcontrol.9Default skin implementation for controls extendsLabeled.9Default skin implementation for theLabelcontrol.9Default skin implementation for theListCellcontrol.9Default skin implementation for theListViewcontrol.9Default skin implementation for theMenuBarcontrol.9Default skin implementation for theMenuButtoncontrol.9Base class for MenuButtonSkin and SplitMenuButtonSkin.9This class is used to construct the header of a TableView.9Default skin implementation for thePaginationcontrol.9Default skin implementation for theProgressBarcontrol.9Default skin implementation for theProgressIndicatorcontrol.9Default skin implementation for theRadioButtoncontrol.9Default skin implementation for theScrollBarcontrol.9Default skin implementation for theScrollPanecontrol.9Default skin implementation for theSeparatorcontrol.9Default skin implementation for theSlidercontrol.9Default skin implementation for theSpinnercontrol.9Default skin implementation for theSplitMenuButtoncontrol.9Default skin implementation for theSplitPanecontrol.9Default skin implementation for theTableCellcontrol.9Base skin for table cell controls, for example:TableCellandTreeTableCell.9Region responsible for painting a single column header.9Region responsible for painting the entire row of column headers.9Default skin implementation for theTableRowcontrol.9TableRowSkinBase is the base skin class used by controls such asTableRowandTreeTableRow(the concrete classes areTableRowSkinandTreeTableRowSkin, respectively).9Default skin implementation for theTableViewcontrol.9TableViewSkinBase is the base skin class used by controls such asTableViewandTreeTableView(the concrete classes areTableViewSkinandTreeTableViewSkin, respectively).9Default skin implementation for theTabPanecontrol.9Default skin implementation for theTextAreacontrol.9Default skin implementation for theTextFieldcontrol.9Abstract base class for text input skins.9Default skin implementation for theTitledPanecontrol.9Default skin implementation for theToggleButtoncontrol.9Default skin implementation for theToolBarcontrol.9Default skin implementation for theTreeCellcontrol.9Default skin implementation for theTreeTableCellcontrol.9Default skin implementation for theTreeTableRowcontrol.9Default skin implementation for theTreeTableViewcontrol.9Default skin implementation for theTreeViewcontrol.9Parent class to control skins whose contents are virtualized and scrollable.9Implementation of a virtualized container using a cell based mechanism.18A light that illuminates an object from a specific direction.13ThePixelBufferclass represents pixel data that is constructed from ajava.nio.Buffersupplied by the application.11ARobotis used for simulating user interaction such as typing keys on the keyboard and using the mouse as well as capturing graphical information without requiring aSceneinstance.17A light source that radiates light in a cone in a specific direction away from itself.9Represents the hit information in a Text node.9HTML editor skin.9This class is for JavaFX permissions.
-
New Enum ClassesEnum ClassAdded inDescription22Defines the color scheme of the user interface, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.9Represents a size specified in a particular unit, such as 14px or 0.2em.21This enum describes the values for
TOGGLE_STATEattribute.10This enum specifies drag policies for tabs in a TabPane.
-
New FieldsFieldAdded inDescription15The tag name of the compile processing instruction.20A resize policy that adjusts other columns in order to fit the table width.20A resize policy that adjusts columns, starting with the last one, in order to fit the table width.20A resize policy that adjusts columns, starting with the next one, in order to fit the table width.20A resize policy that adjusts the last column in order to fit the table width.20A resize policy that adjusts the next column in order to fit the table width.20A resize policy that adjusts subsequent columns in order to fit the table width.20A resize policy that adjusts other columns in order to fit the tree table width.20A resize policy that adjusts columns, starting with the last one, in order to fit the table width.20A resize policy that adjusts columns, starting with the next one, in order to fit the tree table width.20A resize policy that adjusts the last column in order to fit the tree table width.20A resize policy that adjusts the next column in order to fit the tree table width.20A resize policy that adjusts subsequent columns in order to fit the tree table width.
-
New MethodsMethodAdded inDescription21Indicates whether a nested event loop can be started from the current thread in the current state.9Enter a nested event loop and block until the corresponding exitNestedEventLoop call is made.9Exit a nested event loop and unblock the caller of the corresponding enterNestedEventLoop.22Gets the preferences of the current platform.17Returns a flag indicating whether the key corresponding to
keyCodeis in the locked (or "on") state.9Checks whether a nested event loop is running, returning true to indicate that one is, and false if there are no nested event loops currently running.9Requests the Java Runtime to perform a pulse.9This method starts the JavaFX runtime.19Checks if the binding is allowed to become valid.19Checks if the binding has at least one listener registered on it.21Creates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.19Returns anObservableValuethat holds the value of anObservableValueproduced by applying the given mapping function on this value.19Returns anObservableValuethat holds the result of applying the given mapping function on this value.19Returns anObservableValuethat holds this value, or the given constant if it isnull.21Creates aSubscriptionon thisObservableValuewhich calls the givenchangeSubscriberwith the old and new value whenever its value changes.21Creates aSubscriptionon thisObservableValuewhich immediately provides the current value to the givenvalueSubscriber, followed by any subsequent values whenever its value changes.20Returns anObservableValuethat holds this value and is updated only whenconditionholdstrue.9Maps the index of the direct source list's element to an index in this list.9If value is itself a ParsedValue or sequence of values, and should any of those values need to be looked up, then this flag is set.9If value references another property, then the real value needs to be looked up.9Returns the Node that represents this Styleable object.9Cache the value for the specified key.9Clear the cache.9Convert from the constituent values to the target property type.9Get the cached value for the specified key.9Read binary data stream.9Write binary data.17Loads a binary stylesheet from a stream.21Registers an event filter for this target.21Registers an event handler for this target.21Unregisters a previously registered event filter from this target.21Unregisters a previously registered event handler from this target.9Returns this loader's load listener.9Sets this loader's load listener.11The central x coordinate of thisBounds.11The central y coordinate of thisBounds.11The central z coordinate of thisBounds.13The function calculates an interpolated value along the fractiontbetween0.0and1.0.13The function calculates an interpolated value along the fractiontbetween0.0and1.0.17AStringPropertyrepresenting the name of a filesystem file, to which the platform printer driver should spool the rendered print data.12Gets the current image smoothing state.12Sets the image smoothing state.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.999Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.18If theDatePickeriseditable, calling this method will attempt to replace the editor text with the last committedvalue.18If theDatePickeriseditable, calling this method will attempt to commit the current text and convert it to avalue.9Returns the initial cursor state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.10Called just after theContextMenuhas been hidden.10Called just prior to theContextMenubeing hidden.10Called just prior to theContextMenubeing shown.10Called just after theContextMenuis shown.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.20Returns the width of the area available for columns.20Returns the associated TreeView or TreeTableView control.20Sets the column width during the resizing pass.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.20Called once whenSkinis set.12Returns theTableHeaderRowassociated with thisTableColumnHeader.12Returns theTableViewSkinBasein which thisTableColumnHeaderis inserted.14Resizes thisTableColumnHeader's column to fit the width of its content.12Returns the currentTableColumnHeaderbeing moved during reordering.12Returns the root header for all columns.12Sets theTableColumnHeaderthat is being moved during a reordering operation.21Shows a menu containing all leaf columns as items.12Called whenever the value of the horizontal scrollbar changes in order to request layout changes, shifting theTableColumnHeaders.12Updates the table width when a resize operation occurs.12Returns theTableHeaderRowcreated usingTableViewSkinBase.createTableHeaderRow().12Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible.12Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible.12Called when the focus is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the focus is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the selection is set on the first cell of the table (first row and first column) in order to scroll to it to make it visible.12Called when the selection is set on the last cell of the table (last row and last column) in order to scroll to it to make it visible.12Returns the index of the selected (or focused, ifisFocusDrivenistrue) cell after a page scroll operation.12Returns the index of the selected (or focused, ifisFocusDrivenistrue) cell after a page scroll operation.12Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible.12Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible.12Called when the selection is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the selection is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.12Scrolls to the column containing the current focused cell.12Programmatically scrolls to the given column.10Create the virtualized container that handles the layout and scrolling of all the cells.10Get the virtualized container.12Returns the list of cells displayed in the current viewport.12Returns the first visible cell whose bounds are entirely within the viewport.12Returns the scroll bar used for scrolling horizontally.12Returns the last visible cell whose bounds are entirely within the viewport.12Creates and returns a new cell for the given index.12Returns the scroll bar used for scrolling vertically.12Informs theVirtualFlowthat a layout pass should be done, and cell contents have changed.12Informs theVirtualFlowthat a layout pass should be done, and the cell contents have not changed.12Informs theVirtualFlowthat a layout pass should be done, and that the cell factory has changed.12Informs theVirtualFlowthat a layout pass should be done and only the cell layout will be requested.12Resizes the given cell.9Registers an operation to perform when the givenobservablesends a change event.17Registers an operation to perform when the givenobservablesends an invalidation event.17Registers an operation to perform when the givenobservableListsends a list change event.9Convenience method for accessing thesnapPositionX()method on the skinnable.9Convenience method for accessing thesnapPositionY()method on the skinnable.9Convenience method for accessing thesnapSizeX()method on the skinnable.9Convenience method for accessing thesnapSizeY()method on the skinnable.9Convenience method for accessing thesnapSpaceX()method on the skinnable.9Convenience method for accessing thesnapSpaceY()method on the skinnable.9Unregisters all operations that have been registered usingSkinBase.registerChangeListener(ObservableValue, Consumer)for the givenobservable.17Unregisters all operations that have been registered usingSkinBase.registerInvalidationListener(Observable, Consumer)for the givenobservable.17Unregisters all operations that have been registered usingSkinBase.registerListChangeListener(ObservableList, Consumer)for the givenobservableList.9911Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.11The duration that the mouse has to be pressed on an arrow button before the next value steps.9The prompt text to display in theSpinner, ornullif no prompt text is displayed.11The duration that the mouse has to be pressed for each successive step after the first value steps.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9The duration in which to continue showing the tooltip after the mouse has left the node.9The delay between the mouse entering the hovered node and when the associated tooltip will be shown to the user.9The duration that the tooltip should remain showing for until it is no longer visible to the user.17Gets the value of the propertytableRow.17Updates theTreeTableColumnassociated with thisTreeTableCell.17Updates theTreeTableRowassociated with thisTreeTableCell.9Returns the url used to fetch the pixel data contained in the Image instance, if specified in the constructor.9Returns the character element of this key code, which is simply a mapping of the underlying platform code returned byKeyCode.getCode().9Returns the underlying platform code used to represent thecharacterin the key code.12Returnstrueif back button (button 4) is currently pressed.12Returnstrueif forward button (button 5) is currently pressed.18A convenience factory method for creating aBackgroundwith a singlePaint.18A convenience factory method for creating a solidBorderwith a singlePaint.9Returns the bounds of the cell at the specified column and row position.9Returns the number of columns in this GridPane.9Returns the number of rows in this GridPane.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.9If this region's snapToPixel property is true, returns a value ceiled to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value ceiled to the nearest pixel in the vertical direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.13Gets the list of nodes that specifies the hierarchical exclusion scope of this light.9Returns the initial cursor state of this node, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this node, for use by the JavaFX CSS engine to correctly set its initial value.9Defines the rendering and picking order of thisNodewithin its parent.9Adds a new scene post layout pulse listener to this scene.9Adds a new scene pre layout pulse listener to this scene.9Removes a previously registered scene post layout pulse listener from listening to pulses in this scene.9Removes a previously registered scene pre layout pulse listener from listening to pulses in this scene.9Loads font resources from the specified input stream.9Loads font resources from the specified URL.9The type of caret bias in the content.9The caret index in the content.9Returns the shape for the caret at the given index and bias.9The shape of caret, in local coordinates.9Maps local point toHitInfoin the content.9Returns the shape for the range of the text in local coordinates.9The end index of the selection in the content.9The fill color of selected text.9The shape of the selection in local coordinates.9The start index of the selection in the content.14The size of a tab stop in spaces.9Returns the shape for the underline in local coordinates.9Returns shape of caret in local coordinates.9Maps local point toHitInfoin the content.9Returns shape for the range of the text in local coordinates.21Returns the shape for the underline in local coordinates.9Gets the recommended output scale factor of thisScreenin the horizontal (X) direction.9Gets the recommended output scale factor of thisScreenin the vertical (Y) direction.9Returns a list containing a reference to the currently showing JavaFX windows.
-
New ConstructorsConstructorAdded inDescription13Constructs a
WritableImageusing the specifiedPixelBuffer.12Constructs new MouseDragEvent event.12Constructs new MouseEvent event.12Constructs new MouseEvent event with null source and target.21
-
New Enum ConstantsEnum ConstantAdded inDescription21Returns
toggle stateof CheckBox of CheckBoxTreeItem.22Returns the value as string for the node.21Check Box Tree Item role.20Dialog role.12Represents back (button 4) mouse button.12Represents forward (button 5) mouse button.