• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans Midp Forms/List Question

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What's gotten into you? Could it be this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic