Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Like putting image as a background?

 
Andres Rojas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I need put an imagen as background and in this background I need put some TextField, ComboBox etc ... but I can't make it. I need help, can you tell me how make this??
 
dila peerbux
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I am developing a MIDLET application and I want to add a background image and then add text over it.
Have you been able to do it??
If i know something i'll post it here.
Thank you.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In micro most vendors ( that I have seen ) use the Canvas (Java 2 Platform SE v1.4.2) class - see http://forum.java.sun.com/thread.jspa?threadID=5265397&tstart=165 and http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Canvas.html
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Canvas class you should refer to is

javax.microedition.lcdui.Canvas

not java.awt.Canvas

The nokia developer library is available online. It has examples and javadoc for the APIs.

http://www.forum.nokia.com/document/Java_ME_Developers_Library_v2
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!