Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Components not showing

 
Andrew Wisner
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new at writing applets. Today, I attempted to write an applet with the code below (the only code so far) in the init() method. When I run the code, I get a blank applet. I know I must be making some stupid mistake, but I can't figure out what it is. Any help is much appreciated!

 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand line 2. Is the comment at line 1 supposed to describe that? Because line 1 suggests you're going to be dealing with the applet's content pane, but line 2 creates a new Container instead.
 
Andrew Wisner
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought that "pane" is another word for the "container" object. Is it not?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like you're missing this last line
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic