JAVA程序设计教程(第七版)Chapter-2.pptVIP

  • 1
  • 0
  • 约3.46万字
  • 约 100页
  • 2018-02-13 发布于河北
  • 举报
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)

1亿VIP精品文档

相关文档