Ask Experts Questions for FREE Help !
Ask
    lalitalalwani's Avatar
    lalitalalwani Posts: 1, Reputation: 1
    New Member
     
    #1

    Oct 13, 2008, 09:05 AM
    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...
    naimlatifi's Avatar
    naimlatifi Posts: 26, Reputation: 1
    New Member
     
    #2

    Feb 6, 2009, 01:21 AM

    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

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Applet in jCreator [ 1 Answers ]

Suppose my code is import java.applet.*; import java.awt.*; /*<applet code = "MyApp" height = 400 width = 500></applet>*/ public class MyApp extends Applet {

Closing jsps from an applet [ 1 Answers ]

I have an applet which launches the jsp in a new window using showDocument method. When I exit from an applet, all jsps launched from an applet should also get closed.

Control panel applet [ 2 Answers ]

Hi there, I scaned an infected PC for viruses now it seems to be OK all viruses has been deleted but some changes in the control panel still existed. Date and time applet cannot be opened it says you don't have the administrator rights to open, even it is adminsitrator account. Can any one help...

Writing an Applet [ 1 Answers ]

Write an applet to show permanent passion between HTML and applet ? Thank you so much for helping me to find out the answers in advance :)


View more questions Search