- 10
- 0
- 约3.46万字
- 约 100页
- 2017-11-25 发布于河南
- 举报
JAVA程序设计教程(第七版)Chapter 2
Drawing Shapes Every drawing surface has a background color Every graphics context has a current foreground color Both can be set explicitly See Snowman.java //******************************************************************** // Snowman.java Author: Lewis/Loftus // // Demonstrates basic drawing methods and the use of color. //******************************************************************** import javax.swing.JApplet; import java.awt.*; public class Snowman extends JApplet { // // Draws a snowman. // public void paint (Graphics page) { final int MID = 15
原创力文档

文档评论(0)