• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans Midp Forms/List Question

 
Phil Brumby
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi wondering if someone could help me with a very simple prob

Recently stared working with Netbeans 4.1 in respect to doing some J2ME work, following a wonderfully provided currentcy converter tutorial to familarise myself with stuff.

It gets to a section about adding a midp form and list to the project and following the instructions seems to not be the way to do it, nor can i find another way to do it.

I right click on package, New file/folder yes, The New File wizard opens yes, Under Categories i click MIDP yes, but then there is no drop down list or sign of a midp form option as instructions say anywhere?

Any advice?

Thanks,
Phil.
 
Martin B.
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - the tutorial was created for version 4.0, so in 4.1 you will need to create the form manually, because in 4.1 there are no longer templates for UI components (you can use Visual Designer for the whole UI work).

Anyway to do so, just create a new Java Class and then make it to extend Form class using "extends Form" declaration. You will need to change the call to the super class constructor as well, since it does not have a default one (see javadoc for details).

The same thing you will need to repeat with CurrenciesSelector class, which should extend List (further in the tutorial).

Hope it helps.
 
Phil Brumby
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help, pulled the details from the completed tutorial files that come with it as well (good idea that).

Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic