Learn CODENAME-ONE with Real Code Examples
Updated Nov 23, 2025
Installation Setup
Install Java Development Kit (JDK) 11 or higher
Install preferred IDE (IntelliJ, Eclipse, NetBeans)
Install Codename One plugin for the IDE
Create a new Codename One project via IDE wizard
Use Codename One simulator and build server to run/test apps
Environment Setup
Install JDK 11+
Install preferred IDE and Codename One plugin
Set up project with Codename One wizard
Configure build server credentials
Run app locally in simulator and on devices
Config Files
codenameone_settings.properties - project configuration
src/ - Java/Kotlin source code
lib/ - external libraries
theme/ - UI themes
build/ - output binaries from build server
Cli Commands
Codename One IDE plugin commands for build and deployment
Invoke cloud build server for iOS/Android
Simulator run for local testing
Generate certificates for iOS signing
Export app bundle for app stores
Internationalization
Use resource bundles for multiple languages
Localize dates, numbers, and text
Support right-to-left languages
Dynamic language switching possible
Maintain separate theme/layouts for different locales
Accessibility
Supports screen readers
Keyboard navigation for desktop/web
Accessible UI components
Follow mobile accessibility guidelines
Test accessibility on all platforms
Ui Styling
UI themes using Codename One Designer
Cross-platform layout and component styling
Responsive UI with flexible layouts
Custom component styling via CSS-like syntax
Platform-specific styling handled automatically
State Management
Frontend state via Codename One components
Backend logic via Java/Kotlin
Persistent state using storage APIs or SQLite
Event-driven UI updates
Optional integration with cloud/state services
Data Management
Local storage via SQLite or JSON files
Cloud sync via REST or GraphQL
Device API access through Codename One wrappers
Offline-first data handling
Secure storage for sensitive information