In this section, you specify an event (a mouse click) to which the button can respond.
To add the mouse event:
The value changes from none to jButton1MouseClicked.
The listener code jButton1.addMouseListener and event method jButton1MouseClicked() automatically appear in the Source Editor.
Next: Adding Event Handler Code
Back: Adding a Button |