Monday, November 4, 2013

J2ME syllabus


Starting net beans

1.        J2ME overview :
2.        j2me overview ppt
·         Java 2 Micro Edition and the World of Java
·         Inside J2ME
·         J2ME Wireless Devices.
·          
2.       Small computing Technology:   Wireless Technology
3.       Radio data networks
4.       Microwave technology
5.       Mobile radio networks
6.       Messaging
7.       Personal digital assistants
UNIT-II
8.       J2me architecture and development environment
9.       J2me architecture
10.   Small computing device requirements
11.   Run-time environment
12.   MIDlet programming
13.   Java language for J2ME
14.   J2ME software development kits
15.   Hello world style
16.   Multiple MIDlets in a MIDlet suite
17.   J2me wireless toolkit
18.   The reality in a j2me world
19.   Best practices :
20.   COMMANDS
21.   Items
22.   Event processing
23.   User interfaces
24.   Display class
25.   The palm os emulator
26.   Command class
27.   Item class
28.   Exception handling
29.   Screen class
30.   Alert class


31.   Form class
32.   Item class
33.   List class

34.   Text box
35.   Ticker class
36.   Canvas
37.   User interactions
38.   Graphics

39.   Clipping regions
40.   Animation

Record management system
41.   Record storage

43.   Records
ByteArrayInputStream ppt
44.   Enumeration

45.   Sorting records
46.   Searching records
JDBC
48.   The concept of JDBC
49.   JDBC Driver types
50.   Jdbc packages
51.   Overview of the jdbc process
52.   Database connection
53.   Statement objects
54.   Result set
55.   Transaction processing
56.   Metadata
57.   Data types
58.   Exceptions
Jdbc and Embedded sql
59.   Model programs
60.   Tables
61.   Indexing
62.   Inserting data into tables
63.   Selecting data from a table
64.   Metadata
65.   Updating tables
66.   Deleting data form a table
67.   Joining tables
68.   Calculating data
69.   Grouping and ordering data
70.   Sub queries VIEWs
Generic Connection Framework
71.   The connection
72.   Hypertext Transfer Protocol
73.   Communication management Using HTTP commands
74.   Session management
75.   Transmit as a Backgroup Process



starting j2me netbeans








Java ME MIDP Development Quick Start Guide
This tutorial guides you through the basic steps of using NetBeans IDE to create a Java™ Platform, Micro Edition (Java™ ME platform), Mobile Information Device Profile (MIDP) application and is designed to get you started with mobile application development as quickly as possible. The tutorial takes you through some of the basic steps of working with the project system. We show you two ways to create a Java ME MIDP project named "MyHello" that displays the text "Make My Day" in a device emulator. This tutorial prepares you to use other IDE features for developing CLDC/MIDP applications.
Note: If you are using NetBeans IDE 7.3 or 7.3.1, refer to the NetBeans IDE 7.3 Java ME MIDP Development Quick Start Guide.
Contents
Requirements
To complete this tutorial, you need the following software and resources:
Software or Resource
Version Required
Version 7.4
Version 7
Depends on the operating system
Important: The table below lists versions of Oracle Java ME SDK required for particular platforms.
Platform
SDK Version Required
Microsoft Windows
Mac OS X
Linux
Setting Up the IDE with Oracle Java ME SDK (Windows only)
Important: This section applies to Windows platforms only.
To set up NetBeans IDE with the Oracle Java ME SDK for the Windows platform, you need to:
  • install Oracle Java ME SDK
  • activate the Java ME feature in NetBeans IDE
  • install the Oracle Java ME Platform SDK in NetBeans IDE
To install Oracle Java ME SDK:
  1. Go to the Java ME SDK download page.
  2. Click the Accept License Agreement option.
  3. Download the oracle-jmesdk-3-4-rr-win32-bin.exe installer file and save it to any location on your computer.
  4. Double-click the installer file to run the installer, and follow the instructions.
    When the installation is complete, the Java (TM) ME Platform SDK 3.4 Device Manager icon ( Java (TM) ME Platform SDK 3.2 Device Manager icon) appears in the Windows system tray.
To activate the Java ME feature:
  1. Choose Tools > Plugins from the main IDE's toolbar.
  2. In the Plugins dialog box, click the Installed tab and select Java ME in the list of available features.
Plugins dialog box
  1. Click Activate.
  2. At the Welcome panel of the Installer dialog box, click Activate.
Installer dialog box
  1. When the activation is successfully completed, click Finish.
  2. Click Close to close the Plugins dialog box.
To install the Oracle Java ME Platform:
  1. Choose Tools > Java Platforms.
    The Java Platform Manager dialog box displays.
Name and Location panel
  1. Click Add Platform.
  2. In the Select Platform Type of the Add Java Platform wizard, select Java ME CLDC Platform Emulator and click Next.
    The IDE displays the Choose directory to search for platforms dialog box.
  3. Select the directory you installed the Java ME SDK Platform to (for example, C:\Java_ME_Platform_SDK_3.4) and click Open.
  4. In the Platform Folders panel of the Add Java Platform wizard, ensure the platform you selected in the previous step is chosen and click Next.
  5. As soon as the IDE detects the platform, click Finish in the Detected Platforms panel of the the Add Java Platform wizard.
J2ME Platform detected
The Oracle Java ME Platform is now registered in the Netbeans IDE.
J2ME Platform registered
  1. In the Java Platform Manager dialog box, click Close.
Now your NetBeans IDE is set up for mobile development.
Creating a MIDP Application Using the Source Editor
Using the Source Code Editor, you manually create the code for your MIDlets. Creating code in the Source Code Editor gives you more flexibility when editing the code, and enables you to insert preprocessor code blocks. You are going to create a MyHello application using the New Project and New File wizards, and complete the code using the Source Editor.
Creating a New Java ME MIDP Project
  1. Choose File > New Project. Under Categories, select Java ME. Under Projects, select Mobile Application and click Next.
  2. Enter MyHelloMIDlet in the Project Name field (note that MID is in upper case letters). Specify the Project Location. We refer to this directory as $PROJECTHOME in this tutorial.
  3. Deselect the Create Default Package and Main Executable Class checkbox and click Next.
  4. Select the default emulator platform and use the remaining defaults. Click Finish.
    The IDE creates the 
    $PROJECTHOME/MyHelloMIDlet project folder. The project folder contains all of your sources and project metadata, such as the project Ant script.
  5. Right-click the MyHelloMIDlet node in the Projects window and choose New > MIDlet.
  6. Enter HelloMIDlet as the MIDlet name (note that "MID" is not in upper case letters by default). Click Finish.
    The 
    HelloMIDlet.java file is created.
  7. Double-click the HelloMIDlet.java file to display the source code in the IDE's Editor window.
  8. Click in the Source Editor and change public class HelloMIDlet extends MIDlet to
9.  public class HelloMIDlet
10.extends MIDlet implements javax.microedition.lcdui.CommandListener
{
  1. Add the following text before the startApp() method:
12.    private void initialize() {
13.        javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_helloTextBox());
14.    }
15. 
16.    public void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable) {
17.        if (displayable == helloTextBox) {
18.            if (command == exitCommand) {
19.                javax.microedition.lcdui.Display.getDisplay(this).setCurrent(null);
20.                destroyApp(true);
21.                notifyDestroyed();
22.            }
23.        }
24.    }
25. 
26.    private javax.microedition.lcdui.TextBox get_helloTextBox() {
27.        if (helloTextBox == null) {
28.            helloTextBox = new javax.microedition.lcdui.TextBox(null, "Hello Test Code", 120, 0x0);
29.            helloTextBox.addCommand(get_exitCommand());
30.            helloTextBox.setCommandListener(this);
31.        }
32.        return helloTextBox;
33.    }
34. 
35.    private javax.microedition.lcdui.Command get_exitCommand() {
36.        if (exitCommand == null) {
37.            exitCommand = new javax.microedition.lcdui.Command("Exit", javax.microedition.lcdui.Command.EXIT,
38.                    1);
39.        }
40.        return exitCommand;
41.    }
42.    javax.microedition.lcdui.TextBox helloTextBox;
    javax.microedition.lcdui.Command exitCommand;
  1. Add a line initialize(); to the startApp() method, so it looks like the following:
44.  public void startApp() {
45.initialize();
}
Editing the Java Source Code
Now let's add some text for our MIDlet to display.
In the get_helloTextBox() method, replace the example Hello Test Code code with the text of your choice (for example,Make My Day.).
Note: For a complete guide to using code assistance features, customization options, and navigation capabilities of the NetBeans IDE's Java Editor see Code Assistance in the NetBeans IDE Java Editor.
Compiling and Running the Project
Choose Run > Run Project (MyHelloMIDlet) from the main IDE's toolbar. Follow the progress of the project compilation in the Output window. Note that the HelloMIDlet.java file is built before it is executed. A device emulator opens to display the results of the executed MIDlet and displays the text you entered in the source code.
'Make my day' message in Java ME SDK default emulator
To close the MIDlet and the emulator window, choose Application > Exit in the emulator window.
Creating a MIDP Application Using the Visual Mobile Designer
The NetBeans IDE provides a wizard that enables you to quickly create a MIDP project. When creating the project, you can choose to develop your application in the Visual Mobile Designer (VMD) or in the Source Code Editor. Using the VMD gives you the ability to visually plan out the flow of the application and design the screens the application uses. The designer automatically creates the code for the application as changes are saved on the design canvas.
Important: To run the Visual Mobile Designer in the IDE you need to install the Visual Mobile Designer plugin from the Update Center as follows:
  1. Choose Tools > Plugins from the main menu.
  2. On the Available Plugins tab of the Plugins dialog box, select Visual Mobile Designer and click Install.
  3. At the Welcome page of the Installer dialog box, click Next.
  4. At the License Agreement page, read the license agreements associated with the plugin. If you agree to the terms of all of the license agreements, click the appropriate option and then click Install.
  5. (Optional) Select the Run in the Background option to run the installation in the background.
  6. When the installation process is complete, click Finish.
  7. In the Plugins dialog box, click Close.
Creating a MIDP/CLDC Application
  1. Choose File > New Project (Ctrl+Shift+N). Under Categories, select Java ME. Under Projects, select Mobile Application and click Next.
  2. Enter MyHello in the Project Name field. Use the default Project Location, or change it to the directory you prefer on your system. In this tutorial we refer to this directory as $PROJECTHOME.
  3. Leave the Create Default Package and Main Executable Class check box selected. Click Next.
  4. Select the default as the emulator platform and use the remaining defaults. Click Finish.
  5. The IDE creates the $PROJECTHOME/MyHello project folder. The project folder contains all of your sources and project metadata, such as the project Ant script. The application itself is displayed in the Flow Design window of the Visual Mobile Designer.
Flow view of Hello Midlet in IDE
Note: For a complete description of the available palette components, please refer to the Visual Mobile Designer Palette Reference.
Editing the Java Source Code
Now let's edit the text displayed by the MIDlet.
  1. Under HelloMIDlet.java click Screen to switch to the Screen View displaying the Device Screen, which is the only screen available in the application.
  2. Click the Hello World! message in the Device Screen. In the Properties window click the Hello World! text to change the welcome message text and press Enter. In this example we typed Make my day.
The text 'Make my day' is typed in the text field of the Properties window.
  1. The Screen View displays a preview of the text you enter in the Text field.
The text 'Make my day' is visible in Device Screen preview in the VMD's Screen view.
Compiling and Running the Project
  1. Choose Run > Run Project (MyHello) from the main IDE's toolbar. Follow the progress of the project compilation in the Output window. Note that the HelloMIDlet.java file is built before it is executed. A device emulator opens to display the results of the executed MIDlet. The device emulator launches the MIDlet and displays the text you entered in the source code.
You can specify the emulator to run the MIDlet on by right-clicking the project node and selecting Run With.. from the contextual menu. The JavaMEPhone1 available in Java ME SDK 3.4 is shown below.
'Make my day' displayed in Java ME SDK default phone emulator
  1. In the emulator window, choose Application > Exit to close the MIDlet and the emulator window.

Next Steps