• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2me Application Icon and title bar ImageIcon

 
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..
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!