Java 中的 dt.jar 文件的功能是什么?
what is the functionality of dt.jar file in Java?
我想知道位于 jdk/lib 文件夹中 java 中的 dt.jar 文件的功能。我已经阅读了 oracle 官方文档,但无法理解他们在下面给出的谈话
"dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDEs) how to display the Java components and how to let the developer customize them for an application."
有人能给我解释一下吗?
提前致谢。
dt.jar
库被 IDE 应用程序用来帮助设计 Swing GUI。
因此,它在 设计时 很有用,并且不会在 运行时.
包含
该 jar 包含 BeanInfo 类 Swing 组件,以及代表这些组件的图像。
摘自 Java Examples in a Nutshell,第 3 版 一书(第 15.4 章:自定义事件),作者 David Flanagan :
This BeanInfo class specifies a number of pieces of information for
our bean:
- An icon that represents the bean.
- A BeanDescriptor object, which includes a reference to a Customizer class for the bean. We'll see an implementation of this class later
in the chapter.
- A list of the supported properties of the bean, along with a short description of each one. Some beanbox tools (but not Sun's beanbox)
display these strings to the user in some useful way.
- A method that returns the most commonly customized property of the bean; this is called the "default" property.
- A reference to a PropertyEditor class for one of the properties.
这有助于 IDEs 使用这些 bean 组件提供有用的图形设计工具:
您可以在这里找到更多信息:Bean Customization
我想知道位于 jdk/lib 文件夹中 java 中的 dt.jar 文件的功能。我已经阅读了 oracle 官方文档,但无法理解他们在下面给出的谈话
"dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDEs) how to display the Java components and how to let the developer customize them for an application."
有人能给我解释一下吗?
提前致谢。
dt.jar
库被 IDE 应用程序用来帮助设计 Swing GUI。
因此,它在 设计时 很有用,并且不会在 运行时.
包含该 jar 包含 BeanInfo 类 Swing 组件,以及代表这些组件的图像。
摘自 Java Examples in a Nutshell,第 3 版 一书(第 15.4 章:自定义事件),作者 David Flanagan :
This BeanInfo class specifies a number of pieces of information for our bean:
- An icon that represents the bean.
- A BeanDescriptor object, which includes a reference to a Customizer class for the bean. We'll see an implementation of this class later
in the chapter.- A list of the supported properties of the bean, along with a short description of each one. Some beanbox tools (but not Sun's beanbox)
display these strings to the user in some useful way.- A method that returns the most commonly customized property of the bean; this is called the "default" property.
- A reference to a PropertyEditor class for one of the properties.
这有助于 IDEs 使用这些 bean 组件提供有用的图形设计工具:
您可以在这里找到更多信息:Bean Customization