Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Midlet to call a j2me java class

 
Mutua Kakinyi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am trying to develop an application to dispaly a form containing textfields. Lets call this java class A. First, I have a welcome midlet (call it midlet B) that I will call java class A and the textfields appear on the emulator screen. How is this possible? If midlets can call one another, then will be easy. I would just make A a midlet then I call its startup method in B.

I have tried push registry after some blog but I have no idea of its working and given-up.

I welcome anyone with suggestions or a sample code.

Mutua
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are doing it wrong. You don't need multiple midlets. All you need to do is set the current displayable to your a form instance

1) In your A which extends Form, you will need to append your TextFields to the form
2) In B#startApp you will need something like Display.getDisplay(this).setCurrent(aFormInstance);


http://developers.sun.com/mobility/learn/midp/getstart/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic