Help with custom component
Hi,
I am designing a card game application. The cards are a custom component subclassing JComponent.I would like info on how to place the cards on a JFrame(one next to another) and also how to set their size. What code is needed to be put in my class to achieve the above things?
Currently, I am using the add() method to add the cards to the frame but every card is placed on top of the others, despite the fact that I use the setBounds() function for each card.
Can you help or provide any tutorial about this?
Thanks