Difference between revisions of "Use Graphics in a Java Applet"
m (importing article from wikihow) |
m (Text replacement - "[[Category:j" to "[[Category:J") |
||
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: | + | [[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: |