Skip to main content

Re: Using SVG in J2ME

1 reply [Last post]
Anonymous

SVG graphics are not widely supported on J2ME enabled mobile phones. The standard graphic format for J2ME is PNG or bitmap.
As I understand it though SVG is something that the J2ME specification is moving towards in the future (MIDP3 i think).

----- Original Message ----
From: foo shyn
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Thursday, 9 August, 2007 10:29:26 AM
Subject: Re: Using SVG in J2ME

Hi,

SVG is a type of graphic format (vector type), so i'm guessing that what
you are trying to refer to is the Canvas class, pardon me if i'm wrong.

If you're new to J2ME then perhaps it is best that you try out with the
form class first, Canvas drawing can really be a pain if you want to use
user input :p

Thanx.
FooShyn

meinterest@MOBILEANDEMBEDDED.ORG wrote:
> Dear Java Community,
>
> I m currently doing a project using J2ME and i would wish to use SVG for my UI. My current IDE is NetBeans and i understand that SVG does not support user input like text field (correct me if i m wrong). As such i was thinking of using SVG for basic menus and then using forms whenever i need input. Is this the right approach? Or can i somehow embed text field in SVG?
>
> Any help is greatly appreciated because i m really new to J2ME and mobile development. Thanks in advance!!
>
> Regards,
>
> Dexter
> [Message sent by forum member 'dexterfyp' (dexterfyp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=230104
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
>
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

____________________________________________________________________________________
Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage.
http://au.docs.yahoo.com/mail/unlimitedstorage.html

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

If you're just starting with Jva ME I'd definitely recommend sticking with the standard widget set and UI model (javax.lcdui).

However, SVG is quickly becoming an interesting alternative for creating cool looking UIs and graphics on mobile devices. JSR 226 is becoming available on many new devices and it is a key component of MSA (JSR 248).

You're right that the current version of SVG Tiny and therefore JSR 226 don't support certain widgets like TextField out of the box. You will need to add code to your application to add this functionality to an SVG element.

The good news is that we are working on making some of the basic widgets available in open source. I have no date when these will be ready but it will happen fairly soon.

In the meantime, if you want to get a feel for SVG I recommend you check out the SVGDemo and SVGContactList code in our ME Application Developers project:

https://meapplicationdevelopers.dev.java.net/demo_box.html

For a general introduction in SVG and JSR 226 see:

https://meapplicationdevelopers.dev.java.net/phoneme_ui_labs.html

Hope this helps,

-- Terrence

Terrence Barr
Evangelist, Java Mobile & Embedded Community
Sun Microsystems, Germany
www.mobileandembedded.org