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 JFrame2 {3 public SimpleWindow()4 {5 // Set the title.6 setTitle("A Simple Window");78 // Specify what happens when the close button is clicked.9 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);1011 // Add a label.12 JLabel label = new JLabel("This is a simple window.");13 add(label);1415 // 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.