# Deprecated API

Show API deprecated in: 9 17 18 20 22 24 other all

## Contents

- Terminally Deprecated
- Classes
- Fields
- Methods
- Constructors

- Terminally Deprecated Elements
  Element
  Deprecated in
  Description
  javafx.css.TransitionEvent(EventType<? extends Event>, StyleableProperty<?>, Duration)
  24
  use `TransitionEvent(EventType, StyleableProperty, String, Duration)` instead
  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.
  javafx.util.FXPermission
  24
  This class was only useful in connection with the Security Manager, which is no longer supported. There is no replacement for this class.

- Deprecated Classes
  Class
  Deprecated in
  Description
  javafx.util.FXPermission
  24
  This class was only useful in connection with the Security Manager, which is no longer supported. There is no replacement for this class.

- 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.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.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.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.css.TransitionEvent(EventType<? extends Event>, StyleableProperty<?>, Duration)
  24
  use `TransitionEvent(EventType, StyleableProperty, String, Duration)` instead
  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.