最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
J2ME MIDP Currency Converter Tutorial for NetBeans
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
Feedback http://www.netbeans.org/kb/articles/tutorial-currencyconverter-40.html
Feedback
The Currency Converter application you will build in this tutorial shows you how to:
start a j2me MIDP project
code a working j2me MIDP application, or MIDlet, using the IDE
create project configurations to test the application's performance on two different device emulators
The Currency Converter application converts amounts from one currency to two others. You can choose to display three different currencies: euros, yen, or dollars. You can also enter a value in one currency to be converted into the other selected currencies.
There are three Java source code files for the sample application:
ConverterMIDlet.java. The code for the MIDlet class.
Converter.java. A MIDP form that defines the main screen of the application as it appears on a mobile device.
Currencies Selector.java. A MIDP list that maintains the currencies and rates.
The first part of this tutorial will show you how to quickly install, run, and test the Currency Converter application, which is available as a sample project included in the IDE. In the second part of the tutorial, you will create a new project and add code to create and test the application yourself.
This tutorial should take approximately an hour to complete.
Requirements
You must have NetBeans IDE 4.0 and the NetBeans Mobility Pack 4.0 installed before you can start j2me MIDP development. See the j2me MIDP Development Downloadpage for instructions on downloading and installing the complete environment.
Installing and Testing the Sample Currency Converter Project
In this first section, you will see how quickly you can install and run a sample project on two different emulator devices.
Creating the Project Choose File > New Project. Under Categories, select Samples > Mobile. Under Projects, select Currency Converter. Click Next.
-
上一个: J2ME学习笔记(六)
-
下一个: J2ME开发工具和厂商SDK介绍
相关文章
- SolidWorks如何制作棘轮棘爪运动仿真 07-09
- solidworks如何画丝杠模型 06-28
- Mathematica动态控件Slider教程 06-12
- 如何解决SolidWorks找不到零件模型图 05-30
- solidworks弹簧怎么画 solidworks画弹簧的方法 05-23
- solidworks齿轮怎么画 solidworks齿轮画法 05-23