Difference between revisions of "Use Graphics in a Java Applet"

Kipkis (Kipkis | contribs)
m (importing article from wikihow)
 
Kipkis (Kipkis | contribs)
m (Text replacement - "[[Category:J" to "[[Category: J")
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Applets involving graphics and animations usually look more exciting than applets that don't. Here is a basic overview of how to implement graphics in an applet.
 
Applets involving graphics and animations usually look more exciting than applets that don't. Here is a basic overview of how to implement graphics in an applet.
  
[[Category:java]]
+
[[Category: Java]]
 
== Steps ==
 
== Steps ==
 
#  In your paint method, have a parameter that needs a Graphics class. Using the graphics class, you should be able to draw things and images inside the paint method. The method signature should look like this:  
 
#  In your paint method, have a parameter that needs a Graphics class. Using the graphics class, you should be able to draw things and images inside the paint method. The method signature should look like this: