Results 1 to 2 of 2

Thread: How to start

  1. #1
    cachi is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default How to start

    Hi, Can someone give me a brief outline in the steps of making a
    Java Applet.


  2. #2
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    1. import the package javax.swing.* and java.awt.*
    2. extends the JApplet class or Applet class in the class u want to make Applet
    3. override the
    - public void init(), this acts like the public static void main(String[] args)
    - public void start(), optional, read tutorials bout multithreading for details
    - public void paint(Graphics g), this manages the drawing of ur applet
    4. create a html file consisting a tag applet, at the very least like this
    Java Code:
    <applet code="something.class" width=300 height=300>
    5. compile ur .java source code and use a browser to run the applet, or u can also use the appletviewer command from the command prompt
    And thats the brief outline of making an applet :D
    For further details u can just look at the sun tutorial or look in the Java Applets thread in this forum, lotsa examples there

Similar Threads

  1. Hello! and I need help. I dont know were to start
    By Fall0ut in forum New To Java
    Replies: 10
    Last Post: 05-19-2010, 06:26 PM
  2. My thread will not start
    By markyoung1984 in forum Threads and Synchronization
    Replies: 4
    Last Post: 10-03-2008, 06:32 PM
  3. How Start NetBeans..............
    By bscs04b046 in forum NetBeans
    Replies: 3
    Last Post: 04-22-2008, 03:53 AM
  4. Java Web Start
    By perry_mason_i in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 09:44 PM
  5. JWS -Java Web Start
    By goldhouse in forum Java Applets
    Replies: 0
    Last Post: 04-01-2007, 10:20 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