posted 6 years ago
I don't thing the standard J2ME widget toolset includes a progress bar, although maybe a third-party package like Polish might.
If you don't have a progress control, you can always do it the old-fashioned way. Draw a rectangle to hold the bar, draw another rectangle to show percent complete, where the width of this inner rectangle is W*(pct/100), where W is the width of the outer rectangle, and "pct" is the (integral) percent figure, as in "50" for 50%.
If you don't have a progress control, you can always do it the old-fashioned way. Draw a rectangle to hold the bar, draw another rectangle to show percent complete, where the width of this inner rectangle is W*(pct/100), where W is the width of the outer rectangle, and "pct" is the (integral) percent figure, as in "50" for 50%.
An IDE is no substitute for an Intelligent Developer.
Octavian Miu
Greenhorn
Posts: 8
posted 6 years ago
thank you for the answer, but i ment to say another thing. i know how to do it regarding the graphic part. the problem is:
i have this midlet which is about 200kb and the user needs to wait a while until the midlet is loading so i lunch first this waiting screen with progress bar, the progres bar must represent the loading progress in real time, until my main screen is loaded. i want to represent the real progress, not a imaginary progress
i have this midlet which is about 200kb and the user needs to wait a while until the midlet is loading so i lunch first this waiting screen with progress bar, the progres bar must represent the loading progress in real time, until my main screen is loaded. i want to represent the real progress, not a imaginary progress
posted 6 years ago
First off, your application/MIDlet can't show a Gauge or other kind of progress bar while it is itself loading, it has to be already loaded and running for that.
For examples of the principles behind animation during long running tasks, see these two pages:
Networking, User Experience, and Threads
Using Threads in J2ME Applications
For examples of the principles behind animation during long running tasks, see these two pages:
Networking, User Experience, and Threads
Using Threads in J2ME Applications
luck, db
There are no new questions, but there may be new answers.
