• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why my UI code can't work ?!

 
George Ren
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code can go through compile, but can't display properly on the emulators.
This project is about a frontend to connect to a backend database. I havn't complete the backend yet. Is this the reason that I can't get the proper display of UI?
Thank u a lot.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you answered your own question.
Here is why, in your own code.

See you try to open a connection, and catch an exception which calls destroyApp and notifyDestroyed, killing your MIDlet before it even gets to the setCurrent call.
[ February 28, 2004: Message edited by: Mark Spritzler ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!