In this J2ME Extends Form example, we are going to discuss about form, extending form in our class and appending values to it. But first of all lets discuss about form. In general, a form is a screen and this screen can contain any type of items such as images, text and text fields to get or show values to users.
We can also set values into these forms using following syntax?
public int append(Item item)
The forgoing syntax can be used to add items into form in J2ME.
The application will look like as follow...
In this image, "My Form" is a form created by us and "Hello Item" is a item that is appended in this form using append method.
Syntax of J2ME Form Class File name AppendItem.java
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial