File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Why my UI code can't work ?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Why my UI code can Watch "Why my UI code can New topic

Why my UI code can't work ?!

George Ren
Ranch Hand

Joined: Aug 17, 2002
Posts: 58
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

Joined: Feb 05, 2001
Posts: 17276

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 ]

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Why my UI code can't work ?!
It's not a secret anymore!