So I'm moderately interested in developing a 2D adventure game in Java. I can write the whole game with text, develop some sort of combat system and write all the classes needed, but my current knowledge stretches short of making a GUI. What I'm really asking is, what do I have to learn to be able to learn to make a game with a GUI, where the user only interacts with mouse clicks? If I finished the game text-based, would I have to rewrite the whole thing to make it adaptable to a GUI? And if this isn't answered on things I have to learn, how do I make mouse clicks interact with components in the GUI? Thanks in advance.