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 ?
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 ?