Search:

Type: Posts; User: Sean4u

Search: Search took 0.09 seconds.

  1. Replies
    26
    Views
    7,539

    Re: Memory Card Game JButtons Array

    :D I suspect working directory and the ImageIcon constructor...
  2. Replies
    26
    Views
    7,539

    Re: Memory Card Game JButtons Array

    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...
  3. Replies
    26
    Views
    7,539

    Re: Memory Card Game JButtons Array

    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...
  4. Replies
    26
    Views
    7,539

    Re: Memory Card Game JButtons Array

    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...
Results 1 to 4 of 4