This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Create a card.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Create a card...." Watch "Create a card...." New topic
Author

Create a card....

kakashi blue
Greenhorn

Joined: Mar 27, 2003
Posts: 4
I currently doing a handphone game on Monopoly. Anyone know how to draw a card out with the top portion blue and the lower portion white and witht the text hello. If anyone can help, kindly email me. Or reply here.
p/s:Thanx for any help.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well with the "detail" of a Monopoly card, you will probably want to use the Canvas and the Graphics Objects. These will give you the most flexibility.
You can draw a box, fill it with your color. then put your text in there all with the Graphics Object.
Or you can create an Image that is the box background, and place text there.
Or even maybe a TiledLayer to put in that place
I think that there are other possible solutions, but my instinct would go with the Graphics object to draw.
Hope that helps you with some ideas.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
jQuery in Action, 2nd edition
 
subject: Create a card....
 
Similar Threads
HttpUnit and Jetspeed Portal
Struts Tiles
Card Shuffle Problem
WA #1.....word association
SD card and Micro SD card