Re: J2ME background image



<tiff.shaw@xxxxxxxxx> wrote:
> Is there a better option available to display, say, 4/5 rows of textual
> data on top of a background image?
> I guess I could use a Canvas and drawString at a co-ordinate but that
> sounds messy.

First you should convince yourself that you really need a background
image. If you do, then Canvas is the way to go.

> .. for the gauage, yes it takes some time to return ... which is why I
> wanted a progress bar ... is there any way to force a refresh? Or is
> there another approach? Surely a progress gauage was designed for such
> scenarios?

Yes, the progress bar is designed for such scenarios... but you can't do
them in the thread that's used to call event handlers. J2ME doesn't
actually guarantee that this will break, unlike J2SE's AWT which is
quite explicit about the matter. Still, it doesn't guarantee that this
will work either. Instead, you should try starting a new Thread to do
the long work and update the Gauge occasionally.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.



Relevant Pages

  • Re: J2ME background image
    ... data on top of a background image? ... I guess I could use a Canvas and drawString at a co-ordinate but that ... wanted a progress bar ... ... Surely a progress gauage was designed for such ...
    (comp.lang.java.programmer)
  • Re: J2ME, MIDP1.0 - Text input in low level graphics api (Canvas)
    ... fonts, background image and so on... ... > Can I use those elements withiut defining them in a form? ... but not with Canvas) ...
    (comp.lang.java.programmer)
  • Re: Background image with grid
    ... do that with grid without making the image put into a grid "cell" ... Next load your background image onto the canvas. ... Then create canvas window items for your entry widgets. ...
    (comp.lang.perl.tk)
  • Re: Background image with grid
    ... do that with grid without making the image put into a grid "cell" ... Next load your background image onto the canvas. ... Then create canvas window items for your entry widgets. ...
    (comp.lang.perl.tk)
  • Re: J2ME background image
    ... > data on top of a background image? ... it lets you display a little bit of text with an image (I think the ... Surely a progress gauage was designed for such ... maybe then it will display the progress bar thing. ...
    (comp.lang.java.programmer)