Results 1 to 8 of 8
  1. #1
    nabil is offline Member
    Join Date
    Jan 2012
    Posts
    17
    Rep Power
    0

    Default cant change the size of the applet viewer

    hello guys..i need your help..
    i've run a set of code for Snake game using java..
    i'm using Netbeans to run those code..
    that game do appear,but the applet was so small than that game...how can i change it??
    please help me,i'm a newbie..

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: cant change the size of the applet viewer

    The values in the width= and height= attributes for the HTML <APPLET tag can be used to control the size of the applet's area on the HTML page.

  3. #3
    nabil is offline Member
    Join Date
    Jan 2012
    Posts
    17
    Rep Power
    0

    Default Re: cant change the size of the applet viewer

    Quote Originally Posted by Norm View Post
    The values in the width= and height= attributes for the HTML <APPLET tag can be used to control the size of the applet's area on the HTML page.
    THANK YOU SO MUCH NORM..you've help me a lot and now the problem have been settle..i've been able to chage the size of it..thank you so much again..
    but i do have another problem if u can help me..i really hope you can..

    can you explain to me how to insert music into java game??can u tell me step by step please norm..i appreciate your help..

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: cant change the size of the applet viewer

    Read the API for Applet. You'll be looking for methods that contain "Audio" as part of the method name.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    nabil is offline Member
    Join Date
    Jan 2012
    Posts
    17
    Rep Power
    0

    Default Re: cant change the size of the applet viewer

    Quote Originally Posted by DarrylBurke View Post
    Read the API for Applet. You'll be looking for methods that contain "Audio" as part of the method name.

    db
    i cant really understand that..can u explain more??where can i read that API??

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: cant change the size of the applet viewer

    Java Platform SE 6
    Find Applet in lower left panel, click link for doc in main panel

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: cant change the size of the applet viewer

    And bookmark the link that Norm gave you -- you'll often have need of it.

    Or if you're already on Java 7, bookmark this instead: Java Platform SE 7

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    nabil is offline Member
    Join Date
    Jan 2012
    Posts
    17
    Rep Power
    0

    Default Re: cant change the size of the applet viewer

    ok guys..thank you so much to both of you..u guys make me feels happy to learn more about java..so thanks again for all you guys help!!i appreciate it so much!!

Similar Threads

  1. Need Help With Eclipse Applet Viewer
    By Vorsaykal in forum Eclipse
    Replies: 1
    Last Post: 11-06-2011, 05:33 AM
  2. applet working in applet viewer, not browser
    By plasticfood in forum Java Applets
    Replies: 4
    Last Post: 06-24-2011, 06:47 PM
  3. Changing default Applet Viewer Size?
    By dsym@comcast.net in forum Java Applets
    Replies: 6
    Last Post: 08-27-2010, 06:42 PM
  4. Replies: 4
    Last Post: 02-22-2009, 06:31 AM
  5. java applet viewer dimensions
    By yuriythebest in forum Java Applets
    Replies: 1
    Last Post: 11-08-2008, 10:44 PM

Posting Permissions

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