Events

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page

Answer:

Yes.

Events

A GUI application program shows the user a graphical interface containing several graphical components. The user controls the application by interacting with the graphical components, doing such things as:

  • Clicking on a button to choose a program option.
  • Making a choice from a menu.
  • Entering text in a text field.
  • Dragging a scroll bar.

An action such as clicking on a button is called an event. In reading these notes you have been generating events by using the graphical interface of your Web browser.

QUESTION 3:

Generate an event.