✔ 最佳答案
1 & 2. For drawing shapes, look for the keyword: "Java2D".
Sun's Tutorial on 2D Graphics:
http://java.sun.com/docs/books/tutorial/2d/index.html
aries;
Sun's documentation on the Java Standard Edition Application Programming Library:
http://java.sun.com/javase/6/docs/api/
3. Applet is Java programming, embedded within an HTML or XHTML web page.
The following link is a link to a good, free HTML tutorial. Applets use the tag called "applet". Note that the difference between HTML and XHTML is that XHTML is newer and is for new web pages and HTML is to maintain older websites that were written in HTML.
http://www.w3schools.com/xhtml/xhtml_intro.asp
4. I haven't done animation myself, but be aware that all drawing must be done on the GUI thread. Also, be aware that there are user-threads, daemon threads, and a single user-interface thread which is not to be confused with user-threads in general).
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html