Solved

Import Javax.swing.*; Public Class JFrame1

Question 51

Essay

import javax.swing.*;
public class JFrame1
{
     public static void main(String[] args)
     {
         JFrame aFrame = new JFrame("First frame");
         aFrame.setSize(300, 125);
         aFrame.setVisible(true);
     }
}
Explain the purpose of each statement in the main() method above and why they are necessary for creating a JFrame .

Correct Answer:

verifed

Verified

The first statement declares a JFrame na...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions