Uses of Class
java.lang.Deprecated
-
Packages that use 已过时的 软件包 描述 com.sun.jarsigner 该包包含用于定义jarsigner工具使用的签名机制的接口和类。com.sun.java.accessibility.util 提供组成Java辅助功能实用程序的接口和类的集合。com.sun.javadoc 注意:此包中的声明已被包装jdk.javadoc.doclet中的声明所取代。com.sun.jdi 这是Java调试接口(JDI)的核心包,它定义了值,类型和目标VirtualMachine本身的镜像以及自举设备。com.sun.security.auth 提供Principal的实现。com.sun.security.auth.module 提供LoginModule的实现。com.sun.tools.doclets 注意:此包中的声明已被新包jdk.javadoc.doclet中的声明所取代。com.sun.tools.doclets.standard 注意:此包中的声明已被新包jdk.javadoc.doclet中的声明所取代。com.sun.tools.javadoc 此软件包及其内容已被弃用,可能会在将来的版本中删除。java.applet 提供创建applet所需的类以及applet用于与其applet上下文进行通信的类。java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.color 提供颜色空间的类。java.awt.datatransfer 提供用于在应用程序之间和之间传输数据的接口和类。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。java.awt.image 提供创建和修改图像的类。java.awt.image.renderable 提供用于生成与渲染无关的图像的类和接口。java.beans 包含与开发 bean相关的类 - 基于JavaBeans架构的组件。java.io 通过数据流,序列化和文件系统提供系统输入和输出。java.lang 提供对Java编程语言设计至关重要的类。java.lang.reflect 提供用于获取关于类和对象的反射信息的类和接口。java.math 提供执行任意精度整数运算(BigInteger)和任意精度十进制运算(BigDecimal)的类。java.net 提供实现网络应用程序的类。java.rmi 提供RMI包。java.rmi.dgc 提供RMI分布式垃圾收集(DGC)的类和接口。java.rmi.registry 为RMI注册表提供一个类和两个接口。java.rmi.server 提供用于支持RMI服务器端的类和接口。java.security 提供安全框架的类和接口。java.security.acl 此包中的类和接口已被弃用。java.sql 提供使用Java编程语言访问和处理存储在数据源(通常是关系数据库)中的数据的API。java.util 包含集合框架,一些国际化支持类,一个服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,一个位数组和几个其他实用程序类。java.util.concurrent 实用程序类通常用于并发编程。java.util.concurrent.atomic 一个小型工具包,支持单个变量上的无锁线程安全编程。java.util.jar 提供用于读取和写入JAR(Java ARchive)文件格式的类,该文件格式基于具有可选清单文件的标准ZIP文件格式。java.util.logging 提供Java¢2平台核心日志记录工具的类和接口。java.util.zip 提供读写标准ZIP和GZIP文件格式的类。javafx.application 提供应用程序生命周期类。javafx.css 提供API,通过CSS使属性变得风格,并支持伪类状态。javafx.event 为FX事件,交付和处理提供基本框架。javafx.fxml 包含用于从标记加载对象层次结构的类。javafx.scene.control JavaFX用户界面控件(UI控件或仅控件)是JavaFX场景中的专用节点,特别适用于许多不同应用程序环境中的重用。javafx.scene.input 提供一组用于鼠标和键盘输入事件处理的类。javafx.scene.layout 提供类来支持用户界面布局。javafx.scene.media 提供用于将音频和视频集成到Java FX应用程序中的一组类。javafx.util 包含各种实用程序和助手类。javax.accessibility 定义用户界面组件与提供对这些组件的访问的辅助技术之间的合同。javax.imageio.spi 包含用于读取器,写入器,代码转换器和流以及运行时注册表的插件接口的Java Image I / O API包。javax.imageio.stream Java Image I / O API的一个封装,处理来自文件和流的低级I / O。javax.jws.soap javax.lang.model.util 协助处理 program elements及 types的工具 。javax.management 提供Java管理扩展的核心类。javax.management.loading 提供实现高级动态加载的类。javax.management.monitor 提供监视器类的定义。javax.management.openmbean 提供打开的数据类型和Open MBean描述符类。javax.management.remote.rmi RMI连接器是JMX Remote API的连接器,它使用RMI将客户端请求传输到远程MBean服务器。javax.naming 提供用于访问命名服务的类和接口。javax.net.ssl 为安全套接字包提供类。javax.security.auth 此软件包提供了认证和授权的框架。javax.security.cert 提供公钥证书类。javax.sql.rowset JDBCRowSet实现的标准接口和基类。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.table 提供处理javax.swing.JTable类和接口。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供类HTMLEditorKit和支持类用于创建HTML文本编辑器。javax.swing.tree 提供处理javax.swing.JTree类和接口。javax.tools 为可以从程序调用的工具提供接口,例如编译器。javax.xml.bind 为客户端应用程序提供运行时绑定框架,包括解组,编组和验证功能。javax.xml.stream 定义Streaming API for XML(StAX)的接口和类。jdk.nashorn.api.scripting 这个包提供了javax.script集成,这是使用Nashorn的首选方式。netscape.javascript 使Java代码能够访问Web浏览器中的JavaScript引擎和HTML DOM。org.omg.CORBA 提供OMG CORBA API与JavaORB编程语言的映射,包括ORB,它被实现为程序员可以将其用作全功能的对象请求代理(ORB)。org.omg.CORBA.portable 提供可移植性层,即一组ORB API,使一个供应商生成的代码可以在另一个供应商的ORB上运行。org.xml.sax 提供核心SAX API。org.xml.sax.helpers 提供帮助类,包括支持引导基于SAX的应用程序。 -
-
Uses of 已过时的 in com.sun.jarsigner
Classes in com.sun.jarsigner with annotations of type 已过时的 Modifier and Type Class 描述 classContentSigner已过时。此类已被弃用。interfaceContentSignerParameters已过时。此类已被弃用。 -
Uses of 已过时的 in com.sun.java.accessibility.util
Fields in com.sun.java.accessibility.util with annotations of type 已过时的 Modifier and Type Field 描述 protected static ActionListenerAWTEventMonitor. actionListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static AdjustmentListenerAWTEventMonitor. adjustmentListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static ComponentListenerAWTEventMonitor. componentListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static ComponentAWTEventMonitor. componentWithFocus不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用; 使用getComponentWithFocus方法获取焦点的组件。protected static ContainerListenerAWTEventMonitor. containerListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static FocusListenerAWTEventMonitor. focusListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static ItemListenerAWTEventMonitor. itemListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static KeyListenerAWTEventMonitor. keyListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static MouseListenerAWTEventMonitor. mouseListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static MouseMotionListenerAWTEventMonitor. mouseMotionListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static TextListenerAWTEventMonitor. textListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。protected static WindowListenerAWTEventMonitor. windowListener不推荐用于删除:此API元素将在以后的版本中被删除。此字段未使用。 -
Uses of 已过时的 in com.sun.javadoc
Classes in com.sun.javadoc with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceAnnotatedType已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceAnnotationDesc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。static interfaceAnnotationDesc.ElementValuePair已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceAnnotationTypeDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceAnnotationTypeElementDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceAnnotationValue已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceClassDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceConstructorDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceDocErrorReporter已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。classDoclet已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceExecutableMemberDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceFieldDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。classLanguageVersion已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceMemberDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceMethodDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfacePackageDoc已过时。该包中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceParameter已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceParameterizedType已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceParamTag已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceProgramElementDoc已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceRootDoc已过时。该包中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceSeeTag已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceSerialFieldTag已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceSourcePosition已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceTag已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceThrowsTag已过时。该包中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceType已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceTypeVariable已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。interfaceWildcardType已过时。该包装中的声明已被包装jdk.javadoc.doclet的声明所取代。 有关详细信息,请参阅该软件包的文档中的“ 迁移指南” 。Methods in com.sun.javadoc with annotations of type 已过时的 Modifier and Type 方法 描述 ClassDoc[]ClassDoc. importedClasses()已过时。导入声明是不应该在这里公开的实现细节。 另外,并不是所有导入的类都是通过单一类型导入的声明导入的。PackageDoc[]ClassDoc. importedPackages()已过时。导入声明是不应该在这里公开的实现细节。 此外,此方法的返回类型不允许返回所有类型导入按需的声明。 -
Uses of 已过时的 in com.sun.jdi
Classes in com.sun.jdi with annotations of type 已过时的 Modifier and Type Class 描述 classInvalidCodeIndexException已过时。不再抛出此异常classInvalidLineNumberException已过时。不再抛出此异常 -
Uses of 已过时的 in com.sun.security.auth
Classes in com.sun.security.auth with annotations of type 已过时的 Modifier and Type Class 描述 classPolicyFile不推荐用于删除:此API元素将在以后的版本中被删除。截至JDK 1.4,由sun.security.provider.PolicyFile取代。 这个类完全被弃用了。 此类可能在将来的Java SE版本中被删除。classSolarisNumericGroupPrincipal不推荐用于删除:此API元素将在以后的版本中被删除。classSolarisNumericUserPrincipal不推荐用于删除:此API元素将在以后的版本中被删除。classSolarisPrincipal不推荐用于删除:此API元素将在以后的版本中被删除。classX500Principal不推荐用于删除:此API元素将在以后的版本中被删除。Java平台中提供了一个新的X500Principal类。 这个X500Principal类完全被弃用,这里允许平滑过渡到新类。 此类可能在将来的Java SE版本中被删除。 -
Uses of 已过时的 in com.sun.security.auth.module
Classes in com.sun.security.auth.module with annotations of type 已过时的 Modifier and Type Class 描述 classSolarisLoginModule不推荐用于删除:此API元素将在以后的版本中被删除。截至JDK1.4,由com.sun.security.auth.module.UnixLoginModule替代。 这个LoginModule已经完全被废弃了,这里允许平滑过渡到新的UnixLoginModule。 此类可能在将来的Java SE版本中被删除。classSolarisSystem不推荐用于删除:此API元素将在以后的版本中被删除。替换为UnixSystem。 此类可能在将来的Java SE版本中被删除。 -
Uses of 已过时的 in com.sun.tools.doclets
Classes in com.sun.tools.doclets with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceTaglet已过时。该接口已被替换,Taglet取代。 -
Uses of 已过时的 in com.sun.tools.doclets.standard
Classes in com.sun.tools.doclets.standard with annotations of type 已过时的 Modifier and Type Class 描述 classStandard不推荐用于删除:此API元素将在以后的版本中被删除。该文件已被其替换,StandardDoclet取代。 -
Uses of 已过时的 in com.sun.tools.javadoc
Classes in com.sun.tools.javadoc with annotations of type 已过时的 Modifier and Type Class 描述 classMain已过时。此类现在已被弃用,可能会在将来的版本中删除。 有关替换功能,请参阅javax.tools.ToolProvider::getSystemDocumentationTool和javax.tools.DocumentationTool。 -
Uses of 已过时的 in java.applet
Classes in java.applet with annotations of type 已过时的 Modifier and Type Class 描述 classApplet已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。interfaceAppletContext已过时。Applet API已被弃用。 详见java.applet package documentation 。interfaceAppletStub已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。interfaceAudioClip已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。 -
Uses of 已过时的 in java.awt
Classes in java.awt with annotations of type 已过时的 Modifier and Type Class 描述 classEvent已过时。建议使用AWTEvent及其子类Fields in java.awt with annotations of type 已过时的 Modifier and Type Field 描述 static intFrame. CROSSHAIR_CURSOR已过时。由Cursor.CROSSHAIR_CURSOR取代。static intFrame. DEFAULT_CURSOR已过时。代之以Cursor.DEFAULT_CURSOR。static intFrame. E_RESIZE_CURSOR已过时。代之以Cursor.E_RESIZE_CURSOR。static intFrame. HAND_CURSOR已过时。取代Cursor.HAND_CURSOR。static intFrame. MOVE_CURSOR已过时。取代Cursor.MOVE_CURSOR。static intFrame. N_RESIZE_CURSOR已过时。由Cursor.N_RESIZE_CURSOR取代。static intFrame. NE_RESIZE_CURSOR已过时。代之以Cursor.NE_RESIZE_CURSOR。static intFrame. NW_RESIZE_CURSOR已过时。代之以Cursor.NW_RESIZE_CURSOR。protected static Cursor[]Cursor. predefined已过时。从JDK 1.7版开始,应该使用Cursor.getPredefinedCursor(int)方法。static intFrame. S_RESIZE_CURSOR已过时。替换为Cursor.S_RESIZE_CURSOR。static intFrame. SE_RESIZE_CURSOR已过时。取代Cursor.SE_RESIZE_CURSOR。static intFrame. SW_RESIZE_CURSOR已过时。代之以Cursor.SW_RESIZE_CURSOR。static intFrame. TEXT_CURSOR已过时。代之以Cursor.TEXT_CURSOR。static intFrame. W_RESIZE_CURSOR已过时。代之以Cursor.W_RESIZE_CURSOR。static intFrame. WAIT_CURSOR已过时。替换为Cursor.WAIT_CURSOR。Methods in java.awt with annotations of type 已过时的 Modifier and Type 方法 描述 booleanComponent. action(Event evt, Object what)已过时。从JDK 1.1版开始,应该在组件上注册此组件作为ActionListener,该组件将触发动作事件。voidList. addItem(String item)已过时。替换为add(String)。voidList. addItem(String item, int index)已过时。换成add(String, int)。voidBorderLayout. addLayoutComponent(String name, Component comp)已过时。替换为addLayoutComponent(Component, Object)。voidCardLayout. addLayoutComponent(String name, Component comp)已过时。替换为addLayoutComponent(Component, Object)。booleanList. allowsMultipleSelections()已过时。从JDK 1.1版开始,由isMultipleMode()替代。voidTextArea. appendText(String str)已过时。从JDK 1.1版开始,由append(String)替代。voidWindow. applyResourceBundle(String rbName)已过时。截至J2SE 1.4,由Component.applyComponentOrientation替代。voidWindow. applyResourceBundle(ResourceBundle rb)已过时。截至J2SE 1.4,由Component.applyComponentOrientation替代。RectangleComponent. bounds()已过时。从JDK 1.1版开始,由getBounds()取代。voidList. clear()已过时。从JDK 1.1版开始,由removeAll()替代。intContainer. countComponents()已过时。从JDK 1.1版开始,由getComponentCount()替换。intChoice. countItems()已过时。从JDK 1.1版开始,由getItemCount()替代。intList. countItems()已过时。从JDK 1.1版开始,由getItemCount()替代。intMenu. countItems()已过时。从JDK 1.1版开始,由getItemCount()替代。intMenuBar. countMenus()已过时。从JDK 1.1版开始,由getMenuCount()替代。voidList. delItem(int position)已过时。替换为remove(String)和remove(int)。voidList. delItems(int start, int end)已过时。从JDK 1.1版开始,未来不会公开使用。 这种方法只能作为一个包私有方法保留。voidComponent. deliverEvent(Event e)已过时。自JDK 1.1版起,由dispatchEvent(AWTEvent e)替代。voidContainer. deliverEvent(Event e)已过时。从JDK 1.1版开始,由dispatchEvent(AWTEvent e)替代voidComponent. disable()已过时。从JDK 1.1版开始,由setEnabled(boolean)替代。voidMenuItem. disable()已过时。从JDK 1.1版开始,由setEnabled(boolean)替代。voidComponent. enable()已过时。截至JDK 1.1版,由setEnabled(boolean)替换。voidComponent. enable(boolean b)已过时。从JDK 1.1版开始,由setEnabled(boolean)替代。voidMenuItem. enable()已过时。从JDK 1.1版开始,由setEnabled(boolean)代替。voidMenuItem. enable(boolean b)已过时。从JDK 1.1版开始,由setEnabled(boolean)替代。voidGraphics. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确地确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。voidPrintJob. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确地确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。RectanglePolygon. getBoundingBox()已过时。从JDK 1.1版开始,由getBounds()替代。RectangleGraphics. getClipRect()已过时。从JDK 1.1版开始,由getClipBounds()替代。CheckboxCheckboxGroup. getCurrent()已过时。从JDK 1.1版开始,由getSelectedCheckbox()替代。intFrame. getCursorType()已过时。截至JDK 1.1版,由Component.getCursor()取代。abstract String[]Toolkit. getFontList()abstract FontMetricsToolkit. getFontMetrics(Font font)已过时。从JDK 1.2版开始,由Font方法getLineMetrics。intScrollbar. getLineIncrement()已过时。从JDK 1.1版开始,由getUnitIncrement()替代。intFontMetrics. getMaxDecent()已过时。截至JDK 1.1.1版,由getMaxDescent()替代。static ComponentOrientationComponentOrientation. getOrientation(ResourceBundle bdl)已过时。从J2SE 1.4起,使用ComponentOrientation.getOrientation(java.util.Locale)。intScrollbar. getPageIncrement()已过时。从JDK 1.1版开始,由getBlockIncrement()替代。intScrollbar. getVisible()已过时。从JDK 1.1版开始,由getVisibleAmount()替代。booleanComponent. gotFocus(Event evt, Object what)已过时。从JDK 1.1版开始,由processFocusEvent(FocusEvent)替代。booleanComponent. handleEvent(Event evt)已过时。从JDK版本1.1替换为processEvent(AWTEvent)。voidComponent. hide()已过时。从JDK 1.1版开始,由setVisible(boolean)替代。voidDialog. hide()已过时。截至JDK 1.5版,由setVisible(boolean)取代。voidWindow. hide()已过时。从JDK版本1.5开始,由Window.setVisible(boolean)替代。voidTextArea. insertText(String str, int pos)已过时。从JDK 1.1版开始,由insert(String, int)取代。InsetsContainer. insets()已过时。自JDK 1.1版起,由getInsets()取代。booleanComponent. inside(int x, int y)已过时。从JDK 1.1版开始,由contains(int,int)替换。booleanPolygon. inside(int x, int y)已过时。从JDK 1.1版起,由contains(int, int)取代。booleanRectangle. inside(int X, int Y)已过时。从JDK 1.1版开始,由contains(int, int)取代。booleanComponent. isFocusTraversable()已过时。截至1.4,由isFocusable()取代。booleanList. isSelected(int index)已过时。自JDK 1.1版起,由isIndexSelected(int)取代。booleanComponent. keyDown(Event evt, int key)已过时。从JDK 1.1版开始,由processKeyEvent(KeyEvent)替换。booleanComponent. keyUp(Event evt, int key)已过时。从JDK 1.1版开始,由processKeyEvent(KeyEvent)替换。voidComponent. layout()已过时。从JDK 1.1版开始,由doLayout()替代。voidContainer. layout()已过时。从JDK 1.1版开始,由doLayout()替代。voidScrollPane. layout()已过时。从JDK 1.1版开始,由doLayout()替代。ComponentComponent. locate(int x, int y)已过时。从JDK 1.1版开始,由getComponentAt(int,int)替换。ComponentContainer. locate(int x, int y)已过时。从JDK 1.1版开始,由getComponentAt(int, int)代替。PointComponent. location()已过时。从JDK 1.1版开始,由getLocation()替代。booleanComponent. lostFocus(Event evt, Object what)已过时。从JDK 1.1版开始,由processFocusEvent(FocusEvent)替代。DimensionComponent. minimumSize()已过时。从JDK 1.1版开始,由getMinimumSize()替代。DimensionContainer. minimumSize()已过时。截至JDK 1.1版,由getMinimumSize()取代。DimensionList. minimumSize()已过时。从JDK 1.1版开始,由getMinimumSize()替代。DimensionList. minimumSize(int rows)已过时。从JDK 1.1版开始,由getMinimumSize(int)替代。DimensionTextArea. minimumSize()已过时。从JDK 1.1版开始,由getMinimumSize()替代。DimensionTextArea. minimumSize(int rows, int columns)已过时。从JDK 1.1版开始,由getMinimumSize(int, int)替代。DimensionTextField. minimumSize()已过时。从JDK 1.1版开始,由getMinimumSize()代替。DimensionTextField. minimumSize(int columns)已过时。从JDK 1.1版开始,由getMinimumSize(int)替代。booleanComponent. mouseDown(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseEvent(MouseEvent)替换。booleanComponent. mouseDrag(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseMotionEvent(MouseEvent)替换。booleanComponent. mouseEnter(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseEvent(MouseEvent)替换。booleanComponent. mouseExit(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseEvent(MouseEvent)替换。booleanComponent. mouseMove(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseMotionEvent(MouseEvent)替换。booleanComponent. mouseUp(Event evt, int x, int y)已过时。从JDK 1.1版开始,由processMouseEvent(MouseEvent)替换。voidComponent. move(int x, int y)已过时。截至JDK 1.1版,由setLocation(int, int)取代。voidRectangle. move(int x, int y)已过时。从JDK 1.1版开始,由setLocation(int, int)替代。voidComponent. nextFocus()已过时。从JDK 1.1版开始,由transferFocus()替换。booleanComponent. postEvent(Event e)已过时。从JDK 1.1版开始,由dispatchEvent(AWTEvent)替换。booleanMenuComponent. postEvent(Event evt)已过时。从JDK 1.1版开始,由dispatchEvent替代。booleanMenuContainer. postEvent(Event evt)已过时。由JDK版本1.1替换为dispatchEvent(AWTEvent)。booleanWindow. postEvent(Event e)已过时。由JDK 1.1版本替换为dispatchEvent(AWTEvent)。DimensionComponent. preferredSize()已过时。从JDK 1.1版开始,由getPreferredSize()替代。DimensionContainer. preferredSize()已过时。从JDK 1.1版开始,由getPreferredSize()替代。DimensionList. preferredSize()已过时。从JDK 1.1版开始,由getPreferredSize()替代。DimensionList. preferredSize(int rows)已过时。从JDK 1.1版开始,由getPreferredSize(int)替代。DimensionTextArea. preferredSize()已过时。截至JDK 1.1版,由getPreferredSize()取代。DimensionTextArea. preferredSize(int rows, int columns)已过时。从JDK 1.1版开始,由getPreferredSize(int, int)代替。DimensionTextField. preferredSize()已过时。从JDK 1.1版开始,由getPreferredSize()替代。DimensionTextField. preferredSize(int columns)已过时。从JDK 1.1版开始,由getPreferredSize(int)代替。protected static voidAWTKeyStroke. registerSubclass(Class<?> subclass)已过时。voidTextArea. replaceText(String str, int start, int end)已过时。从JDK 1.1版开始,由replaceRange(String, int, int)取代。voidComponent. reshape(int x, int y, int width, int height)已过时。从JDK 1.1版开始,由setBounds(int, int, int, int)替代。voidRectangle. reshape(int x, int y, int width, int height)已过时。从JDK 1.1版开始,由setBounds(int, int, int, int)替代。voidWindow. reshape(int x, int y, int width, int height)已过时。从JDK 1.1版开始,由setBounds(int, int, int, int)替代。voidComponent. resize(int width, int height)已过时。从JDK 1.1版开始,由setSize(int, int)替代。voidComponent. resize(Dimension d)已过时。从JDK 1.1版开始,由setSize(Dimension)替代。voidRectangle. resize(int width, int height)已过时。从JDK 1.1版开始,由setSize(int, int)替代。voidCheckboxGroup. setCurrent(Checkbox box)已过时。从JDK 1.1版开始,由setSelectedCheckbox(Checkbox)取代。voidFrame. setCursor(int cursorType)已过时。从JDK 1.1版开始,由Component.setCursor(Cursor)替代。voidTextField. setEchoCharacter(char c)已过时。从JDK 1.1版开始,由setEchoChar(char)替代。voidScrollbar. setLineIncrement(int v)已过时。从JDK 1.1版开始,由setUnitIncrement(int)替代。voidList. setMultipleSelections(boolean b)已过时。从JDK 1.1版开始,由setMultipleMode(boolean)替代。voidScrollbar. setPageIncrement(int v)已过时。从JDK 1.1版开始,由setBlockIncrement()取代。voidComponent. show()已过时。从JDK 1.1版开始,由setVisible(boolean)替代。voidComponent. show(boolean b)已过时。从JDK 1.1版开始,由setVisible(boolean)替代。voidDialog. show()已过时。从JDK版本1.5开始,由setVisible(boolean)替代。voidWindow. show()已过时。从JDK版本1.5开始,由Window.setVisible(boolean)替代。DimensionComponent. size()已过时。从JDK 1.1版开始,由getSize()替代。Constructors in java.awt with annotations of type 已过时的 Constructor 描述 AWTEvent(Event event)已过时。 -
Uses of 已过时的 in java.awt.color
Methods in java.awt.color with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidICC_Profile. finalize()已过时。finalize方法已被弃用。 为了执行清理而覆盖finalize子类应该修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in java.awt.datatransfer
Fields in java.awt.datatransfer with annotations of type 已过时的 Modifier and Type Field 描述 static DataFlavorDataFlavor. plainTextFlavor已过时。截至1.3。 使用DataFlavor.getReaderForText(java.awt.datatransfer.Transferable)而不是Transferable.getTransferData(DataFlavor.plainTextFlavor)。Methods in java.awt.datatransfer with annotations of type 已过时的 Modifier and Type 方法 描述 booleanDataFlavor. equals(String s)已过时。与hashCode()合同不一致,请改用DataFlavor.isMimeTypeEqual(String)。protected StringDataFlavor. normalizeMimeType(String mimeType)已过时。此方法从1.1开始就不会被此实现所调用protected StringDataFlavor. normalizeMimeTypeParameter(String parameterName, String parameterValue)已过时。此方法从1.1开始就不会被此实现所调用 -
Uses of 已过时的 in java.awt.event
Fields in java.awt.event with annotations of type 已过时的 Modifier and Type Field 描述 static intInputEvent. ALT_GRAPH_MASK已过时。建议使用ALT_GRAPH_DOWN_MASK和InputEvent.getModifiersEx()static intInputEvent. ALT_MASK已过时。建议使用ALT_DOWN_MASK和InputEvent.getModifiersEx()static intInputEvent. BUTTON1_MASK已过时。建议使用BUTTON1_DOWN_MASK和InputEvent.getModifiersEx()static intInputEvent. BUTTON2_MASK已过时。建议使用BUTTON2_DOWN_MASK和InputEvent.getModifiersEx()。 请注意,BUTTON2_MASK的值与ALT_MASK相同。static intInputEvent. BUTTON3_MASK已过时。建议使用BUTTON3_DOWN_MASK和InputEvent.getModifiersEx()。 请注意,BUTTON3_MASK与META_MASK具有相同的值。static intInputEvent. CTRL_MASK已过时。建议使用CTRL_DOWN_MASK和InputEvent.getModifiersEx()static intInputEvent. META_MASK已过时。建议使用META_DOWN_MASK和InputEvent.getModifiersEx()static intInputEvent. SHIFT_MASK已过时。建议使用SHIFT_DOWN_MASK和InputEvent.getModifiersEx()Methods in java.awt.event with annotations of type 已过时的 Modifier and Type 方法 描述 static StringKeyEvent. getKeyModifiersText(int modifiers)已过时。建议使用扩展修饰键和InputEvent.getModifiersExText(int)intInputEvent. getModifiers()已过时。建议使用扩展修饰键和InputEvent.getModifiersEx()voidKeyEvent. setModifiers(int modifiers)已过时。截至JDK1.1.4Constructors in java.awt.event with annotations of type 已过时的 Constructor 描述 KeyEvent(Component source, int id, long when, int modifiers, int keyCode)已过时。截至JDK1.1; 改用KeyEvent(Component, int, long, int, int, char) -
Uses of 已过时的 in java.awt.image
Methods in java.awt.image with annotations of type 已过时的 Modifier and Type 方法 描述 voidColorModel. finalize()已过时。finalize方法已被弃用。 为了执行清理而覆盖finalize子类应该修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。voidIndexColorModel. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in java.awt.image.renderable
Methods in java.awt.image.renderable with annotations of type 已过时的 Modifier and Type 方法 描述 voidRenderContext. concetenateTransform(AffineTransform modTransform)已过时。代之以concatenateTransform(AffineTransform)。voidRenderContext. preConcetenateTransform(AffineTransform modTransform)已过时。替换为preConcatenateTransform(AffineTransform)。 -
Uses of 已过时的 in java.beans
Classes in java.beans with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceAppletInitializer已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。Methods in java.beans with annotations of type 已过时的 Modifier and Type 方法 描述 static ObjectBeans. instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)已过时。建议使用Beans.instantiate(ClassLoader, String, BeanContext),因为Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。 -
Uses of 已过时的 in java.io
Classes in java.io with annotations of type 已过时的 Modifier and Type Class 描述 classLineNumberInputStream已过时。该类错误地假定字节充分表示字符。 从JDK 1.1开始,对字符流进行操作的首选方式是通过新的字符流类,其中包括一个用于计数行号的类。classStringBufferInputStream已过时。此类不会将字符正确转换为字节。 从JDK 1.1开始,从字符串创建流的首选方法是通过StringReader类。Methods in java.io with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidFileInputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidFileOutputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。StringDataInputStream. readLine()已过时。此方法无法将字节正确转换为字符。 从JDK 1.1开始,读取文本行的首选方式是通过BufferedReader.readLine()方法。 使用DataInputStream类读取行的程序可以转换为使用BufferedReader类替换形式的代码:
有:DataInputStream d = new DataInputStream(in);BufferedReader d = new BufferedReader(new InputStreamReader(in));StringObjectInputStream. readLine()已过时。此方法无法将字节正确转换为字符。 有关详细信息和替代方案,请参阅DataInputStream。StringByteArrayOutputStream. toString(int hibyte)已过时。此方法无法将字节正确转换为字符。 从JDK 1.1的,要做到这一点的优选方法是通过toString(String enc)方法,它需要一个编码名称参数或toString()方法,它使用平台的默认字符编码。URLFile. toURL()abstract voidObjectOutputStream.PutField. write(ObjectOutput out)已过时。此方法不会以适当的格式写入此PutField对象所包含的值,并可能导致序列化流的损坏。 写PutField数据的正确方法是通过调用ObjectOutputStream.writeFields()方法。Constructors in java.io with annotations of type 已过时的 Constructor 描述 StreamTokenizer(InputStream is)已过时。从JDK版本1.1开始,将输入流标记化的首选方法是将其转换为字符流,例如:Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r);
-
Uses of 已过时的 in java.lang
Classes in java.lang with annotations of type 已过时的 Modifier and Type Class 描述 classCompiler不推荐用于删除:此API元素将在以后的版本中被删除。JIT编译器及其技术变化太大,可以通过标准化界面有效地进行控制。 因此,许多JIT编译器实现忽略此接口,而是由特定于实现的机制(如命令行选项)控制。 此类可能在将来的Java SE版本中被删除。Fields in java.lang with annotations of type 已过时的 Modifier and Type Field 描述 protected booleanSecurityManager. inCheck不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission通话。 此字段在将来的Java SE版本中可能会被删除。static Character.UnicodeBlockCharacter.UnicodeBlock. SURROGATES_AREA已过时。取而代之的SURROGATES_AREA,使用Character.UnicodeBlock.HIGH_SURROGATES,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES,并Character.UnicodeBlock.LOW_SURROGATES。 这些常量符合Unicode标准的块定义。Character.UnicodeBlock.of(char)和Character.UnicodeBlock.of(int)方法返回标准常量。Methods in java.lang with annotations of type 已过时的 Modifier and Type 方法 描述 booleanThreadGroup. allowThreadSuspension(boolean b)已过时。此呼叫的定义取决于ThreadGroup.suspend(),已被弃用。 此外,从未指定此调用的行为。voidSecurityManager. checkAwtEventQueueAccess()不推荐用于删除:此API元素将在以后的版本中被删除。此方法最初用于检查调用线程是否可以访问AWT事件队列。 该方法已被废弃,代码应该使用SecurityManager.checkPermission(java.security.Permission)来检查AWTPermission("accessEventQueue")。 此方法在将来的Java SE版本中可能会被删除。voidSecurityManager. checkMemberAccess(Class<?> clazz, int which)不推荐用于删除:此API元素将在以后的版本中被删除。该方法依赖于调用者的堆栈深度为4,容易出错,并且不能由运行时执行。 该方法的用户应直接调用SecurityManager.checkPermission(java.security.Permission)。 此方法在将来的Java SE版本中可能会被删除。voidSecurityManager. checkMulticast(InetAddress maddr, byte ttl)已过时。请改用#checkPermission(java.security.Permission)voidSecurityManager. checkSystemClipboardAccess()不推荐用于删除:此API元素将在以后的版本中被删除。该方法最初用于检查调用线程是否可以访问系统剪贴板。 该方法已被废弃,代码应使用SecurityManager.checkPermission(java.security.Permission)来检查AWTPermission("accessClipboard")。 此方法在将来的Java SE版本中可能会被删除。booleanSecurityManager. checkTopLevelWindow(Object window)不推荐用于删除:此API元素将在以后的版本中被删除。该方法最初用于检查调用线程是否被信任以启动顶级窗口。 该方法已经过时,代码应该使用SecurityManager.checkPermission(java.security.Permission)来检查AWTPermission("showWindowWithoutWarningBanner")。 此方法在将来的Java SE版本中可能会被删除。protected intSecurityManager. classDepth(String name)不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission调用。 此方法在将来的Java SE版本中可能会被删除。protected intSecurityManager. classLoaderDepth()不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission呼叫。 此方法在将来的Java SE版本中可能会被删除。intThread. countStackFrames()不推荐用于删除:此API元素将在以后的版本中被删除。protected ClassLoaderSecurityManager. currentClassLoader()不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission通话。 此方法在将来的Java SE版本中可能会被删除。protected Class<?>SecurityManager. currentLoadedClass()不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission调用。 此方法在将来的Java SE版本中可能会被删除。protected Class<?>ClassLoader. defineClass(byte[] b, int off, int len)voidThread. destroy()不推荐用于删除:此API元素将在以后的版本中被删除。这种方法最初是为了销毁这个线程而没有任何清理。 它所持有的任何监视器都将保持锁定。 但是,该方法从未实现。 如果要实施,那么它将是Thread.suspend()的方式会是死锁的。 如果目标线程在销毁时保护关键系统资源的锁,则无法再次访问该资源。 如果另一个线程曾尝试锁定此资源,将导致死锁。 这种僵局通常表现为“冻结”过程。 有关详细信息,请参阅Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? 。 此方法在将来的Java SE版本中可能会被删除。protected voidObject. finalize()已过时。定稿机制本质上是有问题的。 定稿可能导致性能问题,死锁和挂起。 敲定错误可能导致资源泄漏; 如果不再需要,无法取消定稿; 并且对不同对象的finalize方法的调用中没有指定排序。 此外,关于定稿的时间并不保证。finalize方法可能只有在无限延迟之后才能在可终结对象上调用,如果有的话。 其实例持有非堆资源的类应提供一种方法来实现这些资源的显式释放,如果合适,它们还应实现AutoCloseable。 当对象变得不可达时,Cleaner和PhantomReference提供了更灵活和更有效的方式来释放资源。voidString. getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin)已过时。此方法无法将字符正确转换为字节。 从JDK 1.1开始,首选的方法是通过使用平台默认字符集的String.getBytes()方法。booleanSecurityManager. getInCheck()不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission调用。 此方法在将来的Java SE版本中可能会被删除。InputStreamRuntime. getLocalizedInputStream(InputStream in)不推荐用于删除:此API元素将在以后的版本中被删除。从JDK 1.1开始,将本地编码中的字节流转换为Unicode中的字符流的首选方法是通过InputStreamReader和BufferedReader类。 此方法在将来的Java SE版本中可能会被删除。OutputStreamRuntime. getLocalizedOutputStream(OutputStream out)不推荐用于删除:此API元素将在以后的版本中被删除。从JDK 1.1,将Unicode字符流转换为本地编码字节流的首选方法是通过OutputStreamWriter,BufferedWriter,和PrintWriter类。 此方法在将来的Java SE版本中可能会被删除。protected 软件包ClassLoader. getPackage(String name)已过时。如果多个类加载器彼此委托并定义具有相同包名称的类,并且一个这样的加载器依赖于getPackage的查找行为从父加载器返回一个软件包,则软件包暴露的属性可能不如预期的那样其余的程序。 例如,软件包将仅公开由父加载程序定义的package-info.class文件中的注释,即使注释存在于由子加载器定义的package-info.class文件中。 更健壮的方法是使用ClassLoader.getDefinedPackage(java.lang.String)方法,该方法为指定的类加载器返回一个软件包。static 软件包Package. getPackage(String name)已过时。如果多个类加载器彼此委托并定义具有相同包名称的类,并且一个这样的加载器依赖于getPackage的查找行为从父加载器返回一个软件包,则由软件包公开的属性可能不如预期的那样其余的程序。 例如,软件包只会暴露由父加载程序定义的package-info.class文件中的注释,即使子载入程序定义的package-info.class文件中存在注释。 更健壮的方法是使用ClassLoader.getDefinedPackage(java.lang.String)方法,该方法为指定的类加载器返回一个软件包。protected booleanSecurityManager. inClass(String name)不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission调用。 此方法在将来的Java SE版本中可能会被删除。protected booleanSecurityManager. inClassLoader()不推荐用于删除:此API元素将在以后的版本中被删除。不推荐使用这种类型的安全检查。 建议使用checkPermission调用。 此方法在将来的Java SE版本中可能会被删除。static booleanCharacter. isJavaLetter(char ch)已过时。替换为isJavaIdentifierStart(char)。static booleanCharacter. isJavaLetterOrDigit(char ch)已过时。由isJavaIdentifierPart(char)替代。static booleanCharacter. isSpace(char ch)已过时。替换为isWhitespace(char)。TClass. newInstance()已过时。此方法传播由nullary构造函数抛出的任何异常,包括已检查的异常。 使用此方法有效地绕过编译器异常检查,否则将由编译器执行。Constructor.newInstance方法通过在(已选)InvocationTargetException中包装构造函数抛出的任何异常来避免此问题。电话
可以替换clazz.newInstance()后一个调用序列被推断为能够抛出额外的异常类型clazz.getDeclaredConstructor().newInstance()InvocationTargetException和NoSuchMethodException。 这两个异常类型都是ReflectiveOperationException的子类。voidThread. resume()已过时。该方法仅供Thread.suspend()使用,由于它是死锁倾向,因此已被弃用。 有关详细信息,请参阅Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? 。voidThreadGroup. resume()已过时。该方法仅与Thread.suspend和ThreadGroup.suspend一起使用,它们都已被弃用,因为它们本质上是死锁易受影响的。 详见Thread.suspend()。static voidRuntime. runFinalizersOnExit(boolean value)不推荐用于删除:此API元素将在以后的版本中被删除。这种方法本质上是不安全的。 它可能导致在活动对象上调用finalizer,而其他线程同时操作这些对象,导致不稳定的行为或死锁。 此方法在将来的Java SE版本中可能会被删除。static voidSystem. runFinalizersOnExit(boolean value)不推荐用于删除:此API元素将在以后的版本中被删除。这种方法本质上是不安全的。 它可能导致在活动对象上调用finalizer,而其他线程同时操作这些对象,导致不稳定的行为或死锁。 此方法在将来的Java SE版本中可能会被删除。voidThread. stop()已过时。这种方法本质上是不安全的。 使用Thread.stop停止线程可以解锁所有已锁定的监视器(作为未经检查的ThreadDeath异常在堆栈中传播的自然结果)。 如果先前受这些监视器保护的任何对象处于不一致的状态,则损坏的对象将变得对其他线程可见,可能导致任意行为。stop许多用途应该由代码替代,只需修改一些变量来指示目标线程应该停止运行。 目标线程应该定期检查此变量,如果变量表示要停止运行,则以有序方式从其运行方法返回。 如果目标线程等待长时间(例如,在条件变量上),则应使用interrupt方法来中断等待。 有关详细信息,请参阅Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? 。voidThread. stop(Throwable obj)不推荐用于删除:此API元素将在以后的版本中被删除。该方法最初设计为强制线程停止并抛出给定的Throwable作为例外。 它本质上是不安全的(详见Thread.stop()),此外还可用于生成目标线程未准备处理的异常。 有关详细信息,请参阅Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? 。 此方法在将来的Java SE版本中可能会被删除。voidThreadGroup. stop()已过时。这种方法本质上是不安全的。 详见Thread.stop()。voidThread. suspend()已过时。这种方法已被弃用,因为它本身就是死锁的。 如果目标线程在挂起时保护关键系统资源的监视器上的锁定,则在目标线程恢复之前,线程不能访问该资源。 如果要恢复目标线程的线程在调用resume之前尝试锁定此监视器,resume导致死锁。 这种僵局通常表现为“冻结”过程。 有关详细信息,请参阅Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? 。voidThreadGroup. suspend()已过时。这种方法本质上是死锁的。 详见Thread.suspend()。voidRuntime. traceInstructions(boolean on)不推荐用于删除:此API元素将在以后的版本中被删除。该方法旨在控制指令跟踪。 它已经被JVM特定的跟踪机制所取代。 此方法在将来的Java SE版本中可能会被删除。voidRuntime. traceMethodCalls(boolean on)不推荐用于删除:此API元素将在以后的版本中被删除。此方法旨在控制方法调用跟踪。 它已经被JVM特定的跟踪机制所取代。 此方法在将来的Java SE版本中可能会被删除。Constructors in java.lang with annotations of type 已过时的 Constructor 描述 Boolean(boolean value)已过时。很少使用这个构造函数。 静态工厂Boolean.valueOf(boolean)通常是更好的选择,因为它可能产生明显更好的空间和时间性能。 还可以考虑使用最终的字段Boolean.TRUE和Boolean.FALSE。Boolean(String s)已过时。很少使用这个构造函数。 使用Boolean.parseBoolean(String)将字符串转换为boolean原语,或使用Boolean.valueOf(String)将字符串转换为Boolean对象。Byte(byte value)已过时。很少使用这个构造函数。 静态工厂Byte.valueOf(byte)通常是一个更好的选择,因为它可能产生明显更好的空间和时间性能。Byte(String s)已过时。很少使用这个构造函数。 使用Byte.parseByte(String)将字符串转换为byte原语,或使用Byte.valueOf(String)将字符串转换为Byte对象。Character(char value)已过时。很少使用这个构造函数。 静态工厂Character.valueOf(char)通常是一个更好的选择,因为它可能产生明显更好的空间和时间性能。Double(double value)已过时。很少使用这个构造函数。 静态工厂Double.valueOf(double)通常是更好的选择,因为它可能产生明显更好的空间和时间性能。Double(String s)已过时。很少使用这个构造函数。 使用Double.parseDouble(String)将字符串转换为double原语,或使用Double.valueOf(String)将字符串转换为Double对象。Float(double value)已过时。很少使用这个构造函数。 相反,使用静态工厂方法Float.valueOf(float)方法如下:Float.valueOf((float)value)。Float(float value)已过时。很少使用这个构造函数。 静态工厂Float.valueOf(float)通常是一个更好的选择,因为它可能产生明显更好的空间和时间性能。Float(String s)已过时。很少使用这个构造函数。 使用Float.parseFloat(String)将字符串转换为float原语,或使用Float.valueOf(String)将字符串转换为Float对象。Integer(int value)已过时。很少使用这个构造函数。 静态工厂Integer.valueOf(int)通常是一个更好的选择,因为它可能产生明显更好的空间和时间性能。Integer(String s)已过时。很少使用这个构造函数。 使用Integer.parseInt(String)将字符串转换为int原语,或使用Integer.valueOf(String)将字符串转换为Integer对象。Long(long value)已过时。很少使用这个构造函数。 静态工厂Long.valueOf(long)通常是更好的选择,因为它可能产生明显更好的空间和时间性能。Long(String s)已过时。很少使用这个构造函数。 使用Long.parseLong(String)将字符串转换为long原语,或使用Long.valueOf(String)将字符串转换为Long对象。Short(short value)已过时。很少使用这个构造函数。 静态工厂Short.valueOf(short)通常是更好的选择,因为它可能产生明显更好的空间和时间性能。Short(String s)已过时。很少使用这个构造函数。 使用Short.parseShort(String)将字符串转换为short原语,或使用Short.valueOf(String)将字符串转换为Short对象。String(byte[] ascii, int hibyte)已过时。此方法无法将字节正确转换为字符。 从JDK 1.1开始,首选的方法是通过String构造函数获取Charset,字符集名称,或者使用平台的默认字符集。String(byte[] ascii, int hibyte, int offset, int count)已过时。此方法无法将字节正确转换为字符。 从JDK 1.1开始,首选的方法是通过采用Charset,字符集名称的String构造函数,或者使用平台的默认字符集。 -
Uses of 已过时的 in java.lang.reflect
Methods in java.lang.reflect with annotations of type 已过时的 Modifier and Type 方法 描述 static Class<?>Proxy. getProxyClass(ClassLoader loader, Class<?>... interfaces)已过时。在命名模块中生成的代理类被封装,并且不能访问其模块外的代码。Constructor.newInstance将在不可访问的代理类上调用时抛出IllegalAccessException。 使用Proxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)代替创建一个代理实例。booleanAccessibleObject. isAccessible()已过时。此方法已被弃用,因为它的名称提示它检查反射对象是否可访问,当它实际指示是否抑制对Java语言访问控制的检查。 此方法可能会在调用者可访问的反射对象上返回false。 要测试此反射对象是否可访问,应使用AccessibleObject.canAccess(Object)。 -
Uses of 已过时的 in java.math
Fields in java.math with annotations of type 已过时的 Modifier and Type Field 描述 static intBigDecimal. ROUND_CEILING已过时。static intBigDecimal. ROUND_DOWN已过时。static intBigDecimal. ROUND_FLOOR已过时。static intBigDecimal. ROUND_HALF_DOWN已过时。static intBigDecimal. ROUND_HALF_EVEN已过时。static intBigDecimal. ROUND_HALF_UP已过时。static intBigDecimal. ROUND_UNNECESSARY已过时。static intBigDecimal. ROUND_UP已过时。改用RoundingMode.UP。Methods in java.math with annotations of type 已过时的 Modifier and Type 方法 描述 BigDecimalBigDecimal. divide(BigDecimal divisor, int roundingMode)已过时。应该优先使用该方法BigDecimal.divide(BigDecimal, RoundingMode)。BigDecimalBigDecimal. divide(BigDecimal divisor, int scale, int roundingMode)已过时。应该优先使用方法BigDecimal.divide(BigDecimal, int, RoundingMode),这种传统方法。BigDecimalBigDecimal. setScale(int newScale, int roundingMode)已过时。应该优先使用方法BigDecimal.setScale(int, RoundingMode),这种传统方法。 -
Uses of 已过时的 in java.net
Fields in java.net with annotations of type 已过时的 Modifier and Type Field 描述 static intHttpURLConnection. HTTP_SERVER_ERROR已过时。它是错误的,不应该存在。Methods in java.net with annotations of type 已过时的 Modifier and Type 方法 描述 static StringURLDecoder. decode(String s)已过时。结果字符串可能会因平台的默认编码而异。 而是使用decode(String,String)方法来指定编码。static StringURLEncoder. encode(String s)已过时。结果字符串可能会因平台的默认编码而异。 而是使用encode(String,String)方法来指定编码。static StringURLConnection. getDefaultRequestProperty(String key)已过时。在获得适当的URLConnection实例之后,应该使用实例特定的getRequestProperty方法。protected abstract byteDatagramSocketImpl. getTTL()已过时。使用getTimeToLive代替。byteMulticastSocket. getTTL()已过时。使用getTimeToLive方法,它返回一个int而不是一个字节 。voidMulticastSocket. send(DatagramPacket p, byte ttl)已过时。使用以下代码或其等价物:...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(P); mcastSocket.setTimeToLive(TTL); ......static voidURLConnection. setDefaultRequestProperty(String key, String value)已过时。在获得适当的URLConnection实例之后,应该使用实例特定的setRequestProperty方法。 调用此方法将不起作用。protected abstract voidDatagramSocketImpl. setTTL(byte ttl)已过时。使用setTimeToLive代替。voidMulticastSocket. setTTL(byte ttl)已过时。使用setTimeToLive方法,它使用int而不是byte作为ttl的类型。protected voidURLStreamHandler. setURL(URL u, String protocol, String host, int port, String file, String ref)已过时。使用setURL(URL,String,String,int,String,String,String,String);Constructors in java.net with annotations of type 已过时的 Constructor 描述 Socket(String host, int port, boolean stream)已过时。使用DatagramSocket代替UDP传输。Socket(InetAddress host, int port, boolean stream)已过时。使用DatagramSocket代替UDP传输。 -
Uses of 已过时的 in java.rmi
Classes in java.rmi with annotations of type 已过时的 Modifier and Type Class 描述 classRMISecurityException已过时。改用SecurityException。 应用代码不应该直接引用这个类,而且RMISecurityManager不再抛出这个子类的java.lang.SecurityException。classRMISecurityManager已过时。改用SecurityManager。classServerRuntimeException已过时。没有替换Constructors in java.rmi with annotations of type 已过时的 Constructor 描述 RMISecurityException(String name)已过时。没有替换RMISecurityException(String name, String arg)已过时。没有替换ServerRuntimeException(String s, 异常 ex)已过时。没有替换 -
Uses of 已过时的 in java.rmi.dgc
Methods in java.rmi.dgc with annotations of type 已过时的 Modifier and Type 方法 描述 static booleanVMID. isUnique()已过时。 -
Uses of 已过时的 in java.rmi.registry
Classes in java.rmi.registry with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceRegistryHandler已过时。没有替换Methods in java.rmi.registry with annotations of type 已过时的 Modifier and Type 方法 描述 RegistryRegistryHandler. registryImpl(int port)已过时。没有替换。 从Java 2平台v1.2起,RMI不再使用RegistryHandler来获取注册表的实现。RegistryRegistryHandler. registryStub(String host, int port)已过时。没有替换。 从Java 2平台v1.2起,RMI不再使用RegistryHandler获取注册表的存根。 -
Uses of 已过时的 in java.rmi.server
Classes in java.rmi.server with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceLoaderHandler已过时。没有替换classLogStream已过时。没有替换classOperation已过时。没有替换interfaceRemoteCall已过时。没有替换。classRemoteStub已过时。静态生成的存根被不推荐使用,因为存根是动态生成的。 有关动态存根生成的信息,请参阅UnicastRemoteObject。interfaceServerRef已过时。没有替换 此接口未使用,已过时。interfaceSkeleton已过时。没有替换。 在Java 2平台v1.2及更高版本中,远程方法调用不再需要骷髅。classSkeletonMismatchException已过时。没有替换。 在Java 2平台v1.2及更高版本中,远程方法调用不再需要骷髅。classSkeletonNotFoundException已过时。没有替换。 在Java 2平台v1.2及更高版本中,远程方法调用不再需要骷髅。classSocketSecurityException已过时。这个班已经过时了 改用ExportException。Methods in java.rmi.server with annotations of type 已过时的 Modifier and Type 方法 描述 voidSkeleton. dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)已过时。没有替换voidRemoteCall. done()已过时。没有替换voidRemoteRef. done(RemoteCall call)已过时。1.2样式存根不再使用这种方法。 代替使用方法的序列调用远程引用(newCall,invoke,和done),存根使用单个方法,invoke(Remote, Method, Object[], int),在远程参考来进行参数编组,执行远程方法和解组的返回值。voidRemoteCall. executeCall()已过时。没有替换static RemoteStubUnicastRemoteObject. exportObject(Remote obj)已过时。此方法已被弃用,因为它仅支持静态存根。 请改用exportObject(Remote, port)或exportObject(Remote, port, csf, ssf)。static PrintStreamLogStream. getDefaultStream()已过时。没有替换ObjectInputRemoteCall. getInputStream()已过时。没有替换StringOperation. getOperation()已过时。没有替换Operation[]Skeleton. getOperations()已过时。没有替换OutputStreamLogStream. getOutputStream()已过时。没有替换ObjectOutputRemoteCall. getOutputStream()已过时。没有替换ObjectOutputRemoteCall. getResultStream(boolean success)已过时。没有替换ObjectLoaderHandler. getSecurityContext(ClassLoader loader)已过时。没有替换static ObjectRMIClassLoader. getSecurityContext(ClassLoader loader)已过时。没有替换。 从Java 2平台v1.2开始,RMI不再使用此方法来获取类加载器的安全上下文。voidRemoteRef. invoke(RemoteCall call)已过时。1.2样式存根不再使用这种方法。 代替使用方法的序列调用远程引用(newCall,invoke,和done),存根使用单个方法,invoke(Remote, Method, Object[], int),在远程参考来进行参数编组,执行远程方法和解组的返回值。Class<?>LoaderHandler. loadClass(String name)已过时。没有替换Class<?>LoaderHandler. loadClass(URL codebase, String name)已过时。没有替换static Class<?>RMIClassLoader. loadClass(String name)已过时。替换为loadClass(String,String)方法static LogStreamLogStream. log(String name)已过时。没有替换RemoteCallRemoteRef. newCall(RemoteObject obj, Operation[] op, int opnum, long hash)已过时。1.2样式存根不再使用这种方法。 代替使用方法调用的顺序上短截线的远程引用(的newCall,invoke,和done),存根使用单个方法,invoke(Remote, Method, Object[], int),在远程参考来进行参数编组,执行远程方法和解组的返回的值。static intLogStream. parseLevel(String s)已过时。没有替换voidRemoteCall. releaseInputStream()已过时。没有替换voidRemoteCall. releaseOutputStream()已过时。没有替换static voidLogStream. setDefaultStream(PrintStream newDefault)已过时。没有替换voidLogStream. setOutputStream(OutputStream out)已过时。没有替换protected static voidRemoteStub. setRef(RemoteStub stub, RemoteRef ref)已过时。StringLogStream. toString()已过时。没有替换StringOperation. toString()已过时。没有替换voidLogStream. write(byte[] b, int off, int len)已过时。没有替换voidLogStream. write(int b)已过时。没有替换Constructors in java.rmi.server with annotations of type 已过时的 Constructor 描述 Operation(String op)已过时。没有替换SkeletonMismatchException(String s)已过时。没有替换 -
Uses of 已过时的 in java.security
Classes in java.security with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceCertificate已过时。Java平台中创建了一个新的证书处理包。 此证书界面已完全弃用,并在此允许平滑过渡到新软件包。classIdentity已过时。此类不再使用。 它的功能已经被替换为java.security.KeyStore,该java.security.cert包,java.security.Principal。classIdentityScope已过时。此类不再使用。 它的功能已经被替换为java.security.KeyStore,该java.security.cert包,java.security.Principal。classSigner已过时。此类不再使用。 它的功能已经被替换为java.security.KeyStore,该java.security.cert包,java.security.Principal。Methods in java.security with annotations of type 已过时的 Modifier and Type 方法 描述 protected abstract ObjectSignatureSpi. engineGetParameter(String param)已过时。protected abstract voidSignatureSpi. engineSetParameter(String param, Object value)已过时。static StringSecurity. getAlgorithmProperty(String algName, String propName)已过时。此方法用于返回“SUN”加密服务提供程序的主文件中的专有属性的值,以确定如何解析特定于算法的参数。AlgorithmParameters使用新的基于提供者和算法的AlgorithmParameters和KeyFactory引擎类(在J2SE版本1.2平台中引入)。ObjectSignature. getParameter(String param)已过时。doubleProvider. getVersion()已过时。voidSignature. setParameter(String param, Object value)已过时。使用setParameter。Constructors in java.security with annotations of type 已过时的 Constructor 描述 AuthProvider(String name, double version, String info)已过时。Provider(String name, double version, String info)已过时。 -
Uses of 已过时的 in java.security.acl
Classes in java.security.acl with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceAcl已过时。自1.2以来,该软件包已被java.security.Policy和相关类替代。interfaceAclEntry已过时。自1.2以来,这个软件包已经被java.security.Policy和相关的类替代了。classAclNotFoundException已过时。自1.2以来,该软件包已被java.security.Policy及相关课程所取代。interfaceGroup已过时。自1.2以来,这个软件包已经被java.security.Policy和相关的类替代了。classLastOwnerException已过时。自1.2以来,该软件包已被java.security.Policy和相关类替代。classNotOwnerException已过时。自1.2以来,该软件包已被java.security.Policy及相关课程所取代。interfaceOwner已过时。自1.2版本以来,该软件包已被java.security.Policy及相关课程所取代。interfacePermission已过时。自1.2以来,这个软件包已经被java.security.Policy和相关的类替代了。 -
Uses of 已过时的 in java.sql
Methods in java.sql with annotations of type 已过时的 Modifier and Type 方法 描述 BigDecimalCallableStatement. getBigDecimal(int parameterIndex, int scale)已过时。使用getBigDecimal(int parameterIndex)或getBigDecimal(String parameterName)BigDecimalResultSet. getBigDecimal(int columnIndex, int scale)已过时。使用getBigDecimal(int columnIndex)或getBigDecimal(String columnLabel)BigDecimalResultSet. getBigDecimal(String columnLabel, int scale)已过时。使用getBigDecimal(int columnIndex)或getBigDecimal(String columnLabel)intTime. getDate()已过时。intTime. getDay()已过时。intDate. getHours()已过时。static PrintStreamDriverManager. getLogStream()已过时。使用getLogWriterintDate. getMinutes()已过时。intTime. getMonth()已过时。intDate. getSeconds()已过时。InputStreamResultSet. getUnicodeStream(int columnIndex)已过时。使用getCharacterStream代替getUnicodeStreamInputStreamResultSet. getUnicodeStream(String columnLabel)已过时。改用getCharacterStreamintTime. getYear()已过时。voidTime. setDate(int i)已过时。voidDate. setHours(int i)已过时。static voidDriverManager. setLogStream(PrintStream out)已过时。使用setLogWritervoidDate. setMinutes(int i)已过时。voidTime. setMonth(int i)已过时。voidDate. setSeconds(int i)已过时。voidPreparedStatement. setUnicodeStream(int parameterIndex, InputStream x, int length)已过时。使用setCharacterStreamvoidTime. setYear(int i)已过时。Constructors in java.sql with annotations of type 已过时的 Constructor 描述 Date(int year, int month, int day)已过时。而是使用构造函数Date(long date)Time(int hour, int minute, int second)已过时。使用构造函数,该构造函数需要一个毫秒值来代替此构造函数Timestamp(int year, int month, int date, int hour, int minute, int second, int nano)已过时。而是使用构造函数Timestamp(long millis) -
Uses of 已过时的 in java.util
Classes in java.util with annotations of type 已过时的 Modifier and Type Class 描述 classObservable已过时。此类和Observer接口已被弃用。 由Observer和Observable支持的事件模式是非常有限的,Observable发送的通知的Observable是未指定的,状态更改不与通知一一对应。 对于更丰富的事件模型,请考虑使用java.beans软件包。 对于线程之间的可靠且有序的消息传递,请考虑使用java.util.concurrent包中的并发数据结构之一。 对于反应流样式编程,请参见FlowAPI。interfaceObserver已过时。此接口已被弃用。 有关详细信息,请参阅Observable课程。Methods in java.util with annotations of type 已过时的 Modifier and Type 方法 描述 intDate. getDate()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.DAY_OF_MONTH)替代。intDate. getDay()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.DAY_OF_WEEK)替代。intDate. getHours()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.HOUR_OF_DAY)替代。intDate. getMinutes()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.MINUTE)替代。intDate. getMonth()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.MONTH)取代。intDate. getSeconds()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.SECOND)替代。intDate. getTimezoneOffset()已过时。自JDK 1.1版起,由-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)取代。intDate. getYear()已过时。从JDK 1.1版开始,由Calendar.get(Calendar.YEAR) - 1900替代。static longDate. parse(String s)已过时。从JDK 1.1版开始,由DateFormat.parse(String s)替代。voidProperties. save(OutputStream out, String comments)已过时。如果在保存属性列表时发生I / O错误,此方法不会抛出IOException。 保存属性列表的首选方法是通过store(OutputStream out, String comments)方法或storeToXML(OutputStream os, String comment)方法。voidDate. setDate(int date)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.DAY_OF_MONTH, int date)替代。voidDate. setHours(int hours)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.HOUR_OF_DAY, int hours)替代。voidDate. setMinutes(int minutes)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.MINUTE, int minutes)替代。voidDate. setMonth(int month)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.MONTH, int month)替代。voidDate. setSeconds(int seconds)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.SECOND, int seconds)替代。voidDate. setYear(int year)已过时。从JDK 1.1版开始,由Calendar.set(Calendar.YEAR, year + 1900)替代。StringDate. toGMTString()已过时。从JDK 1.1版开始,用DateFormat.format(Date date)替换,使用GMTTimeZone。StringDate. toLocaleString()已过时。从JDK 1.1版开始,由DateFormat.format(Date date)替代。static longDate. UTC(int year, int month, int date, int hrs, int min, int sec)已过时。从JDK 1.1版开始,由Calendar.set(year + 1900, month, date, hrs, min, sec)或GregorianCalendar(year + 1900, month, date, hrs, min, sec)替换,使用UTCTimeZone,其次是Calendar.getTime().getTime()。Constructors in java.util with annotations of type 已过时的 Constructor 描述 Date(int year, int month, int date)已过时。自JDK 1.1版起,由Calendar.set(year + 1900, month, date)或GregorianCalendar(year + 1900, month, date)取代。Date(int year, int month, int date, int hrs, int min)已过时。从JDK 1.1版开始,由Calendar.set(year + 1900, month, date, hrs, min)或GregorianCalendar(year + 1900, month, date, hrs, min)替换。Date(int year, int month, int date, int hrs, int min, int sec)已过时。截至JDK 1.1版,由Calendar.set(year + 1900, month, date, hrs, min, sec)或GregorianCalendar(year + 1900, month, date, hrs, min, sec)。Date(String s)已过时。从JDK 1.1版开始,由DateFormat.parse(String s)替代。 -
Uses of 已过时的 in java.util.concurrent
Methods in java.util.concurrent with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidThreadPoolExecutor. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in java.util.concurrent.atomic
-
Uses of 已过时的 in java.util.jar
Fields in java.util.jar with annotations of type 已过时的 Modifier and Type Field 描述 static Attributes.NameAttributes.Name. EXTENSION_INSTALLATION已过时。扩展机制不再受支持。static Attributes.NameAttributes.Name. IMPLEMENTATION_URL已过时。扩展机制不再受支持。static Attributes.NameAttributes.Name. IMPLEMENTATION_VENDOR_ID已过时。扩展机制不再受支持。 -
Uses of 已过时的 in java.util.logging
Classes in java.util.logging with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceLoggingMXBean已过时。LoggingMXBean不再是platform MXBean,而是被替换成PlatformLoggingMXBean。 它不会在平台上注册MBeanServer。 改用ManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)。Fields in java.util.logging with annotations of type 已过时的 Modifier and Type Field 描述 static LoggerLogger. global已过时。此字段的初始化容易出现死锁。 该字段必须由Logger类初始化初始化,这可能会导致与LogManager类初始化的死锁。 在这种情况下,两个类初始化等待彼此完成。 获取全局记录器对象的首选方法是通过调用Logger.getGlobal()。 为了兼容Logger.getGlobal()不可用的旧JDK版本,请使用电话Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)或Logger.getLogger("global")。Methods in java.util.logging with annotations of type 已过时的 Modifier and Type 方法 描述 static LoggingMXBeanLogManager. getLoggingMXBean()已过时。java.util.logging.LoggingMXBean已被弃用,替换为java.lang.management.PlatformLoggingMXBean。 改用ManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)。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)已过时。LogRecord使用Instant值来保持纳秒分辨率的时间戳。 因此,setInstant()应优先于setMillis()。 -
Uses of 已过时的 in java.util.zip
Methods in java.util.zip with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidDeflater. finalize()已过时。finalize方法已被弃用。 为了执行清理而覆盖finalize子类应该修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidInflater. finalize()已过时。finalize方法已被弃用。 为了执行清理而覆盖finalize子类应该修改为使用替代清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidZipFile. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in javafx.application
Methods in javafx.application with annotations of type 已过时的 Modifier and Type 方法 描述 JSObjectHostServices. getWebContext() -
Uses of 已过时的 in javafx.css
Methods in javafx.css with annotations of type 已过时的 Modifier and Type 方法 描述 voidCssMetaData. set(S styleable, V value, StyleOrigin origin)已过时。 -
Uses of 已过时的 in javafx.event
Constructors in javafx.event with annotations of type 已过时的 Constructor 描述 EventType()已过时。不要使用这个构造函数,因为只有一个这样的EventType可以存在 -
Uses of 已过时的 in javafx.fxml
Methods in javafx.fxml with annotations of type 已过时的 Modifier and Type 方法 描述 static Class<?>FXMLLoader. loadType(String className)已过时。此方法现在委托给FXMLLoader.getDefaultClassLoader()。static Class<?>FXMLLoader. loadType(String packageName, String className)已过时。此方法现在委托给FXMLLoader.getDefaultClassLoader()。 -
Uses of 已过时的 in javafx.scene.control
Methods in javafx.scene.control with annotations of type 已过时的 Modifier and Type 方法 描述 static intTreeTableView. getNodeLevel(TreeItem<?> node)已过时。此方法无法正确计算从给定TreeItem到TreeTableView根的距离。 从JavaFX 8.0_20开始,正确的方法是通过TreeTableView.getTreeItemLevel(TreeItem)static intTreeView. getNodeLevel(TreeItem<?> node)已过时。此方法无法正确计算从给定TreeItem到TreeView根的距离。 从JavaFX 8.0_20开始,正确的方法是通过TreeView.getTreeItemLevel(TreeItem)protected doubleSkinBase. snapPosition(double value)已过时。替换为snapPositionX()和snapPositionY()protected doubleSkinBase. snapSize(double value)已过时。替换为snapSizeX()和snapSizeY()protected doubleSkinBase. snapSpace(double value)已过时。代之以snapSpaceX()和snapSpaceY() -
Uses of 已过时的 in javafx.scene.input
Constructors in javafx.scene.input with annotations of type 已过时的 Constructor 描述 GestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType)已过时。不要使用这个构造函数。 构造空事件。GestureEvent(EventType<? extends GestureEvent> eventType)已过时。不要使用这个构造函数。 构造空事件。 -
Uses of 已过时的 in javafx.scene.layout
Methods in javafx.scene.layout with annotations of type 已过时的 Modifier and Type 方法 描述 protected doubleRegion. snapPosition(double value)已过时。替换为snapPositionX()和snapPositionY()protected doubleRegion. snapSize(double value)已过时。由snapSizeX()和snapSizeY()取代protected doubleRegion. snapSpace(double value)已过时。代之以snapSpaceX()和snapSpaceY() -
Uses of 已过时的 in javafx.scene.media
Methods in javafx.scene.media with annotations of type 已过时的 Modifier and Type 方法 描述 StringAudioTrack. getLanguage()已过时。 -
Uses of 已过时的 in javafx.util
Methods in javafx.util with annotations of type 已过时的 Modifier and Type 方法 描述 DurationDuration. divide(Duration other)已过时。这种方法通过不考虑单位产生令人惊讶的结果。 改用Duration.divide(double)。DurationDuration. multiply(Duration other)已过时。这种方法通过不考虑单位产生令人惊讶的结果。 改用Duration.multiply(double)。 -
Uses of 已过时的 in javax.accessibility
Classes in javax.accessibility with annotations of type 已过时的 Modifier and Type Class 描述 classAccessibleResourceBundle已过时。从Java平台1.3版开始,此类已被弃用 -
Uses of 已过时的 in javax.imageio.spi
Fields in javax.imageio.spi with annotations of type 已过时的 Modifier and Type Field 描述 static Class<?>[]ImageReaderSpi. STANDARD_INPUT_TYPE已过时。而不是使用这个字段,直接创建等效的数组{ ImageInputStream.class }。static Class<?>[]ImageWriterSpi. STANDARD_OUTPUT_TYPE已过时。而不是使用这个字段,直接创建等效的数组{ ImageOutputStream.class }。Methods in javax.imageio.spi with annotations of type 已过时的 Modifier and Type 方法 描述 voidServiceRegistry. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in javax.imageio.stream
Methods in javax.imageio.stream with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidFileCacheImageInputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确地确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidFileImageInputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidFileImageOutputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理而覆盖finalize子类应该修改为使用替代的清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中的描述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidImageInputStreamImpl. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。protected voidMemoryCacheImageInputStream. finalize()已过时。finalize方法已被弃用。 为了执行清理,覆盖finalize子类应被修改为使用替代清理机制,并删除覆盖的finalize方法。 当覆盖finalize方法时,其实现必须明确确保按照super.finalize()中所述调用super.finalize() 。 有关迁移选项的更多信息,请参阅Object.finalize()的规范。 -
Uses of 已过时的 in javax.jws.soap
Classes in javax.jws.soap with annotations of type 已过时的 Modifier and Type Class 描述 interfaceInitParam已过时。interfaceSOAPMessageHandler已过时。interfaceSOAPMessageHandlers已过时。 -
Uses of 已过时的 in javax.lang.model.util
Constructors in javax.lang.model.util with annotations of type 已过时的 Constructor 描述 AbstractAnnotationValueVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。AbstractElementVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。AbstractTypeVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。ElementKindVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。ElementKindVisitor6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。ElementScanner6()已过时。第6版已经过时了 更新到访问者较新的版本级别。ElementScanner6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleAnnotationValueVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleAnnotationValueVisitor6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleElementVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleElementVisitor6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleTypeVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。SimpleTypeVisitor6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。TypeKindVisitor6()已过时。第6版已经过时了 更新到访问者较新的版本级别。TypeKindVisitor6(R defaultValue)已过时。第6版已经过时了 更新到访问者较新的版本级别。 -
Uses of 已过时的 in javax.management
Classes in javax.management with annotations of type 已过时的 Modifier and Type Class 描述 classDefaultLoaderRepositoryMethods in javax.management with annotations of type 已过时的 Modifier and Type 方法 描述 default ObjectInputStreamMBeanServer. deserialize(String className, byte[] data)已过时。使用MBeanServer.getClassLoaderRepository()获取类加载程序库,并将其用于反序列化。default ObjectInputStreamMBeanServer. deserialize(String className, ObjectName loaderName, byte[] data)已过时。使用getClassLoader获取反序列化的类加载器。default ObjectInputStreamMBeanServer. deserialize(ObjectName name, byte[] data)已过时。使用getClassLoaderFor获取适当的反序列化类加载器。voidAttributeValueExp. setMBeanServer(MBeanServer s)已过时。此方法无效。 用于获取属性值的MBean Server为QueryEval.getMBeanServer()。voidStringValueExp. setMBeanServer(MBeanServer s)已过时。voidValueExp. setMBeanServer(MBeanServer s)已过时。不需要此方法,因为ValueExp可以访问在其中它被通过使用评估的MBean服务器QueryEval.getMBeanServer()。Constructors in javax.management with annotations of type 已过时的 Constructor 描述 AttributeValueExp()已过时。使用此构造函数创建的实例不能在查询中使用。 -
Uses of 已过时的 in javax.management.loading
Classes in javax.management.loading with annotations of type 已过时的 Modifier and Type Class 描述 classDefaultLoaderRepository -
Uses of 已过时的 in javax.management.monitor
Fields in javax.management.monitor with annotations of type 已过时的 Modifier and Type Field 描述 protected intMonitor. alreadyNotified已过时。相当于Monitor.alreadyNotifieds[0]。protected StringMonitor. dbgTag已过时。没有替换 -
Uses of 已过时的 in javax.management.openmbean
Fields in javax.management.openmbean with annotations of type 已过时的 Modifier and Type Field 描述 static String[]OpenType. ALLOWED_CLASSNAMES已过时。 -
Uses of 已过时的 in javax.management.remote.rmi
Classes in javax.management.remote.rmi with annotations of type 已过时的 Modifier and Type Class 描述 classRMIIIOPServerImpl已过时。此运输已不再受支持。 -
Uses of 已过时的 in javax.naming
Fields in javax.naming with annotations of type 已过时的 Modifier and Type Field 描述 static StringContext. APPLET已过时。在构建初始上下文时,将忽略具有此名称的环境属性。 此常量最初用作属性名称,以在创建初始上下文时指定Applet以检索参数。 目前需要传递给初始上下文的任何applet属性都应该复制到环境哈希表中: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 已过时的 in javax.net.ssl
Methods in javax.net.ssl with annotations of type 已过时的 Modifier and Type 方法 描述 X509Certificate[]HandshakeCompletedEvent. getPeerCertificateChain()已过时。应该使用返回java.security.cert.Certificate数组的HandshakeCompletedEvent.getPeerCertificates()方法。X509Certificate[]SSLSession. getPeerCertificateChain()已过时。应该使用返回java.security.cert.Certificate数组的SSLSession.getPeerCertificates()方法。 -
Uses of 已过时的 in javax.security.auth
Classes in javax.security.auth with annotations of type 已过时的 Modifier and Type Class 描述 classPolicy已过时。从JDK版本1.4开始 - 由java.security.Policy替代。 java.security.Policy有一个方法:public PermissionCollection getPermissions (java.security.ProtectionDomain pd)和ProtectionDomain有一个构造函数:public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader loader, Principal[] principals)这两个API为呼叫者提供查询基于Principal权限条目的策略的方法。 -
Uses of 已过时的 in javax.security.cert
Classes in javax.security.cert with annotations of type 已过时的 Modifier and Type Class 描述 classCertificate已过时。使用java.security.cert的类。classCertificateEncodingException已过时。使用java.security.cert的类。classCertificateException已过时。使用java.security.cert的类。classCertificateExpiredException已过时。使用java.security.cert的类。classCertificateNotYetValidException已过时。使用java.security.cert的类。classCertificateParsingException已过时。使用java.security.cert的类。classX509Certificate已过时。使用java.security.cert的类。 -
Uses of 已过时的 in javax.sql.rowset
Fields in javax.sql.rowset with annotations of type 已过时的 Modifier and Type Field 描述 static booleanCachedRowSet. COMMIT_ON_ACCEPT_CHANGES已过时。因为这个字段是final(它是接口的一部分),所以它的值不能被改变。Methods in javax.sql.rowset with annotations of type 已过时的 Modifier and Type 方法 描述 voidBaseRowSet. setUnicodeStream(int parameterIndex, InputStream x, int length)已过时。getCharacterStream应该用于它的位置 -
Uses of 已过时的 in javax.swing
Classes in javax.swing with annotations of type 已过时的 Modifier and Type Class 描述 classJApplet已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。protected classJComponent.AccessibleJComponent.AccessibleFocusHandler已过时。此类不再使用或需要。java.awt.Component.AccessibleAWTComponent提供相同的功能,它在Component处理。Fields in javax.swing with annotations of type 已过时的 Modifier and Type Field 描述 protected FocusListenerJComponent.AccessibleJComponent. accessibleFocusHandler已过时。protected booleanJViewport. backingStore已过时。从Java 2平台v1.3开始protected static ComponentImageIcon. component已过时。自1.8protected static MediaTrackerImageIcon. tracker已过时。自1.8Methods in javax.swing with annotations of type 已过时的 Modifier and Type 方法 描述 voidRepaintManager. addDirtyRegion(Applet applet, int x, int y, int w, int h)已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。static JScrollPaneJTable. createScrollPaneForTable(JTable aTable)已过时。截至Swing 1.0.2版,替换为new JScrollPane(aTable)。voidJComponent. disable()已过时。截至JDK 1.1版,由java.awt.Component.setEnabled(boolean)替代。static voidFocusManager. disableSwingFocusManager()已过时。截至1.4,由KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)取代voidJComponent. enable()已过时。从JDK 1.1版开始,由java.awt.Component.setEnabled(boolean)代替。static ComponentSwingUtilities. findFocusOwner(Component c)已过时。截至1.4,由KeyboardFocusManager.getFocusOwner()取代。ComponentJMenuBar. getComponentAtIndex(int i)已过时。替换为getComponent(int i)ComponentJPopupMenu. getComponentAtIndex(int i)已过时。static KeyStrokeKeyStroke. getKeyStroke(char keyChar, boolean onKeyRelease)已过时。使用getKeyStroke(char)StringAbstractButton. getLabel()已过时。- 替换为getTextJMenuBarJInternalFrame. getMenuBar()已过时。截至Swing 1.0.3版本,由getJMenuBar()替换。JMenuBarJRootPane. getMenuBar()已过时。从Swing版本1.0.3替换为getJMenuBar()。ComponentJComponent. getNextFocusableComponent()已过时。截至1.4,由FocusTraversalPolicy取代。Object[]JList. getSelectedValues()已过时。截至JDK 1.7,由JList.getSelectedValuesList()替代StringJPasswordField. getText()已过时。从Java 2平台v1.2开始,由getPassword代替。StringJPasswordField. getText(int offs, int len)已过时。从Java 2平台v1.2开始,由getPassword。RectangleScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)已过时。截至JDK版本的Swing1.1由JScrollPane.getViewportBorderBounds()替换。voidJComponent. hide()已过时。booleanJViewport. isBackingStoreEnabled()已过时。从Java 2平台v1.3开始,由getScrollMode()代替。static booleanFocusManager. isFocusManagerEnabled()已过时。截至1.4,由KeyboardFocusManager.getDefaultFocusTraversalPolicy()取代booleanJComponent. isManagingFocus()已过时。截至1.4,由Component.setFocusTraversalKeys(int, Set)和Container.setFocusCycleRoot(boolean)取代。booleanJComponent. requestDefaultFocus()已过时。截至1.4,由FocusTraversalPolicy.getDefaultComponent(Container).requestFocus()取代voidJComponent. reshape(int x, int y, int w, int h)已过时。截至JDK 5,由Component.setBounds(int, int, int, int)取代。移动并调整此组件的大小。
voidJViewport. setBackingStoreEnabled(boolean enabled)已过时。截至Java 2平台v1.3,由setScrollMode()取代。voidAbstractButton. setLabel(String label)已过时。- 替换为setText(text)voidJInternalFrame. setMenuBar(JMenuBar m)已过时。从Swing版本1.0.3替换为setJMenuBar(JMenuBar m)。voidJRootPane. setMenuBar(JMenuBar menu)已过时。从Swing版本1.0.3替换为setJMenuBar(JMenuBar menu)。voidJComponent. setNextFocusableComponent(Component aComponent)已过时。截至1.4,由FocusTraversalPolicy取代booleanInputVerifier. shouldYieldFocus(JComponent input)voidJTable. sizeColumnsToFit(boolean lastColumnOnly)已过时。截至Swing 1.0.3版本,由doLayout()替换。 -
Uses of 已过时的 in javax.swing.plaf
Methods in javax.swing.plaf with annotations of type 已过时的 Modifier and Type 方法 描述 StringTextUI. getToolTipText(JTextComponent t, Point pt)abstract RectangleTextUI. modelToView(JTextComponent t, int pos)abstract RectangleTextUI. modelToView(JTextComponent t, int pos, Position.Bias bias)abstract intTextUI. viewToModel(JTextComponent t, Point pt)abstract intTextUI. viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn) -
Uses of 已过时的 in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic with annotations of type 已过时的 Modifier and Type Field 描述 protected KeyStrokeBasicDesktopPaneUI. closeKey已过时。截至1.3。protected KeyStrokeBasicSplitPaneUI. dividerResizeToggleKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. downKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicTabbedPaneUI. downKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicToolBarUI. downKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. endKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. homeKey已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. keyboardDownRightListener已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. keyboardEndListener已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. keyboardHomeListener已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. keyboardResizeToggleListener已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. keyboardUpLeftListener已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. leftKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicTabbedPaneUI. leftKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicToolBarUI. leftKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicDesktopPaneUI. maximizeKey已过时。截至1.3。protected KeyStrokeBasicDesktopPaneUI. minimizeKey已过时。截至1.3。protected KeyStrokeBasicDesktopPaneUI. navigateKey已过时。截至1.3。protected KeyStrokeBasicDesktopPaneUI. navigateKey2已过时。截至1.3。protected KeyStrokeBasicInternalFrameUI. openMenuKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. rightKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicTabbedPaneUI. rightKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicToolBarUI. rightKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicSplitPaneUI. upKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicTabbedPaneUI. upKey已过时。从Java 2平台v1.3开始。protected KeyStrokeBasicToolBarUI. upKey已过时。从Java 2平台v1.3开始。Methods in javax.swing.plaf.basic with annotations of type 已过时的 Modifier and Type 方法 描述 protected ActionListenerBasicSplitPaneUI. createKeyboardDownRightListener()已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. createKeyboardEndListener()已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. createKeyboardHomeListener()已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. createKeyboardResizeToggleListener()已过时。从Java 2平台v1.3开始。protected ActionListenerBasicSplitPaneUI. createKeyboardUpLeftListener()已过时。从Java 2平台v1.3开始。protected intBasicSplitPaneUI. getDividerBorderSize()已过时。从Java 2平台v1.3开始,将边框设置在分隔线上。RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)intBasicTextUI. viewToModel(JTextComponent tc, Point pt)intBasicTextUI. viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn) -
Uses of 已过时的 in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal with annotations of type 已过时的 Modifier and Type Class 描述 classMetalComboBoxUI.MetalComboPopup已过时。从Java 2平台v1.4开始。protected classMetalFileChooserUI.FileRenderer已过时。截至JDK版本9.过时的课程。protected classMetalFileChooserUI.SingleClickListener已过时。截至JDK版本9.过时的课程。Methods in javax.swing.plaf.metal with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidMetalComboBoxUI. editablePropertyChanged(PropertyChangeEvent e)已过时。从Java 2平台v1.4开始。protected voidMetalComboBoxUI. removeListeners()已过时。从Java 2平台v1.4开始。voidMetalScrollPaneUI. uninstallListeners(JScrollPane scrollPane) -
Uses of 已过时的 in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with annotations of type 已过时的 Modifier and Type 方法 描述 RectangleMultiTextUI. modelToView(JTextComponent a, int b)RectangleMultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)intMultiTextUI. viewToModel(JTextComponent a, Point b)已过时。intMultiTextUI. viewToModel(JTextComponent a, Point b, Position.Bias[] c)已过时。 -
Uses of 已过时的 in javax.swing.table
Fields in javax.swing.table with annotations of type 已过时的 Modifier and Type Field 描述 protected intTableColumn. resizedPostingDisableCount已过时。从Java 2平台v1.3开始Methods in javax.swing.table with annotations of type 已过时的 Modifier and Type 方法 描述 voidTableColumn. disableResizedPosting()已过时。从Java 2平台v1.3开始voidTableColumn. enableResizedPosting()已过时。从Java 2平台v1.3开始 -
Uses of 已过时的 in javax.swing.text
Classes in javax.swing.text with annotations of type 已过时的 Modifier and Type Class 描述 classDefaultTextUI已过时。classTableView.TableCell已过时。一个表单元格现在可以是任何View实现。Methods in javax.swing.text with annotations of type 已过时的 Modifier and Type 方法 描述 protected TableView.TableCellTableView. createTableCell(Element elem)已过时。表格单元现在可以是任意的View实现,应该由ViewFactory而不是表生成。protected intPasswordView. drawEchoCharacter(Graphics g, int x, int y, char c)protected voidPlainView. drawLine(int lineIndex, Graphics g, int x, int y)protected voidWrappedPlainView. drawLine(int p0, int p1, Graphics g, int x, int y)protected intPasswordView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)protected intPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)protected intWrappedPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)static intUtilities. drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)protected intPasswordView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)protected intPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)protected intWrappedPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)static intUtilities. getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)protected FontMetricsLabelView. getFontMetrics()已过时。在JDK中运行时,FontMetrics不用于字形渲染。static intUtilities. getPositionAbove(JTextComponent c, int offs, int x)static intUtilities. getPositionBelow(JTextComponent c, int offs, int x)static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round)static intUtilities. getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)RectangleJTextComponent. modelToView(int pos)ShapeView. modelToView(int pos, Shape a)已过时。intJTextComponent. viewToModel(Point pt)intView. viewToModel(float x, float y, Shape a)已过时。 -
Uses of 已过时的 in javax.swing.text.html
Fields in javax.swing.text.html with annotations of type 已过时的 Modifier and Type Field 描述 static StringFormView. RESET已过时。从1.3开始,值来自UIManager UIManager属性FormView.resetButtonTextstatic StringFormView. SUBMIT已过时。从1.3起,现在的值来自UIManager属性FormView.submitButtonTextMethods in javax.swing.text.html with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidHTMLEditorKit.InsertHTMLTextAction. insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)已过时。从Java 2平台v1.3开始,使用insertAtBoundary -
Uses of 已过时的 in javax.swing.tree
Methods in javax.swing.tree with annotations of type 已过时的 Modifier and Type 方法 描述 protected voidDefaultTreeSelectionModel. notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)已过时。从JDK版本1.7开始 -
Uses of 已过时的 in javax.tools
Methods in javax.tools with annotations of type 已过时的 Modifier and Type 方法 描述 static ClassLoaderToolProvider. getSystemToolClassLoader()已过时。此方法在将来的Java SE版本中可能会被删除。 使用system tool provider或service loader机制来定位系统工具以及用户安装的工具。 -
Uses of 已过时的 in javax.xml.bind
Methods in javax.xml.bind with annotations of type 已过时的 Modifier and Type 方法 描述 abstract ValidatorJAXBContext. createValidator()已过时。自JAXB2.0起 -
Uses of 已过时的 in javax.xml.stream
Methods in javax.xml.stream with annotations of type 已过时的 Modifier and Type 方法 描述 static XMLInputFactoryXMLInputFactory. newFactory()已过时。static XMLEventFactoryXMLEventFactory. newInstance(String factoryId, ClassLoader classLoader)已过时。该方法已被弃用,以保持API的一致性。 所有newInstance方法已被替换为相应的newFactory方法。 替换XMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader)方法定义行为没有变化。static XMLInputFactoryXMLInputFactory. newInstance(String factoryId, ClassLoader classLoader)已过时。该方法已被弃用,以保持API的一致性。 所有newInstance方法已被替换为相应的newFactory方法。 替换XMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader)方法定义行为没有变化。static XMLInputFactoryXMLOutputFactory. newInstance(String factoryId, ClassLoader classLoader)已过时。此方法已被弃用,因为它返回一个XMLInputFactory的实例,该实例是错误的类。 改用新的方法XMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader)。 -
Uses of 已过时的 in jdk.nashorn.api.scripting
Methods in jdk.nashorn.api.scripting with annotations of type 已过时的 Modifier and Type 方法 描述 static ObjectAbstractJSObject. getDefaultValue(JSObject jsobj, Class<?> hint)已过时。doubleAbstractJSObject. toNumber()已过时。default doubleJSObject. toNumber()已过时。doubleScriptObjectMirror. toNumber()已过时。 -
Uses of 已过时的 in netscape.javascript
Methods in netscape.javascript with annotations of type 已过时的 Modifier and Type 方法 描述 static JSObjectJSObject. getWindow(Applet applet)已过时。Applet API已被弃用。 有关详细信息,请参阅java.applet package documentation 。 -
Uses of 已过时的 in org.omg.CORBA
Classes in org.omg.CORBA with annotations of type 已过时的 Modifier and Type Class 描述 classDynamicImplementation已过时。org.omg.CORBA.DynamicImplementationinterfaceDynAny已过时。改用新的DynAnyinterfaceDynArray已过时。使用新的DynArray代替interfaceDynEnum已过时。改用新的DynEnuminterfaceDynFixed已过时。改用新的DynFixedinterfaceDynSequence已过时。改用新的DynSequenceinterfaceDynStruct已过时。改用新的DynStructinterfaceDynUnion已过时。改用新的DynUnioninterfaceDynValue已过时。改用新的DynValueclassPrincipal已过时。被CORBA弃用2.2。classPrincipalHolder已过时。被CORBA弃用2.2。Methods in org.omg.CORBA with annotations of type 已过时的 Modifier and Type 方法 描述 DynAnyORB. create_basic_dyn_any(TypeCode type)已过时。使用新的DynAnyFactory APIDynAnyORB. create_dyn_any(Any value)已过时。使用新的DynAnyFactory APIDynArrayORB. create_dyn_array(TypeCode type)已过时。使用新的DynAnyFactory APIDynEnumORB. create_dyn_enum(TypeCode type)已过时。使用新的DynAnyFactory APIDynSequenceORB. create_dyn_sequence(TypeCode type)已过时。使用新的DynAnyFactory APIDynStructORB. create_dyn_struct(TypeCode type)已过时。使用新的DynAnyFactory APIDynUnionORB. create_dyn_union(TypeCode type)已过时。使用新的DynAnyFactory APIabstract TypeCodeORB. create_recursive_sequence_tc(int bound, int offset)已过时。使用create_recursive_tc和create_sequence_tc的组合voidServerRequest. except(Any any)已过时。使用set_exception()PrincipalAny. extract_Principal()已过时。被CORBA弃用2.2。CurrentORB. get_current()已过时。使用resolve_initial_references。voidAny. insert_Principal(Principal p)已过时。被CORBA弃用2.2。voidDynamicImplementation. invoke(ServerRequest request)已过时。便携式对象适配器已弃用byte[]Principal. name()已过时。被CORBA弃用2.2。voidPrincipal. name(byte[] value)已过时。被CORBA弃用2.2。StringServerRequest. op_name()已过时。使用操作()voidServerRequest. params(NVList params)已过时。使用方法argumentsvoidServerRequest. result(Any any)已过时。使用方法set_resultConstructors in org.omg.CORBA with annotations of type 已过时的 Constructor 描述 TCKind(int _value)已过时。不要使用这个构造函数,因为这个方法应该根据OMG规范是私有的。 改用TCKind.from_int(int)。 -
Uses of 已过时的 in org.omg.CORBA.portable
Methods in org.omg.CORBA.portable with annotations of type 已过时的 Modifier and Type 方法 描述 PrincipalInputStream. read_Principal()已过时。被CORBA弃用2.2。voidOutputStream. write_Principal(Principal value)已过时。被CORBA弃用2.2。 -
Uses of 已过时的 in org.xml.sax
Classes in org.xml.sax with annotations of type 已过时的 Modifier and Type 接口 描述 interfaceAttributeList已过时。该接口已被SAX2Attributes接口所取代,其中包括Namespace支持。interfaceDocumentHandler已过时。该接口已被SAX2ContentHandler接口所取代,其中包括命名空间支持。interfaceParser已过时。该接口已被SAX2XMLReader接口所取代,其中包括命名空间支持。 -
Uses of 已过时的 in org.xml.sax.helpers
Classes in org.xml.sax.helpers with annotations of type 已过时的 Modifier and Type Class 描述 classParserFactory已过时。该类与已弃用的Parser接口配合使用。classXMLReaderFactory已过时。建议使用SAXParserFactory。
-