Connect four done in Swing. Not by choice. I pity anyone that tries to make a game in Swing. If you have a choice, use libgdx.