Results 1 to 2 of 2
Thread: How to start
- 08-06-2007, 03:50 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
- 08-06-2007, 08:43 AM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 130
- Rep Power
- 0
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
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 promptJava Code:<html> <applet code="something.class" width=300 height=300> </applet> </html>
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
-
Hello! and I need help. I dont know were to start
By Fall0ut in forum New To JavaReplies: 10Last Post: 05-19-2010, 06:26 PM -
My thread will not start
By markyoung1984 in forum Threads and SynchronizationReplies: 4Last Post: 10-03-2008, 06:32 PM -
How Start NetBeans..............
By bscs04b046 in forum NetBeansReplies: 3Last Post: 04-22-2008, 03:53 AM -
Java Web Start
By perry_mason_i in forum New To JavaReplies: 1Last Post: 07-23-2007, 09:44 PM -
JWS -Java Web Start
By goldhouse in forum Java AppletsReplies: 0Last Post: 04-01-2007, 10:20 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks