:D I suspect working directory and the ImageIcon constructor...
Type: Posts; User: Sean4u
:D I suspect working directory and the ImageIcon constructor...
The way you're attempting to do it looks like it ought to work - the only thing that stuck out to me was that you do it differently for the fronts and the backs. I wonder if you're successfully...
Are you sure you're creating the ImageIcon correctly? I see you use getResource to load the card backs but you use a straight-from-named-file constructor for ImageIcon, which won't throw Exceptions...
That sounds like a really nice idea for a project. I think if I was going to do this the way you are doing it, I would certainly start by extending JButton - say something like
public class...