2025-05-23

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.

 

本文出自 “小葉殘風” 博客

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *