File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Create a card...." Watch "Create a card...." New topic

Create a card....

kakashi blue

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

Joined: Feb 05, 2001
Posts: 17276

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.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Create a card....
It's not a secret anymore!