File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 17250
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create a card....