Re: J2ME background image
- From: "Jakob Bieling" <argfhesNGtzkQBGarg@xxxxxxxxx>
- Date: Thu, 28 Jul 2005 14:03:28 +0200
<tiff.shaw@xxxxxxxxx> wrote in message
news:1122551275.814196.70670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I'm trying to create a small J2ME app which displays some text on top
> of a background image.
>
> The text part is easy - I use a form and some StringItems ... but when
> I add an image using
> form.append(image)
> then the image gets put underneath the previous item.
>
> Is there a simple way to just set a background image? (surely it must
> be a common thing?)
This is not possible using Forms.
> -=-=-
> I also wanted to show a progress bar but when I do
> setCurrent(gauge);
> getSomeDataRemotely();
> setCurrent(form);
> then the progress bar never gets displayed ... but if I comment out
> setCurrent(form);
> then it does get displayed!!! This seems illogical!
Depends on how long getSomeDataRemotely() needs. If it completes in
an instant, you might not see the 'gauge' Displayable. If it takes time
to complete, the request might be delayed and will not be processed,
because you are constantly doing stuff. From the docs for setCurrent:
"Requests that a different Displayable object be made visible on the
display. The change will typically not take effect immediately. It may
be delayed so that it occurs between event delivery method calls,
although it is not guaranteed to occur before the next event delivery
method is called. The setCurrent() method returns immediately, without
waiting for the change to take place."
hth
--
jb
(reply address in rot13, unscramble first)
.
- Follow-Ups:
- Re: J2ME background image
- From: tiff . shaw
- Re: J2ME background image
- References:
- J2ME background image
- From: tiff . shaw
- J2ME background image
- Prev by Date: J2ME background image
- Next by Date: Re: inhibiting comment reflow
- Previous by thread: J2ME background image
- Next by thread: Re: J2ME background image
- Index(es):
Relevant Pages
|