Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet not working...  RSS feed

 
Jeremy Parsons
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got an applet I'm trying to make.. It's supposed to draw a square that is blue on the screen, but when I run the applet, it doesn't work.. Here is the code..



What could I be doing wrong?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you be more specific about what doesn't work? I ran your code and got a blue outlined rectangle.
 
Jeremy Parsons
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on the Applet screen it says " Start: Applet not initialized" and it's blank.. and in the DOS screen in the background, I see a ton of lines of what appear to be errors..

I ran an applet just 2 days ago, so I don't think my Java should be messed up..
 
Jeremy Parsons
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disregard the last post, I just saw that I mistyped the class name in my HTML document .. thanks for your time though..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!