Is there a blackbox package for drawing cards?

hi I am a new learner here.

I want to do a mobile phone card game using J2ME. I wonder is there a blackbox package that allow me to draw 52 cards for my mobile card game with drawing myself.

Drawing 52 different cards using coding is real pain.(I dont like to repeat 52 times myself)

I could have spend those time doing other stuff.

eh?
a card is just a border, 1 or more symbols and one or more numbers.
it’s a simple methods that just receives those arguments and use them to make a lookup in an array or likewise…
hardly something you’d want to use a 3rd party library for.

ermm I have no idea what u mean. :stuck_out_tongue: ???

Something like:


void drawCard(Graphics g, int value, int suit)

The function draws the card according to the value and suit variables. There’s no need to write 52 functions!

shmoove

PS: In case it’s not clear, that’s a function you would need to write yourself, not one that already exists.

So that means I have to draw out using pure coding?? :o There is no actual package available?? :stuck_out_tongue:

I don’t know why you’re so surprised. Do you know many languages that have special libraries to draw cards? I haven’t heard of any.

And the code wouldn’t even be too complicated. A lookup table for the suits picture, a few (I’d wager around 8 or 9) lines of code and you’re done.

shmoove

May be I am too new in this field…I am not very good in Java. :stuck_out_tongue: (Last time is using netbeans IDE for drawing interface, I havent touch any interface/graphic G drawing coding at all)