NetBeans MIDP Development Quick Start Guide

View: New views
1 Messages — Rating Filter:   Alert me  

NetBeans MIDP Development Quick Start Guide

by iardella@cli.di.unipi.it :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'd like to know in which manner I can change or modify the resources directory used
for static resources and in which manner I can refer them from source code.

For example if I have a /res directory in the root application dir, say myMidlet, I expect
succesfully refer its files writing simply the file name with a slash at the start.

To load an image, for example, I'd make:
[code
Image myImg = Image.createImage("/imgFileName.png");
[/code]

But this code causes an IOExpception...

Best regards, Stefano Iardella.

----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/60/mobility/quickstart.html



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!