Top Posters
Since Sunday
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 210 times
2 Replies
Replies
Answer verified by a subject expert
blitheringblithering
wrote...
Posts: 354
Rep: 9 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1
University of Notre Dame

Related Topics

Eels Author
wrote...
7 years ago
YOU'RE AWESOME
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1238 People Browsing
Related Images
  
 841
  
 374
  
 266
Your Opinion
Where do you get your textbooks?
Votes: 372

Previous poll results: Do you believe in global warming?