| Author |
A simple silly question about PNG import
|
Vinicius Souza
Ranch Hand
Joined: May 18, 2011
Posts: 45
|
|
Hi ppls! Im using Netbeans to work on a J2ME project and Ive tryed a lot but I cant find how to import a PNG image to my project, its for use on a splash screen. How can I do it?
Thanks in advance!
|
Java is the best (I love C too) heehhh
|
 |
Gopinath Karyadath
Ranch Hand
Joined: Oct 14, 2009
Posts: 87
|
|
hi
regards
|
 |
Vinicius Souza
Ranch Hand
Joined: May 18, 2011
Posts: 45
|
|
Gopinath Karyadath wrote:
hi
regards
Humm, thanks, but thats not my doubt. I need to know how to import a PNG image to a J2ME Netbeans project, so that PNG will be packed with deployed application. I tryed to add but theres a lot of options of adding a file but PNG.
|
 |
Walter Gabrielsen Iii
Ranch Hand
Joined: Apr 09, 2011
Posts: 158
|
|
You need to register a folder with your project. I forgot exactly how it goes, but I think it was:
1. Right-click your project in the "Projects" side-pane and choose "Properties" from the pop-up menu.
2. One of the screens has buttons like: "add library" and "add folder" -- choose add folder.
3. Create a new folder in your project directory and select it.
Now you can add files, such as PNG images, from your computer into that new folder and they will be bundled with your application.
|
 |
Vinicius Souza
Ranch Hand
Joined: May 18, 2011
Posts: 45
|
|
Hi friends of JavaRanch, thanks for try to help-me!
My solutions for this problem was as follow:
1-Click with right mouse button on your application Package -> New -> Java Package
2-So, if your package name is mypackage you should put mypackage.resource
3-Using windows explorer find this folder on your HD and put all of your resourses in.
'
worked for me!
Hope this help someone ;D
|
 |
 |
|
|
subject: A simple silly question about PNG import
|
|
|