摘要:
继承 MyFrame的类 减少代码量 补: 经常用到的常量可以用一个类封装存储起来 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 impor 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 impor 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 import java.awt.event.WindowAdapter; 8 import ... 阅读全文
摘要:
1 package test; 2 import java.awt.Image; 3 import java.awt.image.BufferedImage; 4 import java.io.IOException; 5 import java.net.URL; 6 import javax.im 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.event.WindowAd 阅读全文
摘要:
1 package testDate; 2 //自定义异常 3 public class MyException extends Exception{ 4 public MyException(){ 5 6 } 7 public MyException(String message){ 8 super(message); ... 阅读全文
摘要:
1 package testDate; 2 import java.io.File; 3 import java.io.FileNotFoundException; 4 public class TestReadFile { 5 public static void main(String[] ar 阅读全文
摘要:
1 package testDate; 2 import java.io.FileNotFoundException; 3 import java.io.FileReader; 4 import java.io.IOException; 5 public class TestReadFile { 6 public static void main(String[] args)... 阅读全文
摘要:
1 package testDate; 2 import java.io.FileNotFoundException; 3 import java.io.FileReader; 4 import java.io.IOException; 5 public class TestReadFile { 6 阅读全文