Solved

Import Javax.swing.*; Import Java.awt.*;

Question 19

Essay

import javax.swing.*;
import java.awt.*;
public class JHello extends JApplet
{
JLabel greeting = new JLabel("Hello. Who are you?");
public void init()
{
add(greeting);
}
}
The above code displays an applet with a JLabel added without a specified BorderLayout region. Describe how the JLabel will occupy the JApplet surface.

Correct Answer:

verifed

Verified

The default layout manager for...

View Answer

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

Related Questions