Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Creating an Applet (https://www.askmehelpdesk.com/showthread.php?t=268838)

  • Oct 13, 2008, 09:05 AM
    lalitalalwani
    Creating an Applet
    Hi,

    Myself Lalita Lalwani,

    I want to know how to write an applet to show permanent passion between HTML and applet?

    Waiting for the reply...
  • Feb 6, 2009, 01:21 AM
    naimlatifi

    Hi,

    Below I am making a simple applet and how it is implemented in html :

    import java.applet.*;
    import java.awt.*;

    public class Simple extends Applet{

    public void paint(Graphics g){
    g.drawString("Hello World", 25,25);
    }
    }

    now the implementation in html= go to notepad and write

    <html>
    <applet code = " Simple.class" width=300, height=300>
    </applet>
    </html>

    after you create this html file you have to insert in the path where your class Simple.class is located in order to be executable.


    Hope that this will help !

    Naim

  • All times are GMT -7. The time now is 02:33 PM.