Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Paint cards on Container / java swing

$
0
0
hello. I would like to ask a question about jpanel,jframe,jlabel .


Firstly I have an interface card , a java class sicards implements card and spcards implements card .

Secondly i have the main class gui game . the main gui extends jframe . within the class gui we have a container within i would like to draw the cards . Of course we have the controller of the game that makes new cards and piles them to the players . I made a jlabel for each card and the cards appears just fine. But i cant make a comparison between jlabels . i want to add to the container cards so i decide to paint the cards .how i do that ?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>