2013年10月28日

BufferedImage 和 ImageIO

摘要: package frank;import java.lang.*;import java.awt.image.BufferedImage;import javax.imageio.ImageIO;import java.awt.*;import java.io.File;/** * BufferedImage 和 ImageIO * BufferedImage缓冲图片 * ImageIO图片读取 * */public class App{ private final int WIDTH = 80; private final int HEIGHT = 60; BufferedImage ima 阅读全文

posted @ 2013-10-28 11:21 wp456 阅读(630) 评论(0) 推荐(0)

Timer类

摘要: package frank;import java.lang.*;import javax.swing.Timer;import java.awt.event.*;import java.awt.*;import java.util.Calendar;/** * Timer类 * */public class App{ public static void main(String[] args) { App app = new App(); Frame f = new Frame(); final TextArea ta = new TextArea("",5,10); A 阅读全文

posted @ 2013-10-28 10:48 wp456 阅读(225) 评论(0) 推荐(0)

Graphics类

摘要: package frank;import java.lang.*;import java.util.Random;import java.awt.*;import java.awt.event.*;/** * Graphics类 * */public class App{ private final String RECT_SHAPE = "rect"; private final String OVAL_SHAPE = "oval"; private Frame f = new Frame("测试窗体"); private Butt 阅读全文

posted @ 2013-10-28 10:19 wp456 阅读(295) 评论(0) 推荐(0)

导航