The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
JavaBeans™ makes it easy to reuse software components.JavaBeans™使重用软件组件变得容易。Developers can use software components written by others without having to understand their inner workings.开发人员可以使用他人编写的软件组件,而无需了解其内部工作原理。
To understand why software components are useful, think of a worker assembling a car.要理解软件组件为什么有用,请想象一个组装汽车的工人。Instead of building a radio from scratch, for example, she simply obtains a radio and hooks it up with the rest of the car.例如,她没有从头开始制造收音机,而是简单地获得一台收音机并将其与汽车的其余部分连接起来。
This trail describes JavaBeans using the following lessons:本教程介绍了使用以下课程的JavaBeans:
➤ Quick Start快速起步 provides a speedy introduction to JavaBeans by showing how to build applications with NetBeans.通过展示如何使用NetBeans构建应用程序,快速介绍了JavaBeans。
➤ Writing JavaBeans Components编写JavaBeans组件 describes the coding patterns used for bean properties, methods, and events.描述用于bean属性、方法和事件的编码模式。It also outlines the use of a 它还概述了如何使用BeanInfo
to customize the development experience in a builder tool.BeanInfo
在builder工具中定制开发体验。
➤ Advanced JavaBeans Topics高级JavaBeans主题 covers bean persistence, long term persistence, and customization.包括bean持久性、长期持久性和定制。