Name:_______________________
Matric:_______________________
Course:_______________________
CHAPTER 12
1. Explain the difference between AWT GUI components, such as java.awt.Button, and Swing components, such as javax.swing.JButton.
2. Show the output of the following java code:
import javax.swing.*;
public class Test {
public static void main(String[] args) {
JButton jbtOK = new JButton("OK");
System.out.println(jbtOK.isVisible());
JFrame frame = new JFrame();
System.out.println(frame.isVisible());
}
}
No comments:
Post a Comment