站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Wireless Java Developing with J2ME, Second Edition

Summary - Wireless Java Developing with J2ME, Second Edition

Previous Section Next Section

Summary

MIDP's main user-interface classes are based on abstractions that can be adapted to devices that have different display and input capabilities. Several varieties of prepackaged screen classes make it easy to create a user interface. Screens have a title and an optional ticker. Most importantly, screens can contain Commands, which the implementation makes available to the user. Your application can respond to commands by acting as a listener object. This chapter described TextBox, a screen for accepting user input, and Alert, a simple screen for displaying information. In the next chapter, we'll get into the more complex List and Form classes.


Previous Section Next Section