• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Image as Form title

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
How could I set an image as a Form title. As per the API Form class constructor don't get any image .

Regards
Debojit
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can. When you create a Form object, you have two types of constructor to use:

Form myform = mew Form("Form Title");
Form myform = mew Form("Form Title", "/images/image.png");

From what I gather and what I've seen, the image is actually used to display the form title.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jay Sanchez:
I think you can. When you create a Form object, you have two types of constructor to use:

Form myform = mew Form("Form Title");
Form myform = mew Form("Form Title", "/images/image.png");

From what I gather and what I've seen, the image is actually used to display the form title.



I think there is no such API for setting image in MIDP2.0
I only found two APIs as follows:
Form myform = new Form("Form Title");
Form myform = new Form("Form Title", <Array of Item objects to be in form> ;
Correct me if I am wrong

Vijay
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Vijay",
Please take a closer look at the link in your previious warning.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

thanks,
Dave.
reply
    Bookmark Topic Watch Topic
  • New Topic