JAVA 7正式版发布新特性一览表
Swing
新增JLayer 类,是一个灵活而且功能强大的Swing组件修饰器,使用方法:How to Decorate Components with JLayer.
Nimbus Look and Feel 外观从com.sun.java.swing 包移到javax.swing 包中,详情:javax.swing.plaf.nimbus.
更轻松的重量级和轻量级组件的混合。
支持透明窗体以及非矩形窗体的图形界面,请看How to Create Translucent and Shaped Windows。
JColorChooser 类新增HSV tab.
网络
新增URLClassLoader.close 方法,请看Closing a URLClassLoader.
支持Sockets Direct Protocol (SDP) 提供高性能网络连接,详情请看Understanding the Sockets Direct Protocol.
集合
新增TransferQueue 接口,是BlockingQueue 的改进版,实现类为LinkedTransferQueue.
RIA/发布
拖拽的小程序使用一个默认或者定制的标题进行修饰,详情:Requesting and Customizing Applet Decoration in Draggable Applets.
JNLP 文件做了如下方面的增强,详情请看JNLP File Syntax:
The os attribute in the information and resources elements can now contain specific versions of Windows, such as Windows Vista or Windows 7.
Applications can use the install attribute in the shortcut element to specify their their desire to be installed. Installed applications are not removed when the Java Web Start cache is cleared, but can be explicitly removed using the Java Control Panel.
Java Web Start applications can be deployed without specifying the codebaseattribute; see Deploying Without Codebase
可直接在HTML 中嵌入JNLP 文件:Embedding JNLP File in Applet Tag.
可在JavaScript 代码中检查Applet 是否已经加载完成:Handling Initialization Status With Event Handlers.
可在Applet 从快捷方式启动或者拖出浏览器时对窗口样式和标题进行控制:Requesting and Customizing Applet Decoration in Developing Draggable Applets.
XML
包含 Java API for XML Processing (JAXP) 1.4.5, 支持Java Architecture for XML Binding(JAXB) 2.2.3, 和Java API for XML Web Services (JAX-WS) 2.2.4.
本文出自 “小叶残风” 博客
补充:软件开发 , Java ,