If you wanted to use Buttons and other GUI objects in a Java program you would import what
library?
Solution
if you want to use buttons and other ghi objets llike buttons,check box,radio buttons,text fields
you need to import java.awt package.
the above package containes core awt graphic classes such as
GUI component class:
containes text field,lables and buttons
GUI container class:
containes all the above component classes.frame that acts like a container for above gui
components
java.awt.event package used to support event handling.

If you wanted to use Buttons and other GUI objects in a Java program.pdf

  • 1.
    If you wantedto use Buttons and other GUI objects in a Java program you would import what library? Solution if you want to use buttons and other ghi objets llike buttons,check box,radio buttons,text fields you need to import java.awt package. the above package containes core awt graphic classes such as GUI component class: containes text field,lables and buttons GUI container class: containes all the above component classes.frame that acts like a container for above gui components java.awt.event package used to support event handling.