教程0:入门
本节提供了一个快速浏览,让您和框架运行的Kuix。
它定义了组件方法Kuix使用,并会帮助您配置Kuix 与 IDE。 Then, it will provide the keys to understand the global structure of the framework through the introduction of both interface design approach and the event processor. 然后,它会提供的钥匙,通过了解双方的界面设计方法和事件处理器的推出了全球的框架结构。
Framework components 框架组件
What does the framework contains? 该框架包含了什么? What is its structure? 它的结构是什么?
Check the API Reference . 检查API参考 。
Using Kuix with Netbeans 使用Netbeans的Kuix
-
Download and install your IDE: 下载并安装您的IDE:
- NetBeans (6.1 release, with Mobility pack), 的NetBeans (6.1发行包,与移动),
- Kuix Framework and Kutil Library Kuix 框架和库季尔 库
Start installing WTK on your system. 启动WTK的安装在您的系统。
-
Open NetBeans and create a new J2ME project 打开NetBeans和创建一个新的J2ME的项目
-
Select Mobility > MIDP Application and click next 选择移动> MIDP应用程序并点击下一步
-
Set the project's name and uncheck Create Hello MIDlet and click next 设置项目的名称和取消创建您好MIDlet, 并点击下一步
-
Select the default platform and click finish 选择默认的平台,然后点击完成
-
Right click on your fresh created project and select Properties . 右键单击您的新创建的项目并选择属性 。 In the dialog window, select Libraries & Resources and click on Add Jar/Zip . 在对话窗口中,选择图书馆及资源和 Zip点击添加JAR /。 Navigate to the files (kuix.jar and kutil.jar) you have downloaded at step 1. 导航到文件(kuix.jar和kutil.jar)您在步骤1中下载。
-
Right click on your project ans select New / Java class . 右键单击您的项目答选择新建/ Java类 。
-
Edit the new class source code and make your class extends org.kalmeo.kuix.core.KuixMIDlet . 编辑新的类的源代码,使你的类扩展org.kalmeo.kuix.core.KuixMIDlet。
-
Right click on your project and select Properties . 右键单击您的项目并选择属性 。 In the dialog window, select Application descriptor and click on the MIDlet tab, then click the Add button, and fill textfileds as you can see in the below image. 在对话窗口中,选择应用程序描述符 ,然后按一下MIDlet的 标签,然后点击添加 按钮,并填写形象textfileds你可以在下面看到的。
-
Congratulation, your project is ready to work with Kuix 恭喜,您的项目准备工作Kuix
Using Kuix with EclipseME 使用EclipseME Kuix
-
Download and install your IDE: 下载并安装您的IDE:
- Sun Wireless ToolKit ( WTK 2.5.2 ), 孙无线工具包( WTK的2.5.2 ),
- Eclipse (Europa release for instance), 月食 (例如木卫二发布),
- EclipseME or another mobile extension for eclipse, EclipseME 为日食或其他移动延伸,
- Kuix Framework and Kutil Library Kuix 框架和库季尔 库
Start installing WTK on your system. 启动WTK的安装在您的系统。
Install Eclipse with the mobile extension of your choice (EclipseME for instance). 安装Eclipse与您的选择(例如EclipseME)的移动扩展。 -
Open Eclipse and create a new J2ME project 打开Eclipse,并创建一个新的J2ME的项目
-
Set the project's name and click next 设置项目的名称,点击下一步
-
On the Java Settings screen, select the Libraries tab and click add JARs... (or add External JARs... depending if you have saved Kuix and Kutil in your workspace or not). 在Java设置 屏幕上,选择Libraries选项卡 ,然后点击添加JAR文件...( 或添加外部的JAR ... 如果你有不同保存工作区或不Kuix和库季尔在你的)。 Navigate to the file you have downloaded at step 1. 导航到您在步骤1中下载的文件。
-
Export Kuix with your project to include the framework in your JAR 出口与您的项目Kuix包括在您的JAR框架
-
Congratulation, your project is ready to work with Kuix 恭喜,您的项目准备工作Kuix