Embed presentation
Download to read offline

To use buttons and other GUI objects in a Java program, you need to import the java.awt package. This package includes core AWT graphic classes, such as GUI component classes (text fields, labels, buttons) and container classes (frames). Additionally, the java.awt.event package supports event handling.
