• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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.
 
Did you just should on me? You should read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic