Questions and Answers
Which package is used for AWT in Java?
java.awt.*
What is the purpose of a Frame in AWT?
Create top-level window with title bar and menu bar
Which method is used to set the size of a Frame in AWT?
void setSize(int width, int height)
What does the method setVisible(true/false) do in AWT?
Signup and view all the answers
What is the purpose of java.awt.event package in AWT?
Signup and view all the answers