Hi all, I've got a very crude Swing GUI with 6 JLabel's sitting on a JPanel using a GridLayout. It's for a card game, and the 6 JLabel's are actually displaying my
playing cards. (they are displayed as an ImageIcon within the JLabel)
Anyway, I've set up a MouseListener interface so that when a user clicks one of the JLabel's, it will execute some code. Everything seemed to be working great until I noticed that if you click in between the JLabel's, it will register as though you actually clicked ON the JLabel immediately to the left. I've tried adjusting the size of my JLabel's using something like lbl1.setSize(25,20); but it seems to do nothing. I can't figure why the heck it's doing this, but more importantly I can't seem to fix it.
Any help or suggestions would be greatly appreciated!