Results 1 to 8 of 8

Thread: applet help

  1. #1
    .paul. is offline Member
    Join Date
    Jun 2012
    Posts
    73
    Blog Entries
    1
    Rep Power
    0

    Default applet help

    i used an online tutorial + my applet works ok when debugging but not when i embed it in an html page.
    here's my html:

    XML Code:
    <html>
    
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta name=Generator content="Microsoft Word 12 (filtered)">
    <style>
    <!--
     /* Font Definitions */
     @font-face
    	{font-family:"Cambria Math";
    	panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
    	{font-family:Calibri;
    	panose-1:2 15 5 2 2 2 4 3 2 4;}
     /* Style Definitions */
     p.MsoNormal, li.MsoNormal, div.MsoNormal
    	{margin-top:0cm;
    	margin-right:0cm;
    	margin-bottom:10.0pt;
    	margin-left:0cm;
    	line-height:115%;
    	font-size:11.0pt;
    	font-family:"Calibri","sans-serif";}
    .MsoPapDefault
    	{margin-bottom:10.0pt;
    	line-height:115%;}
    @page WordSection1
    	{size:595.3pt 841.9pt;
    	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.WordSection1
    	{page:WordSection1;}
    -->
    </style>
    
    </head>
    
    <body lang=EN-GB>
    
    <div class=WordSection1>
    
    <p class=MsoNormal>Test applet:</p>
    
    </div>
    <Applet Code="GreenLines.class" width=350 Height=200>
    </Applet>
    
    </body>
    
    </html>
    what am i doing wrong?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default Re: applet help

    Moved from New to Java

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

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default Re: applet help

    Quote Originally Posted by .paul. View Post
    what am i doing wrong?
    For one, you haven't told us what errors are encountered. Have you checked the browser's Java console?

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

  4. #4
    .paul. is offline Member
    Join Date
    Jun 2012
    Posts
    73
    Blog Entries
    1
    Rep Power
    0

    Default Re: applet help

    ok. applet doesn't load.
    first i get a blocked content message, then when i click allow, it doesn't load

    i also tried the Applet HTML Page in the build folder + that doesn't load either

  5. #5
    .paul. is offline Member
    Join Date
    Jun 2012
    Posts
    73
    Blog Entries
    1
    Rep Power
    0

    Default Re: applet help

    ok. progress. Applet HTML Page now loads, but my own embedded applet doesn't.

    applet help-28-10-2012-04.11.48.jpg

  6. #6
    .paul. is offline Member
    Join Date
    Jun 2012
    Posts
    73
    Blog Entries
    1
    Rep Power
    0

    Default Re: applet help

    RESOLVED.
    thanks for the help.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default Re: applet help

    Quote Originally Posted by .paul. View Post
    RESOLVED.
    thanks for the help.
    And since this is a forum, you will share the details of the root problem and its resolution for the benefit of those who come across this thread, won't you?

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

  8. #8
    .paul. is offline Member
    Join Date
    Jun 2012
    Posts
    73
    Blog Entries
    1
    Rep Power
    0

    Default Re: applet help

    Quote Originally Posted by DarrylBurke View Post
    And since this is a forum, you will share the details of the root problem and its resolution for the benefit of those who come across this thread, won't you?

    db
    you were right about the browser's Java console + the other error is because i created a new project with a main class before adding Greenlines.java
    i recreated it without the main class + it worked

Similar Threads

  1. Replies: 2
    Last Post: 05-18-2012, 06:06 PM
  2. Replies: 30
    Last Post: 08-26-2011, 09:05 PM
  3. Replies: 2
    Last Post: 09-29-2009, 03:33 PM
  4. Calling another applet on click of button in one applet
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 02-19-2009, 12:54 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

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