資源簡介
Java 忙碌的按鈕控件(基礎篇-實例396).zip
代碼片段和文件信息
package?com.lzw;
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?javax.swing.JLabel;
import?java.awt.Font;
import?javax.swing.SwingConstants;
import?javax.swing.JButton;
import?java.awt.Cursor;
import?javax.swing.UIManager;
public?class?BusyButton?extends?Jframe?{
????
????private?JPanel?contentPane;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????try?{
????????????UIManager
????????????????????.setLookAndFeel(“com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel“);
????????}?catch?(Throwable?e)?{
????????????e.printStackTrace();
????????}
????????EventQueue.invokeLater(new?Runnable()?{
????????????public?void?run()?{
????????????????try?{
????????????????????BusyButton?frame?=?new?BusyButton();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
??????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-08-26?08:52??.classpath
?????文件?????????379??2010-09-07?15:30??.project
?????文件?????????635??2010-08-26?08:52??.settings\org.eclipse.jdt.core.prefs
?????文件?????????729??2013-11-21?08:41??bin\com\lzw\BusyButton$1.class
?????文件????????2085??2013-11-21?08:41??bin\com\lzw\BusyButton.class
?????文件????????2176??2010-08-26?09:13??src\com\lzw\BusyButton.java
- 上一篇:Java ASCII編碼查看器
- 下一篇:Java 在壓縮文件中查找字符串
評論
共有 條評論