Sun Java Toolkit 1.0.1 for CDC: Frequently Asked Questions

January 2007  
  1. When will the CDC Toolkit be supported on platforms other than Windows?

    Sun is currently working on providing support for the CDC Toolkit on Linux. Sun plans to include Linux support in a future release of the toolkit.

  2. If this toolkit is written in Java, why is it not available on other platforms?

    Although the user interface of the CDC Toolkit is written in Java SE, the product contains a substantial amount of platform-specific native code, including a full implementation of a Java ME Virtual Machine. The native code requires a separate effort to port, test, and maintain for each platform.

  3. Which issue does the CDC Toolkit 1.0.1 release address?

    This release of the toolkit addresses daylight saving time changes mandated in the United States. The United States has planned a change to its Daylight Savings Time (DST) observance beginning in 2007. The Energy Policy Act of 2005 mandates that DST will start on the second Sunday in March and end on the first Sunday in November. In 2007, the start and stop dates will be March 11 and November 4, respectively. These dates are different from previous DST start and stop dates. In 2006, the dates were the first Sunday in April (April 2, 2006) and the last Sunday in October (October 29, 2006).

    This release updates the DST rules in the virtual machine (VM) so that time changes are handled correctly. For more information, see U.S.Daylight Saving Time Changes in 2007.

  4. What is the difference between the Sun Java™ Toolkit for CDC and the Sun Java Wireless Toolkit for CLDC?

    The Sun Java Toolkit for CDC provides a set of tools for developing applications on top of the CDC platform. This includes Foundation Profile (FP), Personal Basis Profile (PBP), and Advanced Graphics User Interface (AGUI). The Sun Java Wireless Toolkit for CLDC provides a set of tools for developing applications on top of the CLDC/MIDP platform.

  5. What are the differences between the CDC APIs and CLDC APIs?

    The CDC and CLDC APIs are very different. The CLDC APIs are designed around very small resource configurations and are not Java SE compatible. The CDC APIs are designed around more moderate memory constraints and the core libraries are compatible with Java SE APIs.

  6. Can I migrate my code from the Java SE platform to CDC?

    Because CDC includes the core application support APIs from Java SE software version 1.4, migrating code from a Java SE application environment to a CDC application environment is possible.

  7. Can I run my MIDlets in the CDC toolkit?

    No. The CDC toolkit does not support the MID Profile.

  8. What are the graphical user interface options for CDC?

    The basic CDC profiles offer different GUI options. Foundation Profile has no GUI support and can be used for "headless" device scenarios or for supporting a device with a proprietary GUI. Personal Basis Profile provides just enough AWT functionality to support lightweight components. AGUI (JSR 209) provides Swing UI components.

  9. What is an Xlet?

    The Xlet application programming model is very similar to the applet programming model. Xlets are loaded into an Xlet runner and controlled through a life cycle interface. This is similar to how an applet is loaded and run inside a browser. The main difference is that the Xlet programming model does not have implicit API requirements like java.applet, which allows it to be used in a greater variety of product scenarios.

  10. What is the security model for CDC?

    CDC uses the same policy-based security model that the Java SE platform provides. This gives an application fine-grained control over the access and use of its external interfaces.

  11. Where can I find out more about Java ME and CDC?

    See here.

  12. I'm trying to implement a standard dialog box using JOptionPane in my CDC project. The AGUI specification says that all dialog boxes are modal, but in my project JOptionPane displays non-modal behavior. What is the explanation for this behavior?

    The AGUI specification states that:

    "All dialogs are modal. Each showXxxDialog method blocks the current thread until the user's interaction is complete." (from the JOptionPane class description)

    However, in the Restrictions section of the description, this statement is qualified as follows:

    "When AGUI is implemented on a profile with limited support for top-level heavyweight containers (such as Personal Basis Profile), then implementations of JOptionPane will use only lightweight containers to display dialogs. As a result, calls to showXXXDialog(...) will delegate to their showInternalXXXDialog(...) counterparts."

    As a result of the AGUI implementation in the CDC Toolkit being based on PBP, event delivery to UI components is not blocked when a JOptionPane is displayed.

  13. After creating a project, where do I find it?

    The location of your new project is listed in the Project Properties dialog box.

  14. How do I add source code to a new project?

    You can use a source code editor of your choice, for example, the NetBeans™ integrated development environment with the NetBeans Mobility Pack for CDC.

  15. If I select a device, then run another project, why is the device different than the one I specified?

    If you open or run another project, the default device setting for the new project overrides the toolbar setting. You can set the device and run it again.

  16. Why do colors in drawings not always come out exactly as I specified?

    By default, the rendering system uses anti-aliasing, which makes the graphics look smooth and pleasing to the eye. As a consequence, colors may be a blend of the surroundings. To draw using exact colors, set RenderingHints.VALUE_ANTIALIAS_OFF.

  17. I have another question, and I can't find the answer here.

Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve
Java 8 banner (182)