asked 173k views
0 votes
Given a JFrame variable named frame, write a statement that makes the frame visible.

asked
User Vinhboy
by
8.2k points

1 Answer

6 votes

Answer:

import javax.swing.JFrame;

public class Main {

public static void main(String[] args) {

// Create a frame

JFrame frame = new JFrame("Swing");

// Display the frame

frame.setVisible(true);

}

}

Step-by-step explanation:

answered
User Vetsin
by
8.4k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.