# Deprecated API

Show API deprecated in: 9 17 18 20 22 25 26 other Toggle all

## Contents

- Terminally Deprecated
- Classes
- Enum Classes
- Fields
- Methods
- Constructors
- Enum Constants

- Terminally Deprecated Elements
  Element
  Deprecated in
  Description
  javafx.scene.shape.Box.DEFAULT_SIZE
  18
  This field was exposed mistakenly and will be removed.
  javafx.util.converter.CurrencyStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.DateStringConverter.getDateFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.NumberStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.PercentageStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.TimeStringConverter.getDateFormat()
  22
  This method was exposed erroneously and will be removed in a future version.

- Deprecated Classes
  Class
  Deprecated in
  Description
  javafx.scene.layout.HeaderBar
  25
  This is a preview feature which may be changed or removed in a future release.

- Deprecated Enum Classes
  Enum Class
  Deprecated in
  Description
  javafx.scene.layout.HeaderButtonType
  25
  This is a preview feature which may be changed or removed in a future release.
  javafx.scene.layout.HeaderDragType
  25
  This is a preview feature which may be changed or removed in a future release.

- Deprecated Fields
  Field
  Deprecated in
  Description
  javafx.scene.control.TableView.CONSTRAINED_RESIZE_POLICY
  20
  Use `TableView.CONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMN` instead.
  javafx.scene.control.TreeTableView.CONSTRAINED_RESIZE_POLICY
  20
  Use `TreeTableView.CONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMN` instead.
  javafx.scene.shape.Box.DEFAULT_SIZE
  18
  This field was exposed mistakenly and will be removed.

- Deprecated Methods
  Method
  Deprecated in
  Description
  javafx.animation.Interpolator.SPLINE(double, double, double, double)
  26
  use `Interpolator.ofSpline(double, double, double, double)` instead
  javafx.animation.Interpolator.STEPS(int, Interpolator.StepPosition)
  26
  use `Interpolator.ofSteps(int, StepPosition)` instead
  javafx.animation.Interpolator.TANGENT(Duration, double)
  26
  use `Interpolator.ofTangent(Duration, double)` instead
  javafx.animation.Interpolator.TANGENT(Duration, double, Duration, double)
  26
  use `Interpolator.ofTangent(Duration, double, Duration, double)` instead
  javafx.css.CssMetaData.set(S, V, StyleOrigin)
  8
  This method is no longer called from CSS code. Use `StyleableProperty.applyStyle(javafx.css.StyleOrigin, java.lang.Object)`
  javafx.fxml.FXMLLoader.loadType(String)
  This method now delegates to `FXMLLoader.getDefaultClassLoader()`.
  javafx.fxml.FXMLLoader.loadType(String, String)
  This method now delegates to `FXMLLoader.getDefaultClassLoader()`.
  javafx.scene.control.DialogPane.getHeaderBar()
  26
  This is a preview feature which may be changed or removed in a future release.
  javafx.scene.control.DialogPane.headerBarProperty()
  26
  javafx.scene.control.DialogPane.setHeaderBar(HeaderBar)
  26
  This is a preview feature which may be changed or removed in a future release.
  javafx.scene.control.SkinBase.snapPosition(double)
  9
  replaced by `snapPositionX()` and `snapPositionY()`
  javafx.scene.control.SkinBase.snapSize(double)
  9
  replaced by `snapSizeX()` and `snapSizeY()`
  javafx.scene.control.SkinBase.snapSpace(double)
  9
  replaced by `snapSpaceX()` and `snapSpaceY()`
  javafx.scene.control.TreeTableCell.getTreeTableRow()
  17
  Use `TreeTableCell.getTableRow()` instead.
  javafx.scene.control.TreeTableCell.updateTreeTableColumn(TreeTableColumn<S, T>)
  17
  Use `TreeTableCell.updateTableColumn(javafx.scene.control.TreeTableColumn<S,T>)` instead.
  javafx.scene.control.TreeTableCell.updateTreeTableRow(TreeTableRow<S>)
  17
  Use `TreeTableCell.updateTableRow(javafx.scene.control.TreeTableRow<S>)` instead.
  javafx.scene.control.TreeTableView.getNodeLevel(TreeItem<?>)
  8u20
  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)`
  javafx.scene.control.TreeView.getNodeLevel(TreeItem<?>)
  8u20
  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)`
  javafx.scene.layout.Region.snapPosition(double)
  9
  replaced by `snapPositionX()` and `snapPositionY()`
  javafx.scene.layout.Region.snapSize(double)
  9
  replaced by `snapSizeX()` and `snapSizeY()`
  javafx.scene.layout.Region.snapSpace(double)
  9
  replaced by `snapSpaceX()` and `snapSpaceY()`
  javafx.scene.media.AudioTrack.getLanguage()
  Use `Track.getLocale()` instead.
  javafx.scene.text.TextFlow.caretShape(int, boolean)
  25
  replaced by `TextFlow.getCaretShape(int, boolean)`
  javafx.scene.text.TextFlow.hitTest(Point2D)
  25
  replaced by `TextFlow.getHitInfo(javafx.geometry.Point2D)`
  javafx.scene.text.TextFlow.rangeShape(int, int)
  25
  replaced by `TextFlow.getRangeShape(int, int, boolean)`
  javafx.scene.text.TextFlow.underlineShape(int, int)
  25
  replaced by `TextFlow.getUnderlineShape(int, int)`
  javafx.util.converter.CurrencyStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.DateStringConverter.getDateFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.NumberStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.PercentageStringConverter.getNumberFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.converter.TimeStringConverter.getDateFormat()
  22
  This method was exposed erroneously and will be removed in a future version.
  javafx.util.Duration.divide(Duration)
  This method produces surprising results by not taking units into account. Use `Duration.divide(double)` instead.
  javafx.util.Duration.multiply(Duration)
  This method produces surprising results by not taking units into account. Use `Duration.multiply(double)` instead.

- Deprecated Constructors
  Constructor
  Deprecated in
  Description
  javafx.event.EventType()
  Do not use this constructor, as only one such EventType can exist
  javafx.scene.input.GestureEvent(Object, EventTarget, EventType<? extends GestureEvent>)
  8
  Do not use this constructor. Constructs empty event.
  javafx.scene.input.GestureEvent(EventType<? extends GestureEvent>)
  8
  Do not use this constructor. Constructs empty event.

- Deprecated Enum Constants
  Enum Constant
  Deprecated in
  Description
  javafx.application.ConditionalFeature.EXTENDED_WINDOW
  25
  This is a preview feature which may be changed or removed in a future release.
  javafx.stage.StageStyle.EXTENDED
  25
  This is a preview feature which may be changed or removed in a future release.