File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Applet problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Applet problem..." Watch "Applet problem..." New topic
Author

Applet problem...

Jeremy Parsons
Ranch Hand

Joined: Apr 21, 2006
Posts: 74
Just started learning about Applets, and I am trying to compile the code below which is straight out of the book, but it will not compile, am I over looking something here?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
Notice where you have the opening brace of the method.
Jeremy Parsons
Ranch Hand

Joined: Apr 21, 2006
Posts: 74
I'm getting the following error..


I looked at the method but couldn't find anything wrong..
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341


Notice here that you have a line of code before the opening brace.
Jeremy Parsons
Ranch Hand

Joined: Apr 21, 2006
Posts: 74
ah, ok.. when you said method I was looking at the public void init() part not the method body and brackets.. Got it working now, I appreciate that..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet problem...
 
Similar Threads
Problem in Font
Hmmm... ??
Applet Problem...
repaint() method? Something's fishy...
Help with screen output in applet