This guide helps developers migrate Java applets, standalone applications, Java Web Start applications and development tools from version 1.3 and 1.4 of the Java platform to version 5.0.
Tutorial Details:
1.1.1 MouseEvent.MOUSE_LAST
As of 1.4, the value of static final field MOUSE_LAST in class java.awt.event.MouseEvent changed to
507. In previous versions, the value was 506.
Because compilers hard-code static final values at compile-time, code that refers to MOUSE_LAST and that
was compiled under 1.3 retains the old value. Such code needs to be recompiled to work properly in 5.0.
1.1.2 AWT Focus Changes
Most developers of AWT 1.3 applications saw incompatibilities when migrating to 1.4, so it is a good idea to verify
the focus-behavior of your 1.3 applications in 5.0. The general issues are summarized here; windows-specific
issues are in the next section. For details on these issues and the architecture changes that led to them, see
The AWT Focus Subsystem.
1. The default focus traversability for all Components in 5.0 is true. Previously, some Components (in particular,
all lightweights), had a default focus traversability of ‘false’.
Note: Despite this change, the DefaultFocusTraversalPolicy for all AWT Containers preserves the
traversal order of previous releases.
2. A request to focus a non-focus traversable (i.e., non-focusable) Component is denied in 5.0. Previously, such
requests were granted.
3. In 5.0, Window.toFront() and Window.toBack() perform no operation if the Window is not visible.
Previously, the behavior was platform-dependent.
4. Focus traversal keys (in most cases this means the TAB key) are now consumed, which can cause problems if
a program depends on a key listener being notified of these key events. Previously, AWT components saw these
events and had an opportunity to consume them before AWT initiated focus traversal. To avoid focus traversal
keys being consumed.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: J2SE Platform Migration Guide (pdf)
View Tutorial: J2SE Platform Migration Guide (pdf)
Related
Tutorials:
JavaWorld Developer
Tools Guide: IDE
JavaWorld Developer
Tools Guide: IDE |
JavaWorld Developer
Tools Guide: Testing Tools
JavaWorld Developer
Tools Guide: Testing Tools |
JavaWorld Developer
Tools Guide: Compiler, Code Management
JavaWorld Developer
Tools Guide: Compiler, Code Management |
JavaWorld Developer
Tools Guide
JavaWorld Developer
Tools Guide |
JavaWorld Developer
Tools Guide: Virtual Machine
JavaWorld Developer
Tools Guide: Virtual Machine |
Joott Quick Start Guide
Joott Quick Start Guide
JooTemplates is a templating system to generate business documents, such as forms, mailings and reports. It is being developed with the following aims |
PDFTextStream v1.1.2 Released; Fast Java PDF Text Extraction
PDFTextStream is the ideal solution for Java applications and J2EE web services that need to rapidly and accurately extract text and document metadata from PDF files. |
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET |
JDBC RowSet Implementations Tutorial (PDF)
This tutorial explains how to use the standard JDBC RowSet implementations that are provided as part of J2SE 5.0. Get up to speed with each RowSet definition and benefit from improved scalability and robustness. |
Using JConsole to Monitor Applications
JConsole is the Java Monitoring and Management Console, a new graphical tool shipped in J2SE JDK 5.0. This article describes how JConsole can be used to observe information about an application running on the Java platform, with an overview of the J2SE 5. |
Tiger and Beyond, the Future of the Java Platform
Part Two of an interview with Sun Microsystems' Sun Fellow, Graham Hamilton, explores Java 2 Platform, Standard Edition 5.0 (J2SE 5.0) and the future of the Java language. |
The SATSA Developer's Guide
Describes how to use the SATSA APIs in MIDP applications. It includes lucid explanations and example code that illustrate how to communicate with a smart card and how to use cryptographic services. It is based on the SATSA Reference Implementation 1.0. |
Five Reasons to Move to the J2SE 5 Platform
Five important reasons to move to the Java 2 Platform, Standard Edition (J2SE platform) 5.0, supported by data and references to prove that the 5.0 release will reduce development and runtime costs. |
Migrating From Microsoft Windows to the Sun Java Desktop System (pdf)
System administrators interested in migrating from a Microsoft Windows operating system to the Sun Java Desktop System can refer to this Sun technical white paper, which gives step-by-step migration procedures and a description of the interoperability be |
Domain Registration Guide
Domain Registration Guide
Domain Name Registrations
Domain Name Registration Guide
This guide is a must for any one wants to register domains. |
StelsCSV v2.2 - JDBC driver for CSV files
*StelsCSV* is a JDBC driver that allows to perform SQL queries and other JDBC operations on text files (CSV, tab-separated, fixed length etc). Using this driver, you can easily create a simple database consisting of plain text files. |
J2SE Platform Migration Guide (pdf)
This guide helps developers migrate Java applets, standalone applications, Java Web Start applications and development tools from version 1.3 and 1.4 of the Java platform to version 5.0. |
Sun Studio 10 Documentation Online
Full documentation for the Sun Studio 10 compilers and tools is now available on the Sun Developer's Portal. |
News: World Records Broken with Sun Studio 10 Software and the Solaris 10 OS
Sun submits new performance world record for Sun Studio 10 compilers and the Solaris 10 operating system. |
Workload Consolidation Using Solaris Containers on UltraSPARC Platform-Based Sun Fire Servers (pdf)
This Technical Brief demonstrates how Solaris Containers can be deployed onto a midrange Sun Fire server based on the UltraSPARC platform. |
|
|
|