This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Cant seem to get this to run as an applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Cant seem to get this to run as an applet?" Watch "Cant seem to get this to run as an applet?" New topic
Author

Cant seem to get this to run as an applet?

David Triple
Greenhorn

Joined: Jul 05, 2011
Posts: 20
I think i have it all right, but i dont know where to place my extends from Japplet? can any one take a look and help me out?

David Triple
Greenhorn

Joined: Jul 05, 2011
Posts: 20
Running it like this gives me an : <identifier> expected error at line 77...
David Triple
Greenhorn

Joined: Jul 05, 2011
Posts: 20
i mean line 68 where the exit on close is..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
It looks like you are declaring a class called JHiLo2 inside another class called JHiLo2 - is that what you intended to do? It seems a recipe for problems.


Ping & DNS - my free Android networking tools app
David Triple
Greenhorn

Joined: Jul 05, 2011
Posts: 20
Not really, if i turn the extends JFrame into JApplet it wont run, so im lost at this part?
David Triple
Greenhorn

Joined: Jul 05, 2011
Posts: 20
ok i got it to work, i jsut commented the whole part out at line 66-68 and renamed JFrame to JApplet on line 06
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant seem to get this to run as an applet?
 
Similar Threads
WA #1.....word association
Cant use object from another class
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?