Results 1 to 2 of 2
  1. #1
    omdom is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default Applet Mac issue

    Hi everyone,

    I have made an applet which uses multiple classes and .PNGs and .GIFs.
    It runs fine on windows under internet explorer and firefox,
    but it does not work at all on Macs.

    I have an HTML file called Game.html:

    Java Code:
    <head>  
    <title>My Game Page</title>
    <\head>
    <applet	
    codebase="myDomain,net/Games/"	      
    code="Game.class"	 width=800 height=600
    name="Client">
    Your browser is not configured to run Java applets.
    <\applet>

    in "myDomain,net/Games/" //woudlnt let me post link
    there are:
    Game.class
    Player.class
    Enemy.class
    Player.GIF
    Monster.PNG

    The applet does work on Windows.

    in my Game.java, i read the images through

    Java Code:
    URL url = getClass().getResource("Player.GIF");
    ImageIcon icon = new ImageIcon(url);
    Image playerPic = icon.getImage();
    Other than this, there is nothing that I see as being a windows vs. mac issue.
    I'm not entirely sure what the problem is, if you have any ideas please let me know.

    p.s. The Mac applet does not give any java errors, it just sort of stops loading. and/or has the red 'x' at the top left of the applet screen.


    thanks in advance :D

  2. #2
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    Apparently, we're looking for an answer for the same problem. I've been discussing this in Sun's forum, and recently went here for help as well.

    http:*remove this*//www*remove this*.java-forums.org/java-applets/20752-japplet-mac.html

    This is my thread - sorry, I can't post any link yet - it has a few details which I tried to make my applet run on Mac As well. Might be helpful. =]

    Regards,
    LD

Similar Threads

  1. Replies: 3
    Last Post: 05-06-2009, 01:11 AM
  2. Replies: 4
    Last Post: 03-22-2009, 12:43 AM
  3. Java Applet Issue
    By bmw4l1f3 in forum New To Java
    Replies: 9
    Last Post: 11-13-2008, 05:39 PM
  4. Replies: 4
    Last Post: 06-08-2007, 07:15 AM
  5. Applet tabbing issue
    By pegitha in forum Java Applets
    Replies: 2
    Last Post: 04-28-2007, 11:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •