資源簡介
Java 設計計算器程序界面(基礎篇-實例017).zip
代碼片段和文件信息
package?com.lzw;
import?java.awt.Color;
import?java.awt.EventQueue;
import?java.awt.Insets;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JTextField;
import?javax.swing.UIManager;
public?class?Calculator?extends?Jframe?{
private?JTextField?textField;
/**
?*?Launch?the?application
?*?@param?args
?*/
public?static?void?main(String?args[])?{
EventQueue.invokeLater(new?Runnable()?{
public?void?run()?{
try?{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
Calculator?frame?=?new?Calculator();
frame.setVisible(true);
}?catch?(Exception?e)?{
e.printStackTrace();
}
}
});
}
/**
?*?Create?the?frame
?*/
public?Calculator()?{
super();
getContentPane().setLa
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-07-02?09:36??.classpath
?????文件?????????379??2010-09-07?11:19??.project
?????文件?????????629??2010-07-02?09:36??.settings\org.eclipse.jdt.core.prefs
?????文件?????????882??2013-11-21?08:40??bin\com\lzw\Calculator$1.class
?????文件????????4143??2013-11-21?08:40??bin\com\lzw\Calculator.class
?????文件????????7070??2010-07-02?09:36??src\com\lzw\Calculator.java
- 上一篇:Java 基于ba
se64編碼 - 下一篇:Java 設計關于進銷存管理系統的界面
評論
共有 條評論