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:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q62: There are three attributes typically placed within
Q63: public void actionPerformed(ActionEvent e)
{
String name = answer.getText();
con.remove(greeting);
con.remove(pressMe);
con.remove(answer);
personalGreeting.setText("Hello,
Q64: In order to play sounds more than
Q65: <object code = "AClass.class" width = 300
Q66: <html>
_
</object>
</html>
Using the HTML code above, write the
Q67: import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class JSound extends
Q69: arrowPicture.paintIcon(this, g, 150, 0);
The statement above is
Q70: import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class JCompanyImage extends
Q71: The init() method is the first method
Q72: <html>
_
</object>
</html>
In the blank line provided, write the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents