Sunday, April 20, 2008

Getting Started with NetBeans 6.0 Mobility for Nokia Devices Screencast

Download screencast about developing Nokia device with NetBeans: Getting Started with NetBeans 6.0 Mobility for Nokia Devices Screencas.

This screencast provides developers with a guide to creating mobile Java™ applications for Nokia devices using NetBeans 6.0 Mobility. After showing how to download and install all the relevant tools, this screencast illustrates how to create, edit, package, and deploy a simple Java application.

Monday, January 14, 2008

Using Game Builder for Java ME development

Found a good tutorial, which provides information about developing Java ME games using the Netbeans Mobility Pack 6.0 and the Game Builder tool. The key task in this tutorial is creating a new game level. This document is designed to get you going as quickly as possible.

Wednesday, December 5, 2007

Tutorial: Using Game Builder for Java ME development


Using Game Builder for Java ME development

This tutorial provides information about developing Java ME games using the Netbeans Mobility Pack 6.0 and the Game Builder tool. The key task in this tutorial is creating a new game level. This document is designed to get you going as quickly as possible. For more information on working with NetBeans IDE, see the Support and Docs page on the NetBeans website.

NetBeans IDE 6.0 is released, FREE.


The NetBeans IDE is a free, open-source Integrated Development Environment for software developers. You get all the tools you need to create professional desktop, enterprise, web and mobile applications, in Java, C/C++ and even Ruby. The IDE runs on many platforms including Windows, Linux, Mac OS X and Solaris; it is easy to install and use straight out of the box.

The 6.0 release includes significant enhancements and new features, including a completely rewritten editor infrastructure, support for additional languages, new productivity features, and a simplified installation process that allows you to easily install and configure the IDE to meet your exact needs.

http://www.netbeans.org/

Tuesday, November 27, 2007

Getting Started with NetBeans for Nokia Devices

This screencast provides developers with a guide to creating mobile Java™ applications for Nokia devices using NetBeans and the NetBeans Mobility Pack. After showing how to download and install all the relevant tools, this screencast illustrates how to create, edit, package, and deploy a simple Java application.

Download here

Thursday, October 25, 2007

MIDP Application, Hello World 2, Using the Source Editor

1 - Choose File > New Project (Ctrl-Shift-N). Under Categories, select Mobility. Under Projects, select MIDP Application and click Next.
2 - Enter HelloWorld2 in the Project Name field. Change the Project Location to any directory on your system.
3 - Check the Set as Main Project checkbox and remove the check from the Create Hello MIDlet checkbox. Click Next.
4 - Leave the J2ME Wireless Toolkit as the selected Target Platform.
5 - Expand "Configuration templates provided by installed CLDC platforms" and J2ME Wireless Toolkit folders. Check the boxes next to each of the configurations.
The IDE will automatically creates a new project configuration for each template listed.
6 - Click Finish. The IDE creates the HelloWorld2 project folder. The project folder contains all of your sources and project metadata.

7 - Right-click the HelloWorld2 node in the Explorer window and choose New > MIDlet

8 - Enter HelloWorld2 as the MIDlet name. Click Finish. The HelloWorld2.java file is created.

9 - Double click the HelloWorld2.java file to display the source code in the Editor.

---------------------
10 - Change the code
public class HelloWorld2 extends MIDlet
to

public class HelloWorld2
extends MIDlet implements javax.microedition.lcdui.CommandListener
{
11 - Add the following text before the startApp() method:

public HelloWorld2() {
}
private void initialize() {
javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_helloTextBox());
}

public void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable
displayable) {
if (displayable == helloTextBox) {
if (command == exitCommand) {
javax.microedition.lcdui.Display.getDisplay(this).setCurrent(null);
destroyApp(true);
notifyDestroyed();
}
}

}

private javax.microedition.lcdui.TextBox get_helloTextBox() {
if (helloTextBox == null) {
helloTextBox = new javax.microedition.lcdui.TextBox(null, "Test String",120, 0x0);
helloTextBox.addCommand(get_exitCommand());
helloTextBox.setCommandListener(this);
}
return helloTextBox;
}

private javax.microedition.lcdui.Command get_exitCommand() {
if (exitCommand == null) {
exitCommand = new javax.microedition.lcdui.Command("Exit", javax.microedition.lcdui.Command.EXIT,
1);
}
return exitCommand;
}

javax.microedition.lcdui.TextBox helloTextBox;
javax.microedition.lcdui.Command exitCommand;


12 - Add a line initialize(); to the startApp() method, so it looks like the following:

public void startApp() {
initialize();
}

13 - Double click the get_helloTextBox() on the Navigator Window to involve_helloTextBox(). Replace the "test string"
code with the text of your choice. For example, "Hello World 2"

14 -
Choose Run > Run Main Project (F6) from the Run menu.

That's:



Wednesday, October 24, 2007

NetBeans IDE 6.0 Beta 2 just released


NetBeans IDE 6.0 Beta 2 just released on 23 Oct, 2007.