Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. Show the output of following program: import javax.swing.* import java.awt.* public class JFrame5 public static void main (Stringll args) Point 1 final int FRAME-WIDTH
5. Show the output of following program: import javax.swing.* import java.awt.* public class JFrame5 public static void main (Stringll args) Point 1 final int FRAME-WIDTH = 250; final int FRAME_HEIGHT 100; JFrame aFrame new JFrame("Fifth frame"); aFrame.setSize(FRAME_WIDTH, FRAME_HEIGHT); aFrame.setVisible(true); aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel greeting-new JLabel("Hello"); JLabel greeting2-new JLabel("Who are you?"); aFrame.add(greeting); aFrame.add(greeting2); 5. Show the output of following program: import javax.swing.* import java.awt.* public class JFrame5 public static void main (Stringll args) Point 1 final int FRAME-WIDTH = 250; final int FRAME_HEIGHT 100; JFrame aFrame new JFrame("Fifth frame"); aFrame.setSize(FRAME_WIDTH, FRAME_HEIGHT); aFrame.setVisible(true); aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel greeting-new JLabel("Hello"); JLabel greeting2-new JLabel("Who are you?"); aFrame.add(greeting); aFrame.add(greeting2)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started