Contents
LWUIT Developer’s Guide
Lightweight UI Toolkit
12-11-09
Contents
Preface
1. Introducing the Lightweight UI Toolkit Library
1.1 API Overview
1.1.1 Scope and Portability
1.1.1.1 Hello World Example for MIDP
1.1.2 Events and Threading
2. Using Lightweight UI Toolkit Widgets
2.1 Component
2.2 Container
2.3 Form
2.4 Create and Set Up a Form Label
2.5 Button
2.6 RadioButton
2.7 ButtonGroup
2.8 CheckBox
2.9 ComboBox
2.10 TabbedPane
2.11 TextArea
2.12 TextField
2.13 Calendar
2.14 Tickering
2.15 Bidi
3. Using Lists
3.1 Initializing a List
3.2 Creating a Model
3.2.1 ListModel
3.2.2 DefaultListModel
3.3 List Cell Renderer
3.3.1 ListCellRenderer
3.3.2 DefaultListCellRenderer
3.4 Adding Items to and Removing Items From a List
3.5 List Events
3.5.1 Fixed Selection Feature
3.6 Tickers in List
4. Table and Tree
4.1 Table
4.2 Tree
4.3 Customizing the Tree
5. Using Dialogs
5.1 Dialog Types
5.2 Creating a Dialog
5.2.1 Return Types of Show Methods
5.2.2 Non-Static Show Methods
5.2.3 Using the dispose() Method
5.2.4 Getting the User's Input from a Dialog
6. Using Layout Managers
6.1 BorderLayout
6.2 BoxLayout
6.2.1 X_AXIS
6.2.2 Y_AXIS
6.3 FlowLayout
6.4 GridLayout
6.5 GroupLayout
6.6 Coordinate Layout
6.7 Table Layout
7. Painters
7.1 Using Painter
7.2 Painter Chain
7.3 Glass Pane
8. Using the Style Object
8.1 Color
8.2 Font
8.3 Transparency
8.4 Margin and Padding
8.5 Images
8.6 Borders
8.7 Style Listener
8.8 Painters
9. LWUIT Implementation
9.1 LWUIT Class
10. Theming
10.1 Basic Theming
10.2 Look and Feel
11. Resources
11.1 Resource Elements
11.1.1 Building a Bundle
11.1.1.1 Creating a Resource
11.1.1.2 Loading a Resource
11.1.2 Image Resources
11.1.3 Indexed Images
11.1.4 Fonts
11.1.4.1 System Font
11.1.4.2 Dynamic Fonts
11.1.5 Localization (L10N)
11.1.6 Themes
11.2 The LWUIT Theme Creator
11.2.1 Images and Animations
11.2.2 Fonts
11.2.3 Localization
11.2.4 Themes
11.2.4.1 Example: Adding a New Theme
11.2.4.2 Modifying Theme Properties
11.2.4.3 Data
11.2.4.4 Customizing the Preview
11.2.4.5 Known Issues
12. Using Transitions and Animations
12.1 Animation
12.2 Motion
12.3 Transition
12.3.1 Slide Transition
12.3.2 Fade Transition
13. M3G
13.1 Using 3D
14. Logging
14.1 Writing to a Log
14.2 Showing the Log
15. Authoring Components
15.1 Painting
15.2 Sizing In Layout
15.3 Event Handling
15.4 Focus
15.5 The Painting Pipeline
15.6 Styling
15.7 Background
15.8 Animating The Component
15.9 The Custom Component
16. Portability and Performance
16.1 Introduction
16.2 Performance
16.2.1 Memory
16.2.1.1 Indexed Images
16.2.1.2 Light Mode
16.2.2 Speed
16.2.2.1 Event Dispatch Thread (EDT)
16.2.2.2 LWUIT Performance
16.3 Device Bugs And Limitations
16.3.1 Bugs
16.3.2 Limitations
16.4 Resolution Independence
16.5 Input
16.5.1 Soft Buttons
16.5.2 Back Button
16.5.3 Touch Screen Devices
16.6 Specific Device Issues
16.6.1 Motorola
16.6.2 BlackBerry
Create a .cod File
16.6.3 Nokia S40
16.6.4 Sony Ericsson
16.6.5 General Portability Tip
A. LWUIT Mini FAQ
LWUIT Developer’s Guide | 12-11-09 |
|
Copyright © 2009, Sun Microsystems, Inc. All rights reserved.