I'm trying to program the traditional minesweeper game. I have problems with Swing as I'm not sure how to proceed.
I tried adding one JPanel to a JFrame and then using JButtons to imitate the tile buttons. Then I encountered a problem when I tried to program the functionality of opening the tiles. I tried to replace the JButton with JLabel with no success.
Could you give me some opinions on how to start the gui programming? Algorithm are ok I think.