Results 1 to 14 of 14
Thread: Applet Execution Problems
- 11-17-2010, 12:17 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
Applet Execution Problems
Im new to java...
I tried to make the helicopter game, such as the one found here Helicopter Game : Max Games.
I am using BlueJ to code it, and whenever I compile and run on my laptop, it runs great. Everything goes as plannned.
However, when I uploaded it to my free website, I get some problems. Sometimes, the applet doesnt even load. Other times, it loads, but when the helicopter crashes there is no explosion. Also, after this happens, the applet spazzes out in many ways such as not letting my JOptionPane box going away.
I emailed myself the code and compiled in school with BlueJ, and sometimes went wrong. I fixed this by commenting out the resize i did in my init method. Still, I dont know why resizing would be an issue on one pc and not another.
Any help?
- 11-21-2010, 12:51 AM #2
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
bump^ any help?
- 11-21-2010, 06:52 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Could you post the link to that web page?
- 11-23-2010, 10:37 PM #4
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
heliextreme Applet
it works the first time you play, but with no explosion. from then on it goes downhill and seems to get worse when you refresh the page
- 11-24-2010, 04:03 AM #5
Member
- Join Date
- Nov 2010
- Posts
- 11
- Rep Power
- 0
I don't think you can resize an Applet. The browser it what sets up the size of the applet and the applet is not allowed to resize itself
- 11-24-2010, 10:05 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-24-2010, 10:10 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-24-2010, 08:56 PM #8
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
Hmm...so I should comment out the resize(800,500); line? Re-compile and reupload? And just change the html code given to me by BlueJ to change the applet size?
- 11-25-2010, 04:14 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Applet ares resizing and the applet in html page are two things.
- 11-25-2010, 04:18 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-27-2010, 06:18 AM #11
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
Yeah I have firefox at home but I tried in school which is IE and still problem
- 11-28-2010, 04:05 AM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you try to avoid that resizing, from the code?
- 11-28-2010, 05:46 PM #13
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
i'v a problem when running applet pls help me ......
the code for program is as follows......
code:
import java.applet.*;
import java.awt.*;
/*
<applet code="AppStatus.class" width=300 height=200>
</applet>
*/
public class AppStatus extends Applet {
public void init() {
setBackground(Color.cyan);
}
public void paint(Graphics g) {
g.drawString("this is simple applet",20,20);
showStatus("this is status bar");
}
}
when i compile its compiled.....
but when run with appletviewer i got error as follows...
error:
I/O exception while reading: C:\java\appstatus.html (The system cannot find the file specified)
but the file is at correct location....
pls look forwrd to this problem ....
thanx........
- 12-01-2010, 06:06 AM #14
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Please don't post unrelated stuff in others thread. If your issues is not related with the discussion, please start a new thread in relevant sub-forum.
Last edited by Eranga; 12-01-2010 at 06:10 AM.
Similar Threads
-
problem with applet execution
By nishant.4545 in forum Advanced JavaReplies: 2Last Post: 07-04-2009, 10:41 PM -
Regarding Applet Execution
By makpandian in forum Java AppletsReplies: 1Last Post: 03-13-2009, 12:49 PM -
External Program execution problems
By vital101 in forum Advanced JavaReplies: 3Last Post: 10-30-2007, 05:17 PM -
problems when I try to run an applet
By boy22 in forum Java AppletsReplies: 2Last Post: 08-11-2007, 03:47 PM -
problems with applet
By paty in forum Java AppletsReplies: 1Last Post: 08-05-2007, 04:16 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks