You must have worked with Notepad to write programs. Now its turn to create notepad by own with the help of java language. This section explains some basic functionalities of notepad which will help creating full fleshed notepad application. So just go through the example and see how it works.
First, a class extending JFrame and implementing ActionListener is created. JFrame is the main container for swing-based application.
Read more at:
Recommend the tutorial