tailieunhanh - Introduction to java programming: Chapter 26 - Internationalization

Introduction to java programming: Chapter 26 - Internationalization's Objectives is to describe Java's internationalization features; to construct a locale with language, country, and variant; to display date and time based on; to display numbers, currencies, and percentages based on locale. | Chapter 26 Internationalization Chapter 16 Applets and Multimedia Chapter 24 Multithreading Chapter 18 Binary I O Chapter 25 Networking Chapter 16 Applets and Multimedia Chapter 26 Internationalization Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 1 Objectives To describe Java s internationalization features . To construct a locale with language country and variant . To display date and time based on locale . To display numbers currencies and percentages based on locale . To develop applications for international audiences using resource bundles . To specify encoding schemes for text I O . Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 Java s International Support 1. Use Unicode 2. Provide the Locale class to encapsulate information about a specific locale. A Locale object determines how locale-sensitive information such as date time and number is displayed and how locale-sensitive operations such as sorting strings are performed. 3. Use the ResourceBundle class to separate locale-specific information such as status messages and the GUI component labels from the program. The information is stored outside the source code and can be accessed and loaded dynamically at runtime from a ResourceBundle rather than hard-coded into the program. Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All 3 rights reserved. .