Top Posters
Since Sunday
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
r
4
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
In the following code that uses a Swing GUI, which line has an error?

1   public class TestApplet extends Applet
2   {
3      public void init()
4      {
5        JLabel label = new JLabel("Test label");
6        setLayout(new FlowLayout());
7        add(label);
8     }
9   }

A) 5
B) 1
C) 3
D) There are no errors.
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 192 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

Eels Author
wrote...
7 years ago
YOU'RE AWESOME
wrote...
7 years ago
Cheers dude
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  889 People Browsing
Related Images
  
 40
  
 291
  
 122
Your Opinion
Which of the following is the best resource to supplement your studies:
Votes: 249