Uses of Class
java.lang.Deprecated
-
Packages that use Deprecated Package Description com.sun.jarsigner This package comprises the interfaces and classes used to define the signing mechanism used by thejarsignertool.com.sun.java.accessibility.util Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.com.sun.javadoc Note: The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.com.sun.jdi This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.com.sun.security.auth Provides implementations ofPrincipal.com.sun.security.auth.module Provides implementations ofLoginModule.com.sun.tools.doclets Note: The declarations in this package have been superseded by those in the new packagejdk.javadoc.doclet.com.sun.tools.doclets.standard Note: The declarations in this package have been superseded by those in the new packagejdk.javadoc.doclet.com.sun.tools.javadoc This package and its contents are deprecated and may be removed in a future release.java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.color Provides classes for color spaces.java.awt.datatransfer Provides interfaces and classes for transferring data between and within applications.java.awt.event Provides interfaces and classes for dealing with different types of events fired by AWT components.java.awt.image Provides classes for creating and modifying images.java.awt.image.renderable Provides classes and interfaces for producing rendering-independent images.java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects.java.math Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).java.net Provides the classes for implementing networking applications.java.rmi Provides the RMI package.java.rmi.dgc Provides classes and interface for RMI distributed garbage-collection (DGC).java.rmi.registry Provides a class and two interfaces for the RMI registry.java.rmi.server Provides classes and interfaces for supporting the server side of RMI.java.security Provides the classes and interfaces for the security framework.java.security.acl The classes and interfaces in this package have been deprecated.java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java™ programming language.java.util Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.java.util.concurrent Utility classes commonly useful in concurrent programming.java.util.concurrent.atomic A small toolkit of classes that support lock-free thread-safe programming on single variables.java.util.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.java.util.logging Provides the classes and interfaces of the Java™ 2 platform's core logging facilities.java.util.zip Provides classes for reading and writing the standard ZIP and GZIP file formats.javafx.application Provides the application life-cycle classes.javafx.css Provides API for making properties styleable via CSS and for supporting pseudo-class state.javafx.event Provides basic framework for FX events, their delivery and handling.javafx.fxml Contains classes for loading an object hierarchy from markup.javafx.scene.control The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.javafx.scene.input Provides the set of classes for mouse and keyboard input event handling.javafx.scene.layout Provides classes to support user interface layout.javafx.scene.media Provides the set of classes for integrating audio and video into Java FX Applications.javafx.util Contains various utilities and helper classes.javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components.javax.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.javax.imageio.stream A package of the Java Image I/O API dealing with low-level I/O from files and streams.javax.jws.soap javax.lang.model.util Utilities to assist in the processing of program elements and types.javax.management Provides the core classes for the Java Management Extensions.javax.management.loading Provides the classes which implement advanced dynamic loading.javax.management.monitor Provides the definition of the monitor classes.javax.management.openmbean Provides the open data types and Open MBean descriptor classes.javax.management.remote.rmi The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.javax.naming Provides the classes and interfaces for accessing naming services.javax.net.ssl Provides classes for the secure socket package.javax.security.auth This package provides a framework for authentication and authorization.javax.security.cert Provides classes for public key certificates.javax.sql.rowset Standard interfaces and base classes for JDBCRowSetimplementations.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.plaf.metal Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.javax.swing.plaf.multi Provides user interface objects that combine two or more look and feels.javax.swing.table Provides classes and interfaces for dealing withjavax.swing.JTable.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.javax.xml.bind Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.javax.xml.stream Defines interfaces and classes for the Streaming API for XML (StAX).jdk.nashorn.api.scripting This package provides thejavax.scriptintegration, which is the preferred way to use Nashorn.netscape.javascript Provides Java code the ability to access the JavaScript engine and the HTML DOM in the web browser.org.omg.CORBA Provides the mapping of the OMG CORBA APIs to the Java™ programming language, including the classORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).org.omg.CORBA.portable Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.org.xml.sax Provides the core SAX APIs.org.xml.sax.helpers Provides helper classes, including support for bootstrapping SAX-based applications. -
-
Uses of Deprecated in com.sun.jarsigner
Classes in com.sun.jarsigner with annotations of type Deprecated Modifier and Type Class Description classContentSignerDeprecated.This class has been deprecated.interfaceContentSignerParametersDeprecated.This class has been deprecated. -
Uses of Deprecated in com.sun.java.accessibility.util
Fields in com.sun.java.accessibility.util with annotations of type Deprecated Modifier and Type Field Description protected static ActionListenerAWTEventMonitor. actionListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static AdjustmentListenerAWTEventMonitor. adjustmentListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static ComponentListenerAWTEventMonitor. componentListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static ComponentAWTEventMonitor. componentWithFocusDeprecated, for removal: This API element is subject to removal in a future version.This field is unused; to get the component with focus use the getComponentWithFocus method.protected static ContainerListenerAWTEventMonitor. containerListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static FocusListenerAWTEventMonitor. focusListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static ItemListenerAWTEventMonitor. itemListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static KeyListenerAWTEventMonitor. keyListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static MouseListenerAWTEventMonitor. mouseListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static MouseMotionListenerAWTEventMonitor. mouseMotionListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static TextListenerAWTEventMonitor. textListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected static WindowListenerAWTEventMonitor. windowListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused. -
Uses of Deprecated in com.sun.javadoc
Classes in com.sun.javadoc with annotations of type Deprecated Modifier and Type Interface Description interfaceAnnotatedTypeDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceAnnotationDescDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.static interfaceAnnotationDesc.ElementValuePairDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceAnnotationTypeDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceAnnotationTypeElementDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceAnnotationValueDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceClassDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceConstructorDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceDocErrorReporterDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.classDocletDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceExecutableMemberDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceFieldDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.classLanguageVersionDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceMemberDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceMethodDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfacePackageDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceParameterDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceParameterizedTypeDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceParamTagDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceProgramElementDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceRootDocDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceSeeTagDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceSerialFieldTagDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceSourcePositionDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceTagDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceThrowsTagDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceTypeDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceTypeVariableDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.interfaceWildcardTypeDeprecated.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.Methods in com.sun.javadoc with annotations of type Deprecated Modifier and Type Method Description ClassDoc[]ClassDoc. importedClasses()Deprecated.Import declarations are implementation details that should not be exposed here. In addition, not all imported classes are imported through single-type-import declarations.PackageDoc[]ClassDoc. importedPackages()Deprecated.Import declarations are implementation details that should not be exposed here. In addition, this method's return type does not allow for all type-import-on-demand declarations to be returned. -
Uses of Deprecated in com.sun.jdi
Classes in com.sun.jdi with annotations of type Deprecated Modifier and Type Class Description classInvalidCodeIndexExceptionDeprecated.This exception is no longer thrownclassInvalidLineNumberExceptionDeprecated.This exception is no longer thrown -
Uses of Deprecated in com.sun.security.auth
Classes in com.sun.security.auth with annotations of type Deprecated Modifier and Type Class Description classPolicyFileDeprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.4, replaced bysun.security.provider.PolicyFile. This class is entirely deprecated. This class is subject to removal in a future version of Java SE.classSolarisNumericGroupPrincipalDeprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.4, replaced byUnixNumericGroupPrincipal. This class is entirely deprecated. This class is subject to removal in a future version of Java SE.classSolarisNumericUserPrincipalDeprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.4, replaced byUnixNumericUserPrincipal. This class is entirely deprecated. This class is subject to removal in a future version of Java SE.classSolarisPrincipalDeprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.4, replaced byUnixPrincipal. This class is entirely deprecated. This class is subject to removal in a future version of Java SE.classX500PrincipalDeprecated, for removal: This API element is subject to removal in a future version.A new X500Principal class is available in the Java platform. This X500Principal classs is entirely deprecated and is here to allow for a smooth transition to the new class. This class is subject to removal in a future version of Java SE. -
Uses of Deprecated in com.sun.security.auth.module
Classes in com.sun.security.auth.module with annotations of type Deprecated Modifier and Type Class Description classSolarisLoginModuleDeprecated, for removal: This API element is subject to removal in a future version.As of JDK1.4, replaced bycom.sun.security.auth.module.UnixLoginModule. This LoginModule is entirely deprecated and is here to allow for a smooth transition to the new UnixLoginModule. This class is subject to removal in a future version of Java SE.classSolarisSystemDeprecated, for removal: This API element is subject to removal in a future version.replaced byUnixSystem. This class is subject to removal in a future version of Java SE. -
Uses of Deprecated in com.sun.tools.doclets
Classes in com.sun.tools.doclets with annotations of type Deprecated Modifier and Type Interface Description interfaceTagletDeprecated.This interface has been superseded by its replacement,Taglet. -
Uses of Deprecated in com.sun.tools.doclets.standard
Classes in com.sun.tools.doclets.standard with annotations of type Deprecated Modifier and Type Class Description classStandardDeprecated, for removal: This API element is subject to removal in a future version.The doclet has been superseded by its replacement,StandardDoclet. -
Uses of Deprecated in com.sun.tools.javadoc
Classes in com.sun.tools.javadoc with annotations of type Deprecated Modifier and Type Class Description classMainDeprecated.This class is now deprecated and may be removed in a future release. Seejavax.tools.ToolProvider::getSystemDocumentationToolandjavax.tools.DocumentationToolfor replacement functionality. -
Uses of Deprecated in java.applet
Classes in java.applet with annotations of type Deprecated Modifier and Type Class Description classAppletDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information.interfaceAppletContextDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information.interfaceAppletStubDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information.interfaceAudioClipDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information. -
Uses of Deprecated in java.awt
Classes in java.awt with annotations of type Deprecated Modifier and Type Class Description classEventDeprecated.It is recommended thatAWTEventand its subclasses be used insteadFields in java.awt with annotations of type Deprecated Modifier and Type Field Description static intFrame. CROSSHAIR_CURSORDeprecated.replaced byCursor.CROSSHAIR_CURSOR.static intFrame. DEFAULT_CURSORDeprecated.replaced byCursor.DEFAULT_CURSOR.static intFrame. E_RESIZE_CURSORDeprecated.replaced byCursor.E_RESIZE_CURSOR.static intFrame. HAND_CURSORDeprecated.replaced byCursor.HAND_CURSOR.static intFrame. MOVE_CURSORDeprecated.replaced byCursor.MOVE_CURSOR.static intFrame. N_RESIZE_CURSORDeprecated.replaced byCursor.N_RESIZE_CURSOR.static intFrame. NE_RESIZE_CURSORDeprecated.replaced byCursor.NE_RESIZE_CURSOR.static intFrame. NW_RESIZE_CURSORDeprecated.replaced byCursor.NW_RESIZE_CURSOR.protected static Cursor[]Cursor. predefinedDeprecated.As of JDK version 1.7, theCursor.getPredefinedCursor(int)method should be used instead.static intFrame. S_RESIZE_CURSORDeprecated.replaced byCursor.S_RESIZE_CURSOR.static intFrame. SE_RESIZE_CURSORDeprecated.replaced byCursor.SE_RESIZE_CURSOR.static intFrame. SW_RESIZE_CURSORDeprecated.replaced byCursor.SW_RESIZE_CURSOR.static intFrame. TEXT_CURSORDeprecated.replaced byCursor.TEXT_CURSOR.static intFrame. W_RESIZE_CURSORDeprecated.replaced byCursor.W_RESIZE_CURSOR.static intFrame. WAIT_CURSORDeprecated.replaced byCursor.WAIT_CURSOR.Methods in java.awt with annotations of type Deprecated Modifier and Type Method Description booleanComponent. action(Event evt, Object what)Deprecated.As of JDK version 1.1, should register this component as ActionListener on component which fires action events.voidList. addItem(String item)Deprecated.replaced byadd(String).voidList. addItem(String item, int index)Deprecated.replaced byadd(String, int).voidBorderLayout. addLayoutComponent(String name, Component comp)Deprecated.replaced byaddLayoutComponent(Component, Object).voidCardLayout. addLayoutComponent(String name, Component comp)Deprecated.replaced byaddLayoutComponent(Component, Object).booleanList. allowsMultipleSelections()Deprecated.As of JDK version 1.1, replaced byisMultipleMode().voidTextArea. appendText(String str)Deprecated.As of JDK version 1.1, replaced byappend(String).voidWindow. applyResourceBundle(String rbName)Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation.voidWindow. applyResourceBundle(ResourceBundle rb)Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation.RectangleComponent. bounds()Deprecated.As of JDK version 1.1, replaced bygetBounds().voidList. clear()Deprecated.As of JDK version 1.1, replaced byremoveAll().intContainer. countComponents()Deprecated.As of JDK version 1.1, replaced by getComponentCount().intChoice. countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intList. countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intMenu. countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intMenuBar. countMenus()Deprecated.As of JDK version 1.1, replaced bygetMenuCount().voidList. delItem(int position)Deprecated.replaced byremove(String)andremove(int).voidList. delItems(int start, int end)Deprecated.As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method.voidComponent. deliverEvent(Event e)Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e).voidContainer. deliverEvent(Event e)Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)voidComponent. disable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem. disable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidComponent. enable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidComponent. enable(boolean b)Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem. enable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem. enable(boolean b)Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidGraphics. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.voidPrintJob. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.RectanglePolygon. getBoundingBox()Deprecated.As of JDK version 1.1, replaced bygetBounds().RectangleGraphics. getClipRect()Deprecated.As of JDK version 1.1, replaced bygetClipBounds().CheckboxCheckboxGroup. getCurrent()Deprecated.As of JDK version 1.1, replaced bygetSelectedCheckbox().intFrame. getCursorType()Deprecated.As of JDK version 1.1, replaced byComponent.getCursor().abstract String[]Toolkit. getFontList()Deprecated.abstract FontMetricsToolkit. getFontMetrics(Font font)Deprecated.As of JDK version 1.2, replaced by theFontmethodgetLineMetrics.intScrollbar. getLineIncrement()Deprecated.As of JDK version 1.1, replaced bygetUnitIncrement().intFontMetrics. getMaxDecent()Deprecated.As of JDK version 1.1.1, replaced bygetMaxDescent().static ComponentOrientationComponentOrientation. getOrientation(ResourceBundle bdl)Deprecated.As of J2SE 1.4, useComponentOrientation.getOrientation(java.util.Locale).intScrollbar. getPageIncrement()Deprecated.As of JDK version 1.1, replaced bygetBlockIncrement().intScrollbar. getVisible()Deprecated.As of JDK version 1.1, replaced bygetVisibleAmount().booleanComponent. gotFocus(Event evt, Object what)Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).booleanComponent. handleEvent(Event evt)Deprecated.As of JDK version 1.1 replaced by processEvent(AWTEvent).voidComponent. hide()Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidDialog. hide()Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean).voidWindow. hide()Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean).voidTextArea. insertText(String str, int pos)Deprecated.As of JDK version 1.1, replaced byinsert(String, int).InsetsContainer. insets()Deprecated.As of JDK version 1.1, replaced bygetInsets().booleanComponent. inside(int x, int y)Deprecated.As of JDK version 1.1, replaced by contains(int, int).booleanPolygon. inside(int x, int y)Deprecated.As of JDK version 1.1, replaced bycontains(int, int).booleanRectangle. inside(int X, int Y)Deprecated.As of JDK version 1.1, replaced bycontains(int, int).booleanComponent. isFocusTraversable()Deprecated.As of 1.4, replaced byisFocusable().booleanList. isSelected(int index)Deprecated.As of JDK version 1.1, replaced byisIndexSelected(int).booleanComponent. keyDown(Event evt, int key)Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).booleanComponent. keyUp(Event evt, int key)Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).voidComponent. layout()Deprecated.As of JDK version 1.1, replaced bydoLayout().voidContainer. layout()Deprecated.As of JDK version 1.1, replaced bydoLayout().voidScrollPane. layout()Deprecated.As of JDK version 1.1, replaced bydoLayout().ComponentComponent. locate(int x, int y)Deprecated.As of JDK version 1.1, replaced by getComponentAt(int, int).ComponentContainer. locate(int x, int y)Deprecated.As of JDK version 1.1, replaced bygetComponentAt(int, int).PointComponent. location()Deprecated.As of JDK version 1.1, replaced bygetLocation().booleanComponent. lostFocus(Event evt, Object what)Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).DimensionComponent. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionContainer. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionList. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionList. minimumSize(int rows)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).DimensionTextArea. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionTextArea. minimumSize(int rows, int columns)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int, int).DimensionTextField. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionTextField. minimumSize(int columns)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).booleanComponent. mouseDown(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanComponent. mouseDrag(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).booleanComponent. mouseEnter(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanComponent. mouseExit(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanComponent. mouseMove(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).booleanComponent. mouseUp(Event evt, int x, int y)Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).voidComponent. move(int x, int y)Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int).voidRectangle. move(int x, int y)Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int).voidComponent. nextFocus()Deprecated.As of JDK version 1.1, replaced by transferFocus().booleanComponent. postEvent(Event e)Deprecated.As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).booleanMenuComponent. postEvent(Event evt)Deprecated.As of JDK version 1.1, replaced bydispatchEvent.booleanMenuContainer. postEvent(Event evt)Deprecated.As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).booleanWindow. postEvent(Event e)Deprecated.As of JDK version 1.1 replaced bydispatchEvent(AWTEvent).DimensionComponent. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionContainer. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionList. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionList. preferredSize(int rows)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).DimensionTextArea. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionTextArea. preferredSize(int rows, int columns)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int).DimensionTextField. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionTextField. preferredSize(int columns)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).protected static voidAWTKeyStroke. registerSubclass(Class<?> subclass)Deprecated.voidTextArea. replaceText(String str, int start, int end)Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int).voidComponent. reshape(int x, int y, int width, int height)Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidRectangle. reshape(int x, int y, int width, int height)Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidWindow. reshape(int x, int y, int width, int height)Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidComponent. resize(int width, int height)Deprecated.As of JDK version 1.1, replaced bysetSize(int, int).voidComponent. resize(Dimension d)Deprecated.As of JDK version 1.1, replaced bysetSize(Dimension).voidRectangle. resize(int width, int height)Deprecated.As of JDK version 1.1, replaced bysetSize(int, int).voidCheckboxGroup. setCurrent(Checkbox box)Deprecated.As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox).voidFrame. setCursor(int cursorType)Deprecated.As of JDK version 1.1, replaced byComponent.setCursor(Cursor).voidTextField. setEchoCharacter(char c)Deprecated.As of JDK version 1.1, replaced bysetEchoChar(char).voidScrollbar. setLineIncrement(int v)Deprecated.As of JDK version 1.1, replaced bysetUnitIncrement(int).voidList. setMultipleSelections(boolean b)Deprecated.As of JDK version 1.1, replaced bysetMultipleMode(boolean).voidScrollbar. setPageIncrement(int v)Deprecated.As of JDK version 1.1, replaced bysetBlockIncrement().voidComponent. show()Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidComponent. show(boolean b)Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidDialog. show()Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean).voidWindow. show()Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean).DimensionComponent. size()Deprecated.As of JDK version 1.1, replaced bygetSize().Constructors in java.awt with annotations of type Deprecated Constructor Description AWTEvent(Event event)Deprecated.It is recommended thatAWTEvent(Object, int)be used instead -
Uses of Deprecated in java.awt.color
Methods in java.awt.color with annotations of type Deprecated Modifier and Type Method Description protected voidICC_Profile. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in java.awt.datatransfer
Fields in java.awt.datatransfer with annotations of type Deprecated Modifier and Type Field Description static DataFlavorDataFlavor. plainTextFlavorDeprecated.as of 1.3. UseDataFlavor.getReaderForText(java.awt.datatransfer.Transferable)instead ofTransferable.getTransferData(DataFlavor.plainTextFlavor).Methods in java.awt.datatransfer with annotations of type Deprecated Modifier and Type Method Description booleanDataFlavor. equals(String s)Deprecated.As inconsistent withhashCode()contract, useDataFlavor.isMimeTypeEqual(String)instead.protected StringDataFlavor. normalizeMimeType(String mimeType)Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected StringDataFlavor. normalizeMimeTypeParameter(String parameterName, String parameterValue)Deprecated.This method is never invoked by this implementation from 1.1 onwards -
Uses of Deprecated in java.awt.event
Fields in java.awt.event with annotations of type Deprecated Modifier and Type Field Description static intInputEvent. ALT_GRAPH_MASKDeprecated.It is recommended that ALT_GRAPH_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic intInputEvent. ALT_MASKDeprecated.It is recommended that ALT_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic intInputEvent. BUTTON1_MASKDeprecated.It is recommended that BUTTON1_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic intInputEvent. BUTTON2_MASKDeprecated.It is recommended that BUTTON2_DOWN_MASK andInputEvent.getModifiersEx()be used instead. Note that BUTTON2_MASK has the same value as ALT_MASK.static intInputEvent. BUTTON3_MASKDeprecated.It is recommended that BUTTON3_DOWN_MASK andInputEvent.getModifiersEx()be used instead. Note that BUTTON3_MASK has the same value as META_MASK.static intInputEvent. CTRL_MASKDeprecated.It is recommended that CTRL_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic intInputEvent. META_MASKDeprecated.It is recommended that META_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic intInputEvent. SHIFT_MASKDeprecated.It is recommended that SHIFT_DOWN_MASK andInputEvent.getModifiersEx()be used insteadMethods in java.awt.event with annotations of type Deprecated Modifier and Type Method Description static StringKeyEvent. getKeyModifiersText(int modifiers)Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)be used insteadintInputEvent. getModifiers()Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersEx()be used insteadvoidKeyEvent. setModifiers(int modifiers)Deprecated.as of JDK1.1.4Constructors in java.awt.event with annotations of type Deprecated Constructor Description KeyEvent(Component source, int id, long when, int modifiers, int keyCode)Deprecated.as of JDK1.1; useKeyEvent(Component, int, long, int, int, char)instead -
Uses of Deprecated in java.awt.image
Methods in java.awt.image with annotations of type Deprecated Modifier and Type Method Description voidColorModel. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.voidIndexColorModel. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in java.awt.image.renderable
Methods in java.awt.image.renderable with annotations of type Deprecated Modifier and Type Method Description voidRenderContext. concetenateTransform(AffineTransform modTransform)Deprecated.replaced byconcatenateTransform(AffineTransform).voidRenderContext. preConcetenateTransform(AffineTransform modTransform)Deprecated.replaced bypreConcatenateTransform(AffineTransform). -
Uses of Deprecated in java.beans
Classes in java.beans with annotations of type Deprecated Modifier and Type Interface Description interfaceAppletInitializerDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information.Methods in java.beans with annotations of type Deprecated Modifier and Type Method Description static ObjectBeans. instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)Deprecated.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext), because the Applet API is deprecated. See the java.applet package documentation for further information. -
Uses of Deprecated in java.io
Classes in java.io with annotations of type Deprecated Modifier and Type Class Description classLineNumberInputStreamDeprecated.This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.classStringBufferInputStreamDeprecated.This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via theStringReaderclass.Methods in java.io with annotations of type Deprecated Modifier and Type Method Description protected voidFileInputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidFileOutputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.StringDataInputStream. readLine()Deprecated.This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via theBufferedReader.readLine()method. Programs that use theDataInputStreamclass to read lines can be converted to use theBufferedReaderclass by replacing code of the form:
with:DataInputStream d = new DataInputStream(in);BufferedReader d = new BufferedReader(new InputStreamReader(in));StringObjectInputStream. readLine()Deprecated.This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.StringByteArrayOutputStream. toString(int hibyte)Deprecated.This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via thetoString(String enc)method, which takes an encoding-name argument, or thetoString()method, which uses the platform's default character encoding.URLFile. toURL()abstract voidObjectOutputStream.PutField. write(ObjectOutput out)Deprecated.This method does not write the values contained by thisPutFieldobject in a proper format, and may result in corruption of the serialization stream. The correct way to writePutFielddata is by calling theObjectOutputStream.writeFields()method.Constructors in java.io with annotations of type Deprecated Constructor Description StreamTokenizer(InputStream is)Deprecated.As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r);
-
Uses of Deprecated in java.lang
Classes in java.lang with annotations of type Deprecated Modifier and Type Class Description classCompilerDeprecated, for removal: This API element is subject to removal in a future version.JIT compilers and their technologies vary too widely to be controlled effectively by a standardized interface. As such, many JIT compiler implementations ignore this interface, and are instead controllable by implementation-specific mechanisms such as command-line options. This class is subject to removal in a future version of Java SE.Fields in java.lang with annotations of type Deprecated Modifier and Type Field Description protected booleanSecurityManager. inCheckDeprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This field is subject to removal in a future version of Java SE.static Character.UnicodeBlockCharacter.UnicodeBlock. SURROGATES_AREADeprecated.Instead ofSURROGATES_AREA, useCharacter.UnicodeBlock.HIGH_SURROGATES,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES, andCharacter.UnicodeBlock.LOW_SURROGATES. These constants match the block definitions of the Unicode Standard. TheCharacter.UnicodeBlock.of(char)andCharacter.UnicodeBlock.of(int)methods return the standard constants.Methods in java.lang with annotations of type Deprecated Modifier and Type Method Description booleanThreadGroup. allowThreadSuspension(boolean b)Deprecated.The definition of this call depends onThreadGroup.suspend(), which is deprecated. Further, the behavior of this call was never specified.voidSecurityManager. checkAwtEventQueueAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally used to check if the calling thread could access the AWT event queue. The method has been obsoleted and code should instead useSecurityManager.checkPermission(java.security.Permission)to checkAWTPermission("accessEventQueue"). This method is subject to removal in a future version of Java SE.voidSecurityManager. checkMemberAccess(Class<?> clazz, int which)Deprecated, for removal: This API element is subject to removal in a future version.This method relies on the caller being at a stack depth of 4 which is error-prone and cannot be enforced by the runtime. Users of this method should instead invokeSecurityManager.checkPermission(java.security.Permission)directly. This method is subject to removal in a future version of Java SE.voidSecurityManager. checkMulticast(InetAddress maddr, byte ttl)Deprecated.Use #checkPermission(java.security.Permission) insteadvoidSecurityManager. checkSystemClipboardAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally used to check if the calling thread could access the system clipboard. The method has been obsoleted and code should instead useSecurityManager.checkPermission(java.security.Permission)to checkAWTPermission("accessClipboard"). This method is subject to removal in a future version of Java SE.booleanSecurityManager. checkTopLevelWindow(Object window)Deprecated, for removal: This API element is subject to removal in a future version.This method was originally used to check if the calling thread was trusted to bring up a top-level window. The method has been obsoleted and code should instead useSecurityManager.checkPermission(java.security.Permission)to checkAWTPermission("showWindowWithoutWarningBanner"). This method is subject to removal in a future version of Java SE.protected intSecurityManager. classDepth(String name)Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.protected intSecurityManager. classLoaderDepth()Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.intThread. countStackFrames()Deprecated, for removal: This API element is subject to removal in a future version.The definition of this call depends onThread.suspend(), which is deprecated. Further, the results of this call were never well-defined. This method is subject to removal in a future version of Java SE.protected ClassLoaderSecurityManager. currentClassLoader()Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.protected Class<?>SecurityManager. currentLoadedClass()Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.protected Class<?>ClassLoader. defineClass(byte[] b, int off, int len)Deprecated.Replaced bydefineClass(String, byte[], int, int)voidThread. destroy()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If it were to be implemented, it would be deadlock-prone in much the manner ofThread.suspend(). If the target thread held a lock protecting a critical system resource when it was destroyed, no thread could ever access this resource again. If another thread ever attempted to lock this resource, deadlock would result. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. This method is subject to removal in a future version of Java SE.protected voidObject. finalize()Deprecated.The finalization mechanism is inherently problematic. Finalization can lead to performance issues, deadlocks, and hangs. Errors in finalizers can lead to resource leaks; there is no way to cancel finalization if it is no longer necessary; and no ordering is specified among calls tofinalizemethods of different objects. Furthermore, there are no guarantees regarding the timing of finalization. Thefinalizemethod might be called on a finalizable object only after an indefinite delay, if at all. Classes whose instances hold non-heap resources should provide a method to enable explicit release of those resources, and they should also implementAutoCloseableif appropriate. TheCleanerandPhantomReferenceprovide more flexible and efficient ways to release resources when an object becomes unreachable.voidString. getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin)Deprecated.This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via theString.getBytes()method, which uses the platform's default charset.booleanSecurityManager. getInCheck()Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.InputStreamRuntime. getLocalizedInputStream(InputStream in)Deprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via theInputStreamReaderandBufferedReaderclasses. This method is subject to removal in a future version of Java SE.OutputStreamRuntime. getLocalizedOutputStream(OutputStream out)Deprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.1, the preferred way to translate a Unicode character stream into a byte stream in the local encoding is via theOutputStreamWriter,BufferedWriter, andPrintWriterclasses. This method is subject to removal in a future version of Java SE.protected PackageClassLoader. getPackage(String name)Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program. For example, thePackagewill only expose annotations from thepackage-info.classfile defined by the parent loader, even if annotations exist in apackage-info.classfile defined by a child loader. A more robust approach is to use theClassLoader.getDefinedPackage(java.lang.String)method which returns aPackagefor the specified class loader.static PackagePackage. getPackage(String name)Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program. For example, thePackagewill only expose annotations from thepackage-info.classfile defined by the parent loader, even if annotations exist in apackage-info.classfile defined by a child loader. A more robust approach is to use theClassLoader.getDefinedPackage(java.lang.String)method which returns aPackagefor the specified class loader.protected booleanSecurityManager. inClass(String name)Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.protected booleanSecurityManager. inClassLoader()Deprecated, for removal: This API element is subject to removal in a future version.This type of security checking is not recommended. It is recommended that thecheckPermissioncall be used instead. This method is subject to removal in a future version of Java SE.static booleanCharacter. isJavaLetter(char ch)Deprecated.Replaced by isJavaIdentifierStart(char).static booleanCharacter. isJavaLetterOrDigit(char ch)Deprecated.Replaced by isJavaIdentifierPart(char).static booleanCharacter. isSpace(char ch)Deprecated.Replaced by isWhitespace(char).TClass. newInstance()Deprecated.This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. TheConstructor.newInstancemethod avoids this problem by wrapping any exception thrown by the constructor in a (checked)InvocationTargetException.The call
can be replaced byclazz.newInstance()
The latter sequence of calls is inferred to be able to throw the additional exception typesclazz.getDeclaredConstructor().newInstance()InvocationTargetExceptionandNoSuchMethodException. Both of these exception types are subclasses ofReflectiveOperationException.voidThread. resume()Deprecated.This method exists solely for use withThread.suspend(), which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.voidThreadGroup. resume()Deprecated.This method is used solely in conjunction withThread.suspendandThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone. SeeThread.suspend()for details.static voidRuntime. runFinalizersOnExit(boolean value)Deprecated, for removal: This API element is subject to removal in a future version.This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. This method is subject to removal in a future version of Java SE.static voidSystem. runFinalizersOnExit(boolean value)Deprecated, for removal: This API element is subject to removal in a future version.This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. This method is subject to removal in a future version of Java SE.voidThread. stop()Deprecated.This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the uncheckedThreadDeathexception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses ofstopshould be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), theinterruptmethod should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.voidThread. stop(Throwable obj)Deprecated, for removal: This API element is subject to removal in a future version.This method was originally designed to force a thread to stop and throw a givenThrowableas an exception. It was inherently unsafe (seeThread.stop()for details), and furthermore could be used to generate exceptions that the target thread was not prepared to handle. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. This method is subject to removal in a future version of Java SE.voidThreadGroup. stop()Deprecated.This method is inherently unsafe. SeeThread.stop()for details.voidThread. suspend()Deprecated.This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to callingresume, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.voidThreadGroup. suspend()Deprecated.This method is inherently deadlock-prone. SeeThread.suspend()for details.voidRuntime. traceInstructions(boolean on)Deprecated, for removal: This API element is subject to removal in a future version.This method was intended to control instruction tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.voidRuntime. traceMethodCalls(boolean on)Deprecated, for removal: This API element is subject to removal in a future version.This method was intended to control method call tracing. It has been superseded by JVM-specific tracing mechanisms. This method is subject to removal in a future version of Java SE.Constructors in java.lang with annotations of type Deprecated Constructor Description Boolean(boolean value)Deprecated.It is rarely appropriate to use this constructor. The static factoryBoolean.valueOf(boolean)is generally a better choice, as it is likely to yield significantly better space and time performance. Also consider using the final fieldsBoolean.TRUEandBoolean.FALSEif possible.Boolean(String s)Deprecated.It is rarely appropriate to use this constructor. UseBoolean.parseBoolean(String)to convert a string to abooleanprimitive, or useBoolean.valueOf(String)to convert a string to aBooleanobject.Byte(byte value)Deprecated.It is rarely appropriate to use this constructor. The static factoryByte.valueOf(byte)is generally a better choice, as it is likely to yield significantly better space and time performance.Byte(String s)Deprecated.It is rarely appropriate to use this constructor. UseByte.parseByte(String)to convert a string to abyteprimitive, or useByte.valueOf(String)to convert a string to aByteobject.Character(char value)Deprecated.It is rarely appropriate to use this constructor. The static factoryCharacter.valueOf(char)is generally a better choice, as it is likely to yield significantly better space and time performance.Double(double value)Deprecated.It is rarely appropriate to use this constructor. The static factoryDouble.valueOf(double)is generally a better choice, as it is likely to yield significantly better space and time performance.Double(String s)Deprecated.It is rarely appropriate to use this constructor. UseDouble.parseDouble(String)to convert a string to adoubleprimitive, or useDouble.valueOf(String)to convert a string to aDoubleobject.Float(double value)Deprecated.It is rarely appropriate to use this constructor. Instead, use the static factory methodFloat.valueOf(float)method as follows:Float.valueOf((float)value).Float(float value)Deprecated.It is rarely appropriate to use this constructor. The static factoryFloat.valueOf(float)is generally a better choice, as it is likely to yield significantly better space and time performance.Float(String s)Deprecated.It is rarely appropriate to use this constructor. UseFloat.parseFloat(String)to convert a string to afloatprimitive, or useFloat.valueOf(String)to convert a string to aFloatobject.Integer(int value)Deprecated.It is rarely appropriate to use this constructor. The static factoryInteger.valueOf(int)is generally a better choice, as it is likely to yield significantly better space and time performance.Integer(String s)Deprecated.It is rarely appropriate to use this constructor. UseInteger.parseInt(String)to convert a string to aintprimitive, or useInteger.valueOf(String)to convert a string to anIntegerobject.Long(long value)Deprecated.It is rarely appropriate to use this constructor. The static factoryLong.valueOf(long)is generally a better choice, as it is likely to yield significantly better space and time performance.Long(String s)Deprecated.It is rarely appropriate to use this constructor. UseLong.parseLong(String)to convert a string to alongprimitive, or useLong.valueOf(String)to convert a string to aLongobject.Short(short value)Deprecated.It is rarely appropriate to use this constructor. The static factoryShort.valueOf(short)is generally a better choice, as it is likely to yield significantly better space and time performance.Short(String s)Deprecated.It is rarely appropriate to use this constructor. UseShort.parseShort(String)to convert a string to ashortprimitive, or useShort.valueOf(String)to convert a string to aShortobject.String(byte[] ascii, int hibyte)Deprecated.This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via theStringconstructors that take aCharset, charset name, or that use the platform's default charset.String(byte[] ascii, int hibyte, int offset, int count)Deprecated.This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via theStringconstructors that take aCharset, charset name, or that use the platform's default charset. -
Uses of Deprecated in java.lang.reflect
Methods in java.lang.reflect with annotations of type Deprecated Modifier and Type Method Description static Class<?>Proxy. getProxyClass(ClassLoader loader, Class<?>... interfaces)Deprecated.Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.Constructor.newInstancewill throwIllegalAccessExceptionwhen it is called on an inaccessible proxy class. UseProxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)to create a proxy instance instead.booleanAccessibleObject. isAccessible()Deprecated.This method is deprecated because its name hints that it checks if the reflected object is accessible when it actually indicates if the checks for Java language access control are suppressed. This method may returnfalseon a reflected object that is accessible to the caller. To test if this reflected object is accessible, it should useAccessibleObject.canAccess(Object). -
Uses of Deprecated in java.math
Fields in java.math with annotations of type Deprecated Modifier and Type Field Description static intBigDecimal. ROUND_CEILINGDeprecated.UseRoundingMode.CEILINGinstead.static intBigDecimal. ROUND_DOWNDeprecated.UseRoundingMode.DOWNinstead.static intBigDecimal. ROUND_FLOORDeprecated.UseRoundingMode.FLOORinstead.static intBigDecimal. ROUND_HALF_DOWNDeprecated.UseRoundingMode.HALF_DOWNinstead.static intBigDecimal. ROUND_HALF_EVENDeprecated.UseRoundingMode.HALF_EVENinstead.static intBigDecimal. ROUND_HALF_UPDeprecated.UseRoundingMode.HALF_UPinstead.static intBigDecimal. ROUND_UNNECESSARYDeprecated.UseRoundingMode.UNNECESSARYinstead.static intBigDecimal. ROUND_UPDeprecated.UseRoundingMode.UPinstead.Methods in java.math with annotations of type Deprecated Modifier and Type Method Description BigDecimalBigDecimal. divide(BigDecimal divisor, int roundingMode)Deprecated.The methodBigDecimal.divide(BigDecimal, RoundingMode)should be used in preference to this legacy method.BigDecimalBigDecimal. divide(BigDecimal divisor, int scale, int roundingMode)Deprecated.The methodBigDecimal.divide(BigDecimal, int, RoundingMode)should be used in preference to this legacy method.BigDecimalBigDecimal. setScale(int newScale, int roundingMode)Deprecated.The methodBigDecimal.setScale(int, RoundingMode)should be used in preference to this legacy method. -
Uses of Deprecated in java.net
Fields in java.net with annotations of type Deprecated Modifier and Type Field Description static intHttpURLConnection. HTTP_SERVER_ERRORDeprecated.it is misplaced and shouldn't have existed.Methods in java.net with annotations of type Deprecated Modifier and Type Method Description static StringURLDecoder. decode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding.static StringURLEncoder. encode(String s)Deprecated.The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding.static StringURLConnection. getDefaultRequestProperty(String key)Deprecated.The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.protected abstract byteDatagramSocketImpl. getTTL()Deprecated.use getTimeToLive instead.byteMulticastSocket. getTTL()Deprecated.use the getTimeToLive method instead, which returns an int instead of a byte.voidMulticastSocket. send(DatagramPacket p, byte ttl)Deprecated.Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ......static voidURLConnection. setDefaultRequestProperty(String key, String value)Deprecated.The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. Invoking this method will have no effect.protected abstract voidDatagramSocketImpl. setTTL(byte ttl)Deprecated.use setTimeToLive instead.voidMulticastSocket. setTTL(byte ttl)Deprecated.use the setTimeToLive method instead, which uses int instead of byte as the type for ttl.protected voidURLStreamHandler. setURL(URL u, String protocol, String host, int port, String file, String ref)Deprecated.Use setURL(URL, String, String, int, String, String, String, String);Constructors in java.net with annotations of type Deprecated Constructor Description Socket(String host, int port, boolean stream)Deprecated.Use DatagramSocket instead for UDP transport.Socket(InetAddress host, int port, boolean stream)Deprecated.Use DatagramSocket instead for UDP transport. -
Uses of Deprecated in java.rmi
Classes in java.rmi with annotations of type Deprecated Modifier and Type Class Description classRMISecurityExceptionDeprecated.UseSecurityExceptioninstead. Application code should never directly reference this class, andRMISecurityManagerno longer throws this subclass ofjava.lang.SecurityException.classRMISecurityManagerDeprecated.UseSecurityManagerinstead.classServerRuntimeExceptionDeprecated.no replacementConstructors in java.rmi with annotations of type Deprecated Constructor Description RMISecurityException(String name)Deprecated.no replacementRMISecurityException(String name, String arg)Deprecated.no replacementServerRuntimeException(String s, Exception ex)Deprecated.no replacement -
Uses of Deprecated in java.rmi.dgc
Methods in java.rmi.dgc with annotations of type Deprecated Modifier and Type Method Description static booleanVMID. isUnique()Deprecated. -
Uses of Deprecated in java.rmi.registry
Classes in java.rmi.registry with annotations of type Deprecated Modifier and Type Interface Description interfaceRegistryHandlerDeprecated.no replacementMethods in java.rmi.registry with annotations of type Deprecated Modifier and Type Method Description RegistryRegistryHandler. registryImpl(int port)Deprecated.no replacement. As of the Java 2 platform v1.2, RMI no longer uses theRegistryHandlerto obtain the registry's implementation.RegistryRegistryHandler. registryStub(String host, int port)Deprecated.no replacement. As of the Java 2 platform v1.2, RMI no longer uses theRegistryHandlerto obtain the registry's stub. -
Uses of Deprecated in java.rmi.server
Classes in java.rmi.server with annotations of type Deprecated Modifier and Type Interface Description interfaceLoaderHandlerDeprecated.no replacementclassLogStreamDeprecated.no replacementclassOperationDeprecated.no replacementinterfaceRemoteCallDeprecated.no replacement.classRemoteStubDeprecated.Statically generated stubs are deprecated, since stubs are generated dynamically. SeeUnicastRemoteObjectfor information about dynamic stub generation.interfaceServerRefDeprecated.No replacement. This interface is unused and is obsolete.interfaceSkeletonDeprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.classSkeletonMismatchExceptionDeprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.classSkeletonNotFoundExceptionDeprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.classSocketSecurityExceptionDeprecated.This class is obsolete. UseExportExceptioninstead.Methods in java.rmi.server with annotations of type Deprecated Modifier and Type Method Description voidSkeleton. dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)Deprecated.no replacementvoidRemoteCall. done()Deprecated.no replacementvoidRemoteRef. done(RemoteCall call)Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall,invoke, anddone), a stub uses a single method,invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.voidRemoteCall. executeCall()Deprecated.no replacementstatic RemoteStubUnicastRemoteObject. exportObject(Remote obj)Deprecated.This method is deprecated because it supports only static stubs. UseexportObject(Remote, port)orexportObject(Remote, port, csf, ssf)instead.static PrintStreamLogStream. getDefaultStream()Deprecated.no replacementObjectInputRemoteCall. getInputStream()Deprecated.no replacementStringOperation. getOperation()Deprecated.no replacementOperation[]Skeleton. getOperations()Deprecated.no replacementOutputStreamLogStream. getOutputStream()Deprecated.no replacementObjectOutputRemoteCall. getOutputStream()Deprecated.no replacementObjectOutputRemoteCall. getResultStream(boolean success)Deprecated.no replacementObjectLoaderHandler. getSecurityContext(ClassLoader loader)Deprecated.no replacementstatic ObjectRMIClassLoader. getSecurityContext(ClassLoader loader)Deprecated.no replacement. As of the Java 2 platform v1.2, RMI no longer uses this method to obtain a class loader's security context.voidRemoteRef. invoke(RemoteCall call)Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall,invoke, anddone), a stub uses a single method,invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.Class<?>LoaderHandler. loadClass(String name)Deprecated.no replacementClass<?>LoaderHandler. loadClass(URL codebase, String name)Deprecated.no replacementstatic Class<?>RMIClassLoader. loadClass(String name)Deprecated.replaced byloadClass(String,String)methodstatic LogStreamLogStream. log(String name)Deprecated.no replacementRemoteCallRemoteRef. newCall(RemoteObject obj, Operation[] op, int opnum, long hash)Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (newCall,invoke, anddone), a stub uses a single method,invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.static intLogStream. parseLevel(String s)Deprecated.no replacementvoidRemoteCall. releaseInputStream()Deprecated.no replacementvoidRemoteCall. releaseOutputStream()Deprecated.no replacementstatic voidLogStream. setDefaultStream(PrintStream newDefault)Deprecated.no replacementvoidLogStream. setOutputStream(OutputStream out)Deprecated.no replacementprotected static voidRemoteStub. setRef(RemoteStub stub, RemoteRef ref)Deprecated.No replacement. ThesetRefmethod was intended for setting the remote reference of a remote stub. This is unnecessary, sinceRemoteStubs can be created and initialized with a remote reference through use of theRemoteStub(RemoteRef)constructor.StringLogStream. toString()Deprecated.no replacementStringOperation. toString()Deprecated.no replacementvoidLogStream. write(byte[] b, int off, int len)Deprecated.no replacementvoidLogStream. write(int b)Deprecated.no replacementConstructors in java.rmi.server with annotations of type Deprecated Constructor Description Operation(String op)Deprecated.no replacementSkeletonMismatchException(String s)Deprecated.no replacement -
Uses of Deprecated in java.security
Classes in java.security with annotations of type Deprecated Modifier and Type Interface Description interfaceCertificateDeprecated.A new certificate handling package is created in the Java platform. This Certificate interface is entirely deprecated and is here to allow for a smooth transition to the new package.classIdentityDeprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore, thejava.security.certpackage, andjava.security.Principal.classIdentityScopeDeprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore, thejava.security.certpackage, andjava.security.Principal.classSignerDeprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore, thejava.security.certpackage, andjava.security.Principal.Methods in java.security with annotations of type Deprecated Modifier and Type Method Description protected abstract ObjectSignatureSpi. engineGetParameter(String param)Deprecated.protected abstract voidSignatureSpi. engineSetParameter(String param, Object value)Deprecated.Replaced byengineSetParameter.static StringSecurity. getAlgorithmProperty(String algName, String propName)Deprecated.This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters. Use the new provider-based and algorithm-independentAlgorithmParametersandKeyFactoryengine classes (introduced in the J2SE version 1.2 platform) instead.ObjectSignature. getParameter(String param)Deprecated.doubleProvider. getVersion()Deprecated.useProvider.getVersionStr()instead.voidSignature. setParameter(String param, Object value)Deprecated.UsesetParameter.Constructors in java.security with annotations of type Deprecated Constructor Description AuthProvider(String name, double version, String info)Deprecated.useAuthProvider(String, String, String)instead.Provider(String name, double version, String info)Deprecated.useProvider(String, String, String)instead. -
Uses of Deprecated in java.security.acl
Classes in java.security.acl with annotations of type Deprecated Modifier and Type Interface Description interfaceAclDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.interfaceAclEntryDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.classAclNotFoundExceptionDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.interfaceGroupDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.classLastOwnerExceptionDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.classNotOwnerExceptionDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.interfaceOwnerDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2.interfacePermissionDeprecated.This package has been replaced byjava.security.Policyand related classes since 1.2. -
Uses of Deprecated in java.sql
Methods in java.sql with annotations of type Deprecated Modifier and Type Method Description BigDecimalCallableStatement. getBigDecimal(int parameterIndex, int scale)Deprecated.usegetBigDecimal(int parameterIndex)orgetBigDecimal(String parameterName)BigDecimalResultSet. getBigDecimal(int columnIndex, int scale)Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)BigDecimalResultSet. getBigDecimal(String columnLabel, int scale)Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)intTime. getDate()Deprecated.intTime. getDay()Deprecated.intDate. getHours()Deprecated.static PrintStreamDriverManager. getLogStream()Deprecated.UsegetLogWriterintDate. getMinutes()Deprecated.intTime. getMonth()Deprecated.intDate. getSeconds()Deprecated.InputStreamResultSet. getUnicodeStream(int columnIndex)Deprecated.usegetCharacterStreamin place ofgetUnicodeStreamInputStreamResultSet. getUnicodeStream(String columnLabel)Deprecated.usegetCharacterStreaminsteadintTime. getYear()Deprecated.voidTime. setDate(int i)Deprecated.voidDate. setHours(int i)Deprecated.static voidDriverManager. setLogStream(PrintStream out)Deprecated.UsesetLogWritervoidDate. setMinutes(int i)Deprecated.voidTime. setMonth(int i)Deprecated.voidDate. setSeconds(int i)Deprecated.voidPreparedStatement. setUnicodeStream(int parameterIndex, InputStream x, int length)Deprecated.UsesetCharacterStreamvoidTime. setYear(int i)Deprecated.Constructors in java.sql with annotations of type Deprecated Constructor Description Date(int year, int month, int day)Deprecated.instead use the constructorDate(long date)Time(int hour, int minute, int second)Deprecated.Use the constructor that takes a milliseconds value in place of this constructorTimestamp(int year, int month, int date, int hour, int minute, int second, int nano)Deprecated.instead use the constructorTimestamp(long millis) -
Uses of Deprecated in java.util
Classes in java.util with annotations of type Deprecated Modifier and Type Class Description classObservableDeprecated.This class and theObserverinterface have been deprecated. The event model supported byObserverandObservableis quite limited, the order of notifications delivered byObservableis unspecified, and state changes are not in one-for-one correspondence with notifications. For a richer event model, consider using thejava.beanspackage. For reliable and ordered messaging among threads, consider using one of the concurrent data structures in thejava.util.concurrentpackage. For reactive streams style programming, see theFlowAPI.interfaceObserverDeprecated.This interface has been deprecated. See theObservableclass for further information.Methods in java.util with annotations of type Deprecated Modifier and Type Method Description intDate. getDate()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_MONTH).intDate. getDay()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_WEEK).intDate. getHours()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.HOUR_OF_DAY).intDate. getMinutes()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MINUTE).intDate. getMonth()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MONTH).intDate. getSeconds()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.SECOND).intDate. getTimezoneOffset()Deprecated.As of JDK version 1.1, replaced by-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000).intDate. getYear()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.YEAR) - 1900.static longDate. parse(String s)Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s).voidProperties. save(OutputStream out, String comments)Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via thestore(OutputStream out, String comments)method or thestoreToXML(OutputStream os, String comment)method.voidDate. setDate(int date)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.DAY_OF_MONTH, int date).voidDate. setHours(int hours)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.HOUR_OF_DAY, int hours).voidDate. setMinutes(int minutes)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MINUTE, int minutes).voidDate. setMonth(int month)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MONTH, int month).voidDate. setSeconds(int seconds)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.SECOND, int seconds).voidDate. setYear(int year)Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.YEAR, year + 1900).StringDate. toGMTString()Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date), using a GMTTimeZone.StringDate. toLocaleString()Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date).static longDate. UTC(int year, int month, int date, int hrs, int min, int sec)Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)orGregorianCalendar(year + 1900, month, date, hrs, min, sec), using a UTCTimeZone, followed byCalendar.getTime().getTime().Constructors in java.util with annotations of type Deprecated Constructor Description Date(int year, int month, int date)Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date)orGregorianCalendar(year + 1900, month, date).Date(int year, int month, int date, int hrs, int min)Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min)orGregorianCalendar(year + 1900, month, date, hrs, min).Date(int year, int month, int date, int hrs, int min, int sec)Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)orGregorianCalendar(year + 1900, month, date, hrs, min, sec).Date(String s)Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s). -
Uses of Deprecated in java.util.concurrent
Methods in java.util.concurrent with annotations of type Deprecated Modifier and Type Method Description protected voidThreadPoolExecutor. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in java.util.concurrent.atomic
Methods in java.util.concurrent.atomic with annotations of type Deprecated Modifier and Type Method Description booleanAtomicBoolean. weakCompareAndSet(boolean expectedValue, boolean newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicBoolean.compareAndExchange(boolean, boolean)andAtomicBoolean.compareAndSet(boolean, boolean)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicBoolean.weakCompareAndSetPlain(boolean, boolean)be used instead.booleanAtomicInteger. weakCompareAndSet(int expectedValue, int newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicInteger.compareAndExchange(int, int)andAtomicInteger.compareAndSet(int, int)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicInteger.weakCompareAndSetPlain(int, int)be used instead.booleanAtomicIntegerArray. weakCompareAndSet(int i, int expectedValue, int newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicIntegerArray.compareAndExchange(int, int, int)andAtomicIntegerArray.compareAndSet(int, int, int)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicIntegerArray.weakCompareAndSetPlain(int, int, int)be used instead.booleanAtomicLong. weakCompareAndSet(long expectedValue, long newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLong.compareAndExchange(long, long)andAtomicLong.compareAndSet(long, long)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicLong.weakCompareAndSetPlain(long, long)be used instead.booleanAtomicLongArray. weakCompareAndSet(int i, long expectedValue, long newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLongArray.compareAndExchange(int, long, long)andAtomicLongArray.compareAndSet(int, long, long)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicLongArray.weakCompareAndSetPlain(int, long, long)be used instead.booleanAtomicReference. weakCompareAndSet(V expectedValue, V newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReference.compareAndExchange(V, V)andAtomicReference.compareAndSet(V, V)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicReference.weakCompareAndSetPlain(V, V)be used instead.booleanAtomicReferenceArray. weakCompareAndSet(int i, E expectedValue, E newValue)Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReferenceArray.compareAndExchange(int, E, E)andAtomicReferenceArray.compareAndSet(int, E, E)). To avoid confusion over plain or volatile memory effects it is recommended that the methodAtomicReferenceArray.weakCompareAndSetPlain(int, E, E)be used instead. -
Uses of Deprecated in java.util.jar
Fields in java.util.jar with annotations of type Deprecated Modifier and Type Field Description static Attributes.NameAttributes.Name. EXTENSION_INSTALLATIONDeprecated.Extension mechanism is no longer supported.static Attributes.NameAttributes.Name. IMPLEMENTATION_URLDeprecated.Extension mechanism is no longer supported.static Attributes.NameAttributes.Name. IMPLEMENTATION_VENDOR_IDDeprecated.Extension mechanism is no longer supported. -
Uses of Deprecated in java.util.logging
Classes in java.util.logging with annotations of type Deprecated Modifier and Type Interface Description interfaceLoggingMXBeanDeprecated.LoggingMXBeanis no longer aplatform MXBeanand is replaced withPlatformLoggingMXBean. It will not register in the platformMBeanServer. UseManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)instead.Fields in java.util.logging with annotations of type Deprecated Modifier and Type Field Description static LoggerLogger. globalDeprecated.Initialization of this field is prone to deadlocks. The field must be initialized by the Logger class initialization which may cause deadlocks with the LogManager class initialization. In such cases two class initialization wait for each other to complete. The preferred way to get the global logger object is via the callLogger.getGlobal(). For compatibility with old JDK versions where theLogger.getGlobal()is not available use the callLogger.getLogger(Logger.GLOBAL_LOGGER_NAME)orLogger.getLogger("global").Methods in java.util.logging with annotations of type Deprecated Modifier and Type Method Description static LoggingMXBeanLogManager. getLoggingMXBean()Deprecated.java.util.logging.LoggingMXBeanis deprecated and replaced withjava.lang.management.PlatformLoggingMXBean. UseManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class) instead.voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)voidLogger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)voidLogRecord. setMillis(long millis)Deprecated.LogRecord maintains timestamps with nanosecond resolution, usingInstantvalues. For this reason,setInstant()should be used in preference tosetMillis(). -
Uses of Deprecated in java.util.zip
Methods in java.util.zip with annotations of type Deprecated Modifier and Type Method Description protected voidDeflater. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidInflater. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidZipFile. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in javafx.application
Methods in javafx.application with annotations of type Deprecated Modifier and Type Method Description JSObjectHostServices. getWebContext()Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated as of JDK 9 because theAppletAPI is deprecated. -
Uses of Deprecated in javafx.css
Methods in javafx.css with annotations of type Deprecated Modifier and Type Method Description voidCssMetaData. set(S styleable, V value, StyleOrigin origin)Deprecated.This method is no longer called from CSS code. UseStyleableProperty.applyStyle(javafx.css.StyleOrigin, java.lang.Object) -
Uses of Deprecated in javafx.event
Constructors in javafx.event with annotations of type Deprecated Constructor Description EventType()Deprecated.Do not use this constructor, as only one such EventType can exist -
Uses of Deprecated in javafx.fxml
Methods in javafx.fxml with annotations of type Deprecated Modifier and Type Method Description static Class<?>FXMLLoader. loadType(String className)Deprecated.This method now delegates toFXMLLoader.getDefaultClassLoader().static Class<?>FXMLLoader. loadType(String packageName, String className)Deprecated.This method now delegates toFXMLLoader.getDefaultClassLoader(). -
Uses of Deprecated in javafx.scene.control
Methods in javafx.scene.control with annotations of type Deprecated Modifier and Type Method Description static intTreeTableView. getNodeLevel(TreeItem<?> node)Deprecated.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 viaTreeTableView.getTreeItemLevel(TreeItem)static intTreeView. getNodeLevel(TreeItem<?> node)Deprecated.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 viaTreeView.getTreeItemLevel(TreeItem)protected doubleSkinBase. snapPosition(double value)Deprecated.replaced bysnapPositionX()andsnapPositionY()protected doubleSkinBase. snapSize(double value)Deprecated.replaced bysnapSizeX()andsnapSizeY()protected doubleSkinBase. snapSpace(double value)Deprecated.replaced bysnapSpaceX()andsnapSpaceY() -
Uses of Deprecated in javafx.scene.input
Constructors in javafx.scene.input with annotations of type Deprecated Constructor Description GestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType)Deprecated.Do not use this constructor. Constructs empty event.GestureEvent(EventType<? extends GestureEvent> eventType)Deprecated.Do not use this constructor. Constructs empty event. -
Uses of Deprecated in javafx.scene.layout
Methods in javafx.scene.layout with annotations of type Deprecated Modifier and Type Method Description protected doubleRegion. snapPosition(double value)Deprecated.replaced bysnapPositionX()andsnapPositionY()protected doubleRegion. snapSize(double value)Deprecated.replaced bysnapSizeX()andsnapSizeY()protected doubleRegion. snapSpace(double value)Deprecated.replaced bysnapSpaceX()andsnapSpaceY() -
Uses of Deprecated in javafx.scene.media
Methods in javafx.scene.media with annotations of type Deprecated Modifier and Type Method Description StringAudioTrack. getLanguage()Deprecated.UseTrack.getLocale()instead. -
Uses of Deprecated in javafx.util
Methods in javafx.util with annotations of type Deprecated Modifier and Type Method Description DurationDuration. divide(Duration other)Deprecated.This method produces surprising results by not taking units into account. UseDuration.divide(double)instead.DurationDuration. multiply(Duration other)Deprecated.This method produces surprising results by not taking units into account. UseDuration.multiply(double)instead. -
Uses of Deprecated in javax.accessibility
Classes in javax.accessibility with annotations of type Deprecated Modifier and Type Class Description classAccessibleResourceBundleDeprecated.This class is deprecated as of version 1.3 of the Java Platform -
Uses of Deprecated in javax.imageio.spi
Fields in javax.imageio.spi with annotations of type Deprecated Modifier and Type Field Description static Class<?>[]ImageReaderSpi. STANDARD_INPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }.static Class<?>[]ImageWriterSpi. STANDARD_OUTPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }.Methods in javax.imageio.spi with annotations of type Deprecated Modifier and Type Method Description voidServiceRegistry. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in javax.imageio.stream
Methods in javax.imageio.stream with annotations of type Deprecated Modifier and Type Method Description protected voidFileCacheImageInputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidFileImageInputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidFileImageOutputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidImageInputStreamImpl. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options.protected voidMemoryCacheImageInputStream. finalize()Deprecated.Thefinalizemethod has been deprecated. Subclasses that overridefinalizein order to perform cleanup should be modified to use alternative cleanup mechanisms and to remove the overridingfinalizemethod. When overriding thefinalizemethod, its implementation must explicitly ensure thatsuper.finalize()is invoked as described inObject.finalize(). See the specification forObject.finalize()for further information about migration options. -
Uses of Deprecated in javax.jws.soap
Classes in javax.jws.soap with annotations of type Deprecated Modifier and Type Class Description interfaceInitParamDeprecated.interfaceSOAPMessageHandlerDeprecated.interfaceSOAPMessageHandlersDeprecated. -
Uses of Deprecated in javax.lang.model.util
Constructors in javax.lang.model.util with annotations of type Deprecated Constructor Description AbstractAnnotationValueVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.AbstractElementVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.AbstractTypeVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.ElementKindVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.ElementKindVisitor6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.ElementScanner6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.ElementScanner6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleAnnotationValueVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleAnnotationValueVisitor6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleElementVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleElementVisitor6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleTypeVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.SimpleTypeVisitor6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.TypeKindVisitor6()Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.TypeKindVisitor6(R defaultValue)Deprecated.Release 6 is obsolete; update to a visitor for a newer release level. -
Uses of Deprecated in javax.management
Classes in javax.management with annotations of type Deprecated Modifier and Type Class Description classDefaultLoaderRepositoryDeprecated.UseMBeanServer.getClassLoaderRepository()instead.Methods in javax.management with annotations of type Deprecated Modifier and Type Method Description default ObjectInputStreamMBeanServer. deserialize(String className, byte[] data)Deprecated.UseMBeanServer.getClassLoaderRepository()to obtain the class loader repository and use it to deserialize.default ObjectInputStreamMBeanServer. deserialize(String className, ObjectName loaderName, byte[] data)Deprecated.UsegetClassLoaderto obtain the class loader for deserialization.default ObjectInputStreamMBeanServer. deserialize(ObjectName name, byte[] data)Deprecated.UsegetClassLoaderForto obtain the appropriate class loader for deserialization.voidAttributeValueExp. setMBeanServer(MBeanServer s)Deprecated.This method has no effect. The MBean Server used to obtain an attribute value isQueryEval.getMBeanServer().voidStringValueExp. setMBeanServer(MBeanServer s)Deprecated.voidValueExp. setMBeanServer(MBeanServer s)Deprecated.This method is not needed because aValueExpcan access the MBean server in which it is being evaluated by usingQueryEval.getMBeanServer().Constructors in javax.management with annotations of type Deprecated Constructor Description AttributeValueExp()Deprecated.An instance created with this constructor cannot be used in a query. -
Uses of Deprecated in javax.management.loading
Classes in javax.management.loading with annotations of type Deprecated Modifier and Type Class Description classDefaultLoaderRepositoryDeprecated.UseMBeanServer.getClassLoaderRepository()instead. -
Uses of Deprecated in javax.management.monitor
Fields in javax.management.monitor with annotations of type Deprecated Modifier and Type Field Description protected intMonitor. alreadyNotifiedDeprecated.equivalent toMonitor.alreadyNotifieds[0].protected StringMonitor. dbgTagDeprecated.No replacement. -
Uses of Deprecated in javax.management.openmbean
Fields in javax.management.openmbean with annotations of type Deprecated Modifier and Type Field Description static String[]OpenType. ALLOWED_CLASSNAMESDeprecated.UseALLOWED_CLASSNAMES_LISTinstead. -
Uses of Deprecated in javax.management.remote.rmi
Classes in javax.management.remote.rmi with annotations of type Deprecated Modifier and Type Class Description classRMIIIOPServerImplDeprecated.This transport is no longer supported. -
Uses of Deprecated in javax.naming
Fields in javax.naming with annotations of type Deprecated Modifier and Type Field Description static StringContext. APPLETDeprecated.An environment property with this name is ignored while constructing an initial context. This constant was originally used as a property name to specify anAppletto retrieve parameters from, when creating an initial context. Currently any applet properties that need to be passed to an initial context should be copied into the environment hashtable:Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, ((Applet) this).getParameter(Context.INITIAL_CONTEXT_FACTORY)); env.put(Context.PROVIDER_URL, ((Applet) this).getParameter(Context.PROVIDER_URL)); // ... other properties ... Context ctx = new InitialContext(env); -
Uses of Deprecated in javax.net.ssl
Methods in javax.net.ssl with annotations of type Deprecated Modifier and Type Method Description X509Certificate[]HandshakeCompletedEvent. getPeerCertificateChain()Deprecated.TheHandshakeCompletedEvent.getPeerCertificates()method that returns an array ofjava.security.cert.Certificateshould be used instead.X509Certificate[]SSLSession. getPeerCertificateChain()Deprecated.TheSSLSession.getPeerCertificates()method that returns an array ofjava.security.cert.Certificateshould be used instead. -
Uses of Deprecated in javax.security.auth
Classes in javax.security.auth with annotations of type Deprecated Modifier and Type Class Description classPolicyDeprecated.as of JDK version 1.4 -- Replaced by java.security.Policy. java.security.Policy has a method:public PermissionCollection getPermissions (java.security.ProtectionDomain pd)and ProtectionDomain has a constructor:public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader loader, Principal[] principals)These two APIs provide callers the means to query the Policy for Principal-based Permission entries. -
Uses of Deprecated in javax.security.cert
Classes in javax.security.cert with annotations of type Deprecated Modifier and Type Class Description classCertificateDeprecated.Use the classes injava.security.certinstead.classCertificateEncodingExceptionDeprecated.Use the classes injava.security.certinstead.classCertificateExceptionDeprecated.Use the classes injava.security.certinstead.classCertificateExpiredExceptionDeprecated.Use the classes injava.security.certinstead.classCertificateNotYetValidExceptionDeprecated.Use the classes injava.security.certinstead.classCertificateParsingExceptionDeprecated.Use the classes injava.security.certinstead.classX509CertificateDeprecated.Use the classes injava.security.certinstead. -
Uses of Deprecated in javax.sql.rowset
Fields in javax.sql.rowset with annotations of type Deprecated Modifier and Type Field Description static booleanCachedRowSet. COMMIT_ON_ACCEPT_CHANGESDeprecated.Because this field is final (it is part of an interface), its value cannot be changed.Methods in javax.sql.rowset with annotations of type Deprecated Modifier and Type Method Description voidBaseRowSet. setUnicodeStream(int parameterIndex, InputStream x, int length)Deprecated.getCharacterStream should be used in its place -
Uses of Deprecated in javax.swing
Classes in javax.swing with annotations of type Deprecated Modifier and Type Class Description classJAppletDeprecated.The Applet API is deprecated. See the java.applet package documentation for further information.protected classJComponent.AccessibleJComponent.AccessibleFocusHandlerDeprecated.This class is no longer used or needed.java.awt.Component.AccessibleAWTComponentprovides the same functionality and it is handled inComponent.Fields in javax.swing with annotations of type Deprecated Modifier and Type Field Description protected FocusListenerJComponent.AccessibleJComponent. accessibleFocusHandlerDeprecated.protected booleanJViewport. backingStoreDeprecated.As of Java 2 platform v1.3protected static ComponentImageIcon. componentDeprecated.since 1.8protected static MediaTrackerImageIcon. trackerDeprecated.since 1.8Methods in javax.swing with annotations of type Deprecated Modifier and Type Method Description voidRepaintManager. addDirtyRegion(Applet applet, int x, int y, int w, int h)Deprecated.The Applet API is deprecated. See the java.applet package documentation for further information.static JScrollPaneJTable. createScrollPaneForTable(JTable aTable)Deprecated.As of Swing version 1.0.2, replaced bynew JScrollPane(aTable).voidJComponent. disable()Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean).static voidFocusManager. disableSwingFocusManager()Deprecated.as of 1.4, replaced byKeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)voidJComponent. enable()Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean).static ComponentSwingUtilities. findFocusOwner(Component c)Deprecated.As of 1.4, replaced byKeyboardFocusManager.getFocusOwner().ComponentJMenuBar. getComponentAtIndex(int i)Deprecated.replaced bygetComponent(int i)ComponentJPopupMenu. getComponentAtIndex(int i)Deprecated.replaced byContainer.getComponent(int)static KeyStrokeKeyStroke. getKeyStroke(char keyChar, boolean onKeyRelease)Deprecated.use getKeyStroke(char)StringAbstractButton. getLabel()Deprecated.- Replaced bygetTextJMenuBarJInternalFrame. getMenuBar()Deprecated.As of Swing version 1.0.3, replaced bygetJMenuBar().JMenuBarJRootPane. getMenuBar()Deprecated.As of Swing version 1.0.3 replaced bygetJMenuBar().ComponentJComponent. getNextFocusableComponent()Deprecated.As of 1.4, replaced byFocusTraversalPolicy.Object[]JList. getSelectedValues()Deprecated.As of JDK 1.7, replaced byJList.getSelectedValuesList()StringJPasswordField. getText()Deprecated.As of Java 2 platform v1.2, replaced bygetPassword.StringJPasswordField. getText(int offs, int len)Deprecated.As of Java 2 platform v1.2, replaced bygetPassword.RectangleScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)Deprecated.As of JDK version Swing1.1 replaced byJScrollPane.getViewportBorderBounds().voidJComponent. hide()Deprecated.booleanJViewport. isBackingStoreEnabled()Deprecated.As of Java 2 platform v1.3, replaced bygetScrollMode().static booleanFocusManager. isFocusManagerEnabled()Deprecated.As of 1.4, replaced byKeyboardFocusManager.getDefaultFocusTraversalPolicy()booleanJComponent. isManagingFocus()Deprecated.As of 1.4, replaced byComponent.setFocusTraversalKeys(int, Set)andContainer.setFocusCycleRoot(boolean).booleanJComponent. requestDefaultFocus()Deprecated.As of 1.4, replaced byFocusTraversalPolicy.getDefaultComponent(Container).requestFocus()voidJComponent. reshape(int x, int y, int w, int h)Deprecated.As of JDK 5, replaced byComponent.setBounds(int, int, int, int).Moves and resizes this component.
voidJViewport. setBackingStoreEnabled(boolean enabled)Deprecated.As of Java 2 platform v1.3, replaced bysetScrollMode().voidAbstractButton. setLabel(String label)Deprecated.- Replaced bysetText(text)voidJInternalFrame. setMenuBar(JMenuBar m)Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m).voidJRootPane. setMenuBar(JMenuBar menu)Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu).voidJComponent. setNextFocusableComponent(Component aComponent)Deprecated.As of 1.4, replaced byFocusTraversalPolicybooleanInputVerifier. shouldYieldFocus(JComponent input)Deprecated.voidJTable. sizeColumnsToFit(boolean lastColumnOnly)Deprecated.As of Swing version 1.0.3, replaced bydoLayout(). -
Uses of Deprecated in javax.swing.plaf
Methods in javax.swing.plaf with annotations of type Deprecated Modifier and Type Method Description StringTextUI. getToolTipText(JTextComponent t, Point pt)Deprecated.replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)abstract RectangleTextUI. modelToView(JTextComponent t, int pos)Deprecated.abstract RectangleTextUI. modelToView(JTextComponent t, int pos, Position.Bias bias)Deprecated.abstract intTextUI. viewToModel(JTextComponent t, Point pt)Deprecated.abstract intTextUI. viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)Deprecated. -
Uses of Deprecated in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic with annotations of type Deprecated Modifier and Type Field Description protected KeyStrokeBasicDesktopPaneUI. closeKeyDeprecated.As of 1.3.protected KeyStrokeBasicSplitPaneUI. dividerResizeToggleKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. downKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicTabbedPaneUI. downKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicToolBarUI. downKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. endKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. homeKeyDeprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. keyboardDownRightListenerDeprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. keyboardEndListenerDeprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. keyboardHomeListenerDeprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. keyboardResizeToggleListenerDeprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. keyboardUpLeftListenerDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. leftKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicTabbedPaneUI. leftKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicToolBarUI. leftKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicDesktopPaneUI. maximizeKeyDeprecated.As of 1.3.protected KeyStrokeBasicDesktopPaneUI. minimizeKeyDeprecated.As of 1.3.protected KeyStrokeBasicDesktopPaneUI. navigateKeyDeprecated.As of 1.3.protected KeyStrokeBasicDesktopPaneUI. navigateKey2Deprecated.As of 1.3.protected KeyStrokeBasicInternalFrameUI. openMenuKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. rightKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicTabbedPaneUI. rightKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicToolBarUI. rightKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicSplitPaneUI. upKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicTabbedPaneUI. upKeyDeprecated.As of Java 2 platform v1.3.protected KeyStrokeBasicToolBarUI. upKeyDeprecated.As of Java 2 platform v1.3.Methods in javax.swing.plaf.basic with annotations of type Deprecated Modifier and Type Method Description protected ActionListenerBasicSplitPaneUI. createKeyboardDownRightListener()Deprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. createKeyboardEndListener()Deprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. createKeyboardHomeListener()Deprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. createKeyboardResizeToggleListener()Deprecated.As of Java 2 platform v1.3.protected ActionListenerBasicSplitPaneUI. createKeyboardUpLeftListener()Deprecated.As of Java 2 platform v1.3.protected intBasicSplitPaneUI. getDividerBorderSize()Deprecated.As of Java 2 platform v1.3, instead set the border on the divider.RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)Deprecated.RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)Deprecated.intBasicTextUI. viewToModel(JTextComponent tc, Point pt)Deprecated.intBasicTextUI. viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)Deprecated. -
Uses of Deprecated in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal with annotations of type Deprecated Modifier and Type Class Description classMetalComboBoxUI.MetalComboPopupDeprecated.As of Java 2 platform v1.4.protected classMetalFileChooserUI.FileRendererDeprecated.As of JDK version 9. Obsolete class.protected classMetalFileChooserUI.SingleClickListenerDeprecated.As of JDK version 9. Obsolete class.Methods in javax.swing.plaf.metal with annotations of type Deprecated Modifier and Type Method Description protected voidMetalComboBoxUI. editablePropertyChanged(PropertyChangeEvent e)Deprecated.As of Java 2 platform v1.4.protected voidMetalComboBoxUI. removeListeners()Deprecated.As of Java 2 platform v1.4.voidMetalScrollPaneUI. uninstallListeners(JScrollPane scrollPane)Deprecated.- Replaced byMetalScrollPaneUI.uninstallListeners(JComponent) -
Uses of Deprecated in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with annotations of type Deprecated Modifier and Type Method Description RectangleMultiTextUI. modelToView(JTextComponent a, int b)Deprecated.RectangleMultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)Deprecated.intMultiTextUI. viewToModel(JTextComponent a, Point b)Deprecated.intMultiTextUI. viewToModel(JTextComponent a, Point b, Position.Bias[] c)Deprecated. -
Uses of Deprecated in javax.swing.table
Fields in javax.swing.table with annotations of type Deprecated Modifier and Type Field Description protected intTableColumn. resizedPostingDisableCountDeprecated.as of Java 2 platform v1.3Methods in javax.swing.table with annotations of type Deprecated Modifier and Type Method Description voidTableColumn. disableResizedPosting()Deprecated.as of Java 2 platform v1.3voidTableColumn. enableResizedPosting()Deprecated.as of Java 2 platform v1.3 -
Uses of Deprecated in javax.swing.text
Classes in javax.swing.text with annotations of type Deprecated Modifier and Type Class Description classDefaultTextUIDeprecated.classTableView.TableCellDeprecated.A table cell can now be any View implementation.Methods in javax.swing.text with annotations of type Deprecated Modifier and Type Method Description protected TableView.TableCellTableView. createTableCell(Element elem)Deprecated.Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.protected intPasswordView. drawEchoCharacter(Graphics g, int x, int y, char c)Deprecated.protected voidPlainView. drawLine(int lineIndex, Graphics g, int x, int y)Deprecated.protected voidWrappedPlainView. drawLine(int p0, int p1, Graphics g, int x, int y)Deprecated.protected intPasswordView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intWrappedPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.static intUtilities. drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)Deprecated.protected intPasswordView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intWrappedPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.static intUtilities. getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)Deprecated.protected FontMetricsLabelView. getFontMetrics()Deprecated.FontMetrics are not used for glyph rendering when running in the JDK.static intUtilities. getPositionAbove(JTextComponent c, int offs, int x)Deprecated.static intUtilities. getPositionBelow(JTextComponent c, int offs, int x)Deprecated.static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)Deprecated.static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round)Deprecated.static intUtilities. getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)Deprecated.RectangleJTextComponent. modelToView(int pos)Deprecated.replaced byJTextComponent.modelToView2D(int)ShapeView. modelToView(int pos, Shape a)Deprecated.intJTextComponent. viewToModel(Point pt)Deprecated.replaced byJTextComponent.viewToModel2D(Point2D)intView. viewToModel(float x, float y, Shape a)Deprecated. -
Uses of Deprecated in javax.swing.text.html
Fields in javax.swing.text.html with annotations of type Deprecated Modifier and Type Field Description static StringFormView. RESETDeprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic StringFormView. SUBMITDeprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextMethods in javax.swing.text.html with annotations of type Deprecated Modifier and Type Method Description protected voidHTMLEditorKit.InsertHTMLTextAction. insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)Deprecated.As of Java 2 platform v1.3, use insertAtBoundary -
Uses of Deprecated in javax.swing.tree
Methods in javax.swing.tree with annotations of type Deprecated Modifier and Type Method Description protected voidDefaultTreeSelectionModel. notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)Deprecated.As of JDK version 1.7 -
Uses of Deprecated in javax.tools
Methods in javax.tools with annotations of type Deprecated Modifier and Type Method Description static ClassLoaderToolProvider. getSystemToolClassLoader()Deprecated.This method is subject to removal in a future version of Java SE. Use thesystem tool providerorservice loadermechanisms to locate system tools as well as user-installed tools. -
Uses of Deprecated in javax.xml.bind
Methods in javax.xml.bind with annotations of type Deprecated Modifier and Type Method Description abstract ValidatorJAXBContext. createValidator()Deprecated.since JAXB2.0 -
Uses of Deprecated in javax.xml.stream
Methods in javax.xml.stream with annotations of type Deprecated Modifier and Type Method Description static XMLInputFactoryXMLInputFactory. newFactory()Deprecated.static XMLEventFactoryXMLEventFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacementXMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader)method defines no changes in behavior.static XMLInputFactoryXMLInputFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacementXMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader)method defines no changes in behavior.static XMLInputFactoryXMLOutputFactory. newInstance(String factoryId, ClassLoader classLoader)Deprecated.This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new methodXMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader)instead. -
Uses of Deprecated in jdk.nashorn.api.scripting
Methods in jdk.nashorn.api.scripting with annotations of type Deprecated Modifier and Type Method Description static ObjectAbstractJSObject. getDefaultValue(JSObject jsobj, Class<?> hint)Deprecated.useJSObject.getDefaultValue(Class)instead.doubleAbstractJSObject. toNumber()Deprecated.useJSObject.getDefaultValue(Class)withNumberhint instead.default doubleJSObject. toNumber()Deprecated.useJSObject.getDefaultValue(Class)withNumberhint instead.doubleScriptObjectMirror. toNumber()Deprecated. -
Uses of Deprecated in netscape.javascript
Methods in netscape.javascript with annotations of type Deprecated Modifier and Type Method Description static JSObjectJSObject. getWindow(Applet applet)Deprecated.The Applet API is deprecated. See the java.applet package documentation for further information. -
Uses of Deprecated in org.omg.CORBA
Classes in org.omg.CORBA with annotations of type Deprecated Modifier and Type Class Description classDynamicImplementationDeprecated.org.omg.CORBA.DynamicImplementationinterfaceDynAnyDeprecated.Use the new DynAny insteadinterfaceDynArrayDeprecated.Use the new DynArray insteadinterfaceDynEnumDeprecated.Use the new DynEnum insteadinterfaceDynFixedDeprecated.Use the new DynFixed insteadinterfaceDynSequenceDeprecated.Use the new DynSequence insteadinterfaceDynStructDeprecated.Use the new DynStruct insteadinterfaceDynUnionDeprecated.Use the new DynUnion insteadinterfaceDynValueDeprecated.Use the new DynValue insteadclassPrincipalDeprecated.Deprecated by CORBA 2.2.classPrincipalHolderDeprecated.Deprecated by CORBA 2.2.Methods in org.omg.CORBA with annotations of type Deprecated Modifier and Type Method Description DynAnyORB. create_basic_dyn_any(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadDynAnyORB. create_dyn_any(Any value)Deprecated.Use the new DynAnyFactory API insteadDynArrayORB. create_dyn_array(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadDynEnumORB. create_dyn_enum(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadDynSequenceORB. create_dyn_sequence(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadDynStructORB. create_dyn_struct(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadDynUnionORB. create_dyn_union(TypeCode type)Deprecated.Use the new DynAnyFactory API insteadabstract TypeCodeORB. create_recursive_sequence_tc(int bound, int offset)Deprecated.Use a combination of create_recursive_tc and create_sequence_tc insteadvoidServerRequest. except(Any any)Deprecated.use set_exception()PrincipalAny. extract_Principal()Deprecated.Deprecated by CORBA 2.2.CurrentORB. get_current()Deprecated.useresolve_initial_references.voidAny. insert_Principal(Principal p)Deprecated.Deprecated by CORBA 2.2.voidDynamicImplementation. invoke(ServerRequest request)Deprecated.Deprecated by Portable Object Adapterbyte[]Principal. name()Deprecated.Deprecated by CORBA 2.2.voidPrincipal. name(byte[] value)Deprecated.Deprecated by CORBA 2.2.StringServerRequest. op_name()Deprecated.use operation()voidServerRequest. params(NVList params)Deprecated.use the methodargumentsvoidServerRequest. result(Any any)Deprecated.use the methodset_resultConstructors in org.omg.CORBA with annotations of type Deprecated Constructor Description TCKind(int _value)Deprecated.Do not use this constructor as this method should be private according to the OMG specification. UseTCKind.from_int(int)instead. -
Uses of Deprecated in org.omg.CORBA.portable
Methods in org.omg.CORBA.portable with annotations of type Deprecated Modifier and Type Method Description PrincipalInputStream. read_Principal()Deprecated.Deprecated by CORBA 2.2.voidOutputStream. write_Principal(Principal value)Deprecated.Deprecated by CORBA 2.2. -
Uses of Deprecated in org.xml.sax
Classes in org.xml.sax with annotations of type Deprecated Modifier and Type Interface Description interfaceAttributeListDeprecated.This interface has been replaced by the SAX2Attributesinterface, which includes Namespace support.interfaceDocumentHandlerDeprecated.This interface has been replaced by the SAX2ContentHandlerinterface, which includes Namespace support.interfaceParserDeprecated.This interface has been replaced by the SAX2XMLReaderinterface, which includes Namespace support. -
Uses of Deprecated in org.xml.sax.helpers
Classes in org.xml.sax.helpers with annotations of type Deprecated Modifier and Type Class Description classParserFactoryDeprecated.This class works with the deprecatedParserinterface.classXMLReaderFactoryDeprecated.It is recommended to useSAXParserFactoryinstead.
-