This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

J2me Application Icon and title bar ImageIcon  RSS feed

 
R.Joe
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i add image on the application icon and title bar icon in the J2me Midlet
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can specify the image url in the MIDlet-n attribute as the 2nd parameter. If you want to get an image to the MIDlet, you have to add it to a resource folder and add the resource folder to your jar. You can read the image when you create an instance of the Image class (Image.createImage("/image.png") ) hope this helps. Regards..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!