In this tutorial I have tried a new way to explain the code. I have commented the code heavily where ever required. You can get to know that particular method is doing just by reading the comment above it. JButton: This is a class that is used to draw a button on the Panel. On click of this button we perform many different operations such some calculations, Database operations, start/stop an event etc etc. These are one of the most used Swing components. JTextField: Another important Swing component that we need in many purpose of entring any text information. EventListeners: Event Listeners are a way to get a task done on some user click or any user event. It is a large topic so it will discussed with time as these tutorials are made further.