資源簡介
Java 只能輸入整數的文本域(基礎篇-實例369).zip
代碼片段和文件信息
package?com.mingrisoft.jformattedtextfield;
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?javax.swing.UIManager;
import?java.awt.GridLayout;
import?javax.swing.JLabel;
import?javax.swing.JFormattedTextField;
import?javax.swing.JTextField;
import?javax.swing.JButton;
import?java.awt.Font;
import?java.awt.event.WindowAdapter;
import?java.awt.event.WindowEvent;
import?java.awt.event.ActionListener;
import?java.awt.event.ActionEvent;
public?class?IntegerOnlyTextField?extends?Jframe?{
????
????/**
?????*?
?????*/
????private?static?final?long?serialVersionUID?=?-6338040209770877326L;
????private?JPanel?contentPane;
????private?JTextField?textField;
????private?JFormattedTextField?formattedTextField;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????try?{
????????????UIManager.setLookAndFee
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????232??2010-09-11?17:00??.classpath
?????文件?????????379??2010-09-11?17:00??.project
?????文件?????????887??2013-11-21?08:41??bin\com\mingrisoft\jformattedtextfield\IntegerOnlyTextField$1.class
?????文件?????????852??2013-11-21?08:41??bin\com\mingrisoft\jformattedtextfield\IntegerOnlyTextField$2.class
?????文件?????????879??2013-11-21?08:41??bin\com\mingrisoft\jformattedtextfield\IntegerOnlyTextField$3.class
?????文件????????3796??2013-11-21?08:41??bin\com\mingrisoft\jformattedtextfield\IntegerOnlyTextField.class
?????文件????????4012??2010-09-11?17:00??src\com\mingrisoft\jformattedtextfield\IntegerOnlyTextField.java
- 上一篇:Java 大樂透號碼生成器
- 下一篇:Java 動態展開窗體
評論
共有 條評論