We will add one button to our Application Window and connect it to event listener. Most common type of even listener is the Click event of a button.
We already have one blank window opened and we added Absolute Layout to this window.
Undder the components we have one JButton, click that and place it on our Application Window. To the left of our panel there is a section called Properties. We can manage properties options of our components using this panel.
For our window let us change the text written over it.
We will change the name of the variable to b1.
To our button we will add one event. This mean adding code which will be executed when we click the button.
Select the button on design panel and double click it. This code will be generated.