Look at the following GUI application class and indicate by line number the changes that should be made to convert this to an applet using Swing:
1 public class SimpleWindow extends JFrame
2 {
3 public SimpleWindow()
4 {
5 // Set the title.
6 setTitle("A Simple Window");
7
8 // Specify what happens when the close button is clicked.
9 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
10
11 // Add a label.
12 JLabel label = new JLabel("This is a simple window.");
13 add(label);
14
15 // Pack and display the window.
16 pack();
17 setVisible(true);
18 }
19 }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.