• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A simple silly question about PNG import

 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi





regards
 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic