Solved

Import Javax.swing.*; Public Class JFrame1

Question 55

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);
}
}
The three shaded statements in the main() method above are important. Explain the purpose of each statement and why they are necessary for creating a JFrame.

Correct Answer:

verifed

Verified

The first shaded statement declares a JF...

View Answer

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

Related Questions