Work with Picture + Label

10 views
Skip to first unread message

Wolverine

unread,
Jan 5, 2010, 5:18:08 PM1/5/10
to J4ME
Picture pic = new Picture();
pic.setImage("/img/google.png");
append(pic);

Label lbl = new Label();
lbl.setLabel("Google");
append(lbl);


How is http://photoload.ru/data/93/3a/ef/933aef03173f263ee5b7eb84a5dd19e1.png

How I would like to http://photoload.ru/data/91/ae/48/91ae48805e8e96055d454f043054059b.png


Sorry for my english and no thorough search

Damjan Malis

unread,
Jan 5, 2010, 5:38:42 PM1/5/10
to j4...@googlegroups.com
I don't want to discard J4ME, but you might consider looking at LWUIT:

https://lwuit.dev.java.net/
http://lwuit.blogspot.com/
http://forums.java.net/jive/forum.jspa?forumID=139&start=0



--
You received this message because you are subscribed to the Google Groups "J4ME" group.
To post to this group, send email to j4...@googlegroups.com.
To unsubscribe from this group, send email to j4me+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/j4me?hl=en.




Amit S

unread,
Jan 6, 2010, 9:53:48 AM1/6/10
to J4ME
Hi,

this stuff can be done by editing the 'Label' class itself directly.
Add your code in paint() method in Label class to add image before any
labels..


On Jan 6, 3:18 am, Wolverine <zhukov.ale...@gmail.com> wrote:
> Picture pic = new Picture();
> pic.setImage("/img/google.png");
>  append(pic);
>
> Label lbl = new Label();
> lbl.setLabel("Google");
> append(lbl);
>

> How ishttp://photoload.ru/data/93/3a/ef/933aef03173f263ee5b7eb84a5dd19e1.png
>
> How I would like tohttp://photoload.ru/data/91/ae/48/91ae48805e8e96055d454f043054059b.png

rafa

unread,
Jan 6, 2010, 11:57:05 AM1/6/10
to J4ME
Please check the following threads:
http://groups.google.com/group/j4me/browse_thread/thread/59fcd040065b9986
http://groups.google.com/group/j4me/browse_thread/thread/245a9e72c9c81d75
http://groups.google.com/group/j4me/browse_thread/thread/3925002995b8172a


On Jan 5, 7:38 pm, Damjan Malis <damjan.ma...@gmail.com> wrote:
> I don't want to discard J4ME, but you might consider looking at LWUIT:
>

> https://lwuit.dev.java.net/http://lwuit.blogspot.com/http://forums.java.net/jive/forum.jspa?forumID=139&start=0


>
> On Tue, Jan 5, 2010 at 11:18 PM, Wolverine <zhukov.ale...@gmail.com> wrote:
> > Picture pic = new Picture();
> > pic.setImage("/img/google.png");
> >  append(pic);
>
> > Label lbl = new Label();
> > lbl.setLabel("Google");
> > append(lbl);
>
> > How is
> >http://photoload.ru/data/93/3a/ef/933aef03173f263ee5b7eb84a5dd19e1.png
>
> > How I would like to
> >http://photoload.ru/data/91/ae/48/91ae48805e8e96055d454f043054059b.png
>
> > Sorry for my english and no thorough search
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "J4ME" group.
> > To post to this group, send email to j4...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > j4me+uns...@googlegroups.com <j4me%2Bunsu...@googlegroups.com>.

Reply all
Reply to author
Forward
0 new messages