APIdia Launch Partner
Top For Removal Deprecated By Reference
JavaFX 27

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
18
javafx.scene.shape.Box.DEFAULT_SIZE

This field was exposed mistakenly and will be removed.

22
javafx.util.converter.CurrencyStringConverter.getNumberFormat()

This method was exposed erroneously and will be removed in a future version.

22
javafx.util.converter.DateStringConverter.getDateFormat()

This method was exposed erroneously and will be removed in a future version.

22

Returns:

a NumberFormat instance for formatting and parsing in this StringConverter
javafx.util.converter.NumberStringConverter.getNumberFormat
()

This method was exposed erroneously and will be removed in a future version.

22
javafx.util.converter.PercentageStringConverter.getNumberFormat()

This method was exposed erroneously and will be removed in a future version.

22
javafx.util.converter.TimeStringConverter.getDateFormat()

This method was exposed erroneously and will be removed in a future version.

Deprecated Item Summary

SinceDeprecated Item and Description
com.sun.javafx.fxml.builder.web.NodeBuilder<B extends NodeBuilder<B>>

This class is deprecated and will be removed in the next version

com.sun.javafx.fxml.builder.web.ParentBuilder<B extends ParentBuilder<B>>

This class is deprecated and will be removed in the next version

com.sun.javafx.fxml.builder.web.WebEngineBuilder

This class is deprecated and will be removed in the next version

com.sun.javafx.fxml.builder.web.WebViewBuilder

This class is deprecated and will be removed in the next version

Returns:

value rounded with scale
com.sun.javafx.scene.layout.ScaledMath.round
(double
The value that needs to be rounded
value
,
double
The scale that will be used
scale
)

uses Math#round(double) instead of Math#rint(double), don't use in new code, use rint(double, double)

26

Returns:

a spline interpolator
javafx.animation.Interpolator.SPLINE
(double
x coordinate of the first control point
x1
,
double
y coordinate of the first control point
y1
,
double
x coordinate of the second control point
x2
,
double
y coordinate of the second control point
y2
)

use ofSpline(double, double, double, double) instead

26

Returns:

a new step interpolator
javafx.animation.Interpolator.STEPS
(int
the number of intervals in the step interpolator
intervalCount
,
Interpolator.StepPosition
the StepPosition of the step interpolator
position
)

use ofSteps(int, StepPosition) instead

26

Returns:

a tangent interpolator
javafx.animation.Interpolator.TANGENT
(Duration
the delta time of the in-tangent, relative to the KeyFrame
t1
,
double
the value of the in-tangent
v1
,
Duration
the delta time of the out-tangent, relative to the KeyFrame
t2
,
double
the value of the out-tangent
v2
)

use ofTangent(Duration, double, Duration, double) instead

26

Returns:

a tangent interpolator
javafx.animation.Interpolator.TANGENT
(Duration
the delta time of the tangent
t
,
double
the value of the tangent
v
)

use ofTangent(Duration, double) instead

8
javafx.css.CssMetaData.set(S
The Styleable on which the property value is being set
styleable
,
V
The value to which the property is set
value
,
StyleOrigin
the origin
origin
)

This method is no longer called from CSS code. Use StyleableProperty#applyStyle(javafx.css.StyleOrigin, java.lang.Object)

javafx.event.EventType()

Do not use this constructor, as only one such EventType can exist

Returns:

the class
javafx.fxml.FXMLLoader.loadType
(String
the package name of the class to load
packageName
,
String
the name of the class to load
className
)

This method now delegates to getDefaultClassLoader().

Returns:

the class
javafx.fxml.FXMLLoader.loadType
(String
the name of the class to load
className
)

This method now delegates to getDefaultClassLoader().

9

Returns:

value rounded to nearest pixel
javafx.scene.control.SkinBase.snapPosition
(double
the position value to be snapped
value
)

replaced by snapPositionX() and snapPositionY()

9

Returns:

value ceiled to nearest pixel
javafx.scene.control.SkinBase.snapSize
(double
the size value to be snapped
value
)

replaced by snapSizeX() and snapSizeY()

9

Returns:

value rounded to nearest pixel
javafx.scene.control.SkinBase.snapSpace
(double
the space value to be snapped
value
)

replaced by snapSpaceX() and snapSpaceY()

20
17

Returns:

the TreeTableRow
javafx.scene.control.TreeTableCell.getTreeTableRow
()

Use getTableRow instead.

17
17
20
8u20

Returns:

An integer representing the number of parents above the given node, or -1 if the given TreeItem is null.
javafx.scene.control.TreeTableView.getNodeLevel
(TreeItem<?>
The TreeItem for which the level is needed.
node
)

This method does not correctly calculate the distance from the given TreeItem to the root of the TreeTableView. As of JavaFX 8.0_20, the proper way to do this is via TreeTableView#getTreeItemLevel(TreeItem)

8u20

Returns:

An integer representing the number of parents above the given node, or -1 if the given TreeItem is null.
javafx.scene.control.TreeView.getNodeLevel
(TreeItem<?>
The TreeItem for which the level is needed.
node
)

This method does not correctly calculate the distance from the given TreeItem to the root of the TreeView. As of JavaFX 8.0_20, the proper way to do this is via TreeView#getTreeItemLevel(TreeItem)

8
javafx.scene.input.GestureEvent(final EventType<? extends GestureEvent>
Type of the event
eventType
)

Do not use this constructor. Constructs empty event.

8
javafx.scene.input.GestureEvent(Object
Event source
source
,
EventTarget
Event target
target
,
final EventType<? extends GestureEvent>
Type of the event
eventType
)

Do not use this constructor. Constructs empty event.

9

Returns:

value rounded to nearest pixel
javafx.scene.layout.Region.snapPosition
(double
the position value to be snapped
value
)

replaced by snapPositionX() and snapPositionY()

9

Returns:

value ceiled to nearest pixel
javafx.scene.layout.Region.snapSize
(double
the size value to be snapped
value
)

replaced by snapSizeX() and snapSizeY()

9

Returns:

value rounded to nearest pixel
javafx.scene.layout.Region.snapSpace
(double
the space value to be snapped
value
)

replaced by snapSpaceX() and snapSpaceY()

Returns:

the IANA language code or null.
javafx.scene.media.AudioTrack.getLanguage
()

Use Track#getLocale() instead.

25

Returns:

an array of PathElement which can be used to create a Shape
javafx.scene.text.TextFlow.caretShape
(int
the character index for the caret
charIndex
,
boolean
whether the caret is biased on the leading edge of the character
leading
)

replaced by getCaretShape(int, boolean)

25

Returns:

a HitInfo representing the character index found
javafx.scene.text.TextFlow.hitTest
(Point2D
the specified point to be tested
point
)

replaced by getHitInfo(javafx.geometry.Point2D)

25

Returns:

an array of PathElement which can be used to create a Shape
javafx.scene.text.TextFlow.rangeShape
(int
the beginning character index for the range
start
,
int
the end character index (non-inclusive) for the range
end
)

replaced by getRangeShape(int, int, boolean)

25

Returns:

an array of PathElement which can be used to create a Shape
javafx.scene.text.TextFlow.underlineShape
(int
the beginning character index for the range
start
,
int
the end character index (non-inclusive) for the range
end
)

replaced by getUnderlineShape(int, int)

Returns:

the result of dividing this duration by the other duration. This is the same as millis / other.millis using double arithmetic
javafx.util.Duration.divide
(Duration
must not be null
other
)

This method produces surprising results by not taking units into account. Use divide(double) instead.

Returns:

the result of multiplying this duration with the other duration. This is the same as millis * other.millis using double arithmetic
javafx.util.Duration.multiply
(Duration
must not be null
other
)

This method produces surprising results by not taking units into account. Use multiply(double) instead.

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.confirmHandler
(Callback<String, Boolean>
new value of the confirmHandler property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

the WebEngineBuilder object
com.sun.javafx.fxml.builder.web.WebEngineBuilder.create
()

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.createPopupHandler
(Callback<PopupFeatures, WebEngine>
new value of the createPopupHandler property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.location
(String
new value of the location property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.onAlert
(EventHandler<WebEvent<String>>
new value of the onAlert property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.onResized
(EventHandler<WebEvent<Rectangle2D>>
new value of the onResized property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.onStatusChanged
(EventHandler<WebEvent<String>>
new value of the onStatusChanged property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.onVisibilityChanged
(EventHandler<WebEvent<Boolean>>
new value of the onVisibilityChanged property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebEngineBuilder.promptHandler
(Callback<PromptData, String>
new value of the promptHandler property
value
)

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.javafx.fxml.builder.web.WebViewBuilder.engineBuilder

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.confirmHandler
(Callback<String, Boolean>
new value of the confirmHandler property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

the WebViewBuilder object
com.sun.javafx.fxml.builder.web.WebViewBuilder.create
()

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.createPopupHandler
(Callback<PopupFeatures, WebEngine>
new value of the createPopupHandler property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.javafx.fxml.builder.web.WebViewBuilder.engineBuilder()

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.fontScale
(double
new value of the fontScale property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.location
(String
new value of the location property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.maxHeight
(double
new value of the maxHeight property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.maxWidth
(double
new value of the maxWidth property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.minHeight
(double
new value of the minHeight property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.minWidth
(double
new value of the minWidth property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.onAlert
(EventHandler<WebEvent<String>>
new value of the onAlert property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.onResized
(EventHandler<WebEvent<Rectangle2D>>
new value of the onResized property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.onStatusChanged
(EventHandler<WebEvent<String>>
new value of the onStatusChanged property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.onVisibilityChanged
(EventHandler<WebEvent<Boolean>>
new value of the onVisibilityChanged property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.prefHeight
(double
new value of the prefHeight property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.prefWidth
(double
new value of the prefWidth property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder
com.sun.javafx.fxml.builder.web.WebViewBuilder.promptHandler
(Callback<PromptData, String>
new value of the promptHandler property
value
)

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.