資源簡介
Java 延遲生效的按鈕(基礎篇-實例404).zip
代碼片段和文件信息
import?java.awt.EventQueue;
import?java.awt.Font;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.awt.event.WindowAdapter;
import?java.awt.event.WindowEvent;
import?java.util.Scanner;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JPanel;
import?javax.swing.JScrollPane;
import?javax.swing.JTextArea;
import?javax.swing.SwingConstants;
import?javax.swing.Timer;
import?javax.swing.UIManager;
import?javax.swing.border.EmptyBorder;
public?class?LazyButton?extends?Jframe?{
????
????private?JPanel?contentPane;
????private?JButton?button;
????private?Timer?timer;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????try?{
????????????UIManager
????????????????????.setLookAndFeel(“com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel“);
????????}?catch?(Throwable?e)?{
????????????e.printStackTrace();
????????}
????????Event
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-08-28?11:19??.classpath
?????文件?????????379??2010-09-07?15:58??.project
?????文件?????????635??2010-08-28?11:19??.settings\org.eclipse.jdt.core.prefs
?????文件?????????697??2013-11-21?08:41??bin\LazyButton$1.class
?????文件?????????611??2013-11-21?08:41??bin\LazyButton$2.class
?????文件????????1280??2013-11-21?08:41??bin\LazyButton$3.class
?????文件????????3896??2013-11-21?08:41??bin\LazyButton.class
?????文件????????1791??2010-08-28?11:35??bin\lzw.txt
?????文件????????4249??2010-08-28?14:29??src\LazyButton.java
?????文件????????1791??2010-08-28?11:35??src\lzw.txt
- 上一篇:Java ob
ject類中線程相關的方法 - 下一篇:Java 設置表格的選擇模式
評論
共有 條評論