摘要:
1 /* 2 * JAVA中弹出窗口例子 3 * 类结构 4 * -JComponent-JPanel 5 * Object-Component-Container | 6 * -Window-Frame-JFrame 7 */ 8 import javax.swing.*; 9 import java.awt.*;10 public class NotHelloWorld {11 public static void main(String[] args)12 {13 EventQueue.invokeLater(new Runnable()14 {15 public void run(). 阅读全文
摘要:
1 /* 2 * 本例子实现java中的内部类 3 * 功能:定时打印字符串,并beep 4 * 内部类TimerPrinter implements ActionListener 5 */ 6 import java.awt.*; 7 import java.awt.event.*; 8 import java.util.*; 9 10 import javax.swing.*;11 import javax.swing.Timer;12 13 14 15 //to resolve conflict with java.util.Timer;16 public class InnerCla. 阅读全文