The tutorials are a good place to start for learning how to write GUI:
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)