資源簡介
Java 獲取字符串中漢字的個數(基礎篇-實例075).zip
代碼片段和文件信息
import?java.awt.EventQueue;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.util.regex.Pattern;
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.JTextField;
import?javax.swing.UIManager;
import?javax.swing.border.EmptyBorder;
public?class?ChineseAmount?extends?Jframe?{
????
????private?JPanel?contentPane;
????private?JTextArea?chineseArea;
????private?JTextField?numField;
????
????/**
?????*?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?{
????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-07-17?13:51??.classpath
?????文件?????????379??2010-09-07?13:41??.project
?????文件?????????635??2010-07-17?13:51??.settings\org.eclipse.jdt.core.prefs
?????文件?????????712??2013-11-21?08:40??bin\ChineseAmount$1.class
?????文件?????????662??2013-11-21?08:40??bin\ChineseAmount$2.class
?????文件????????3222??2013-11-21?08:40??bin\ChineseAmount.class
?????文件????????3362??2010-07-17?15:14??src\ChineseAmount.java
- 上一篇:Java 表頭與列的高度設置
- 下一篇:Java 使用直接插入法
評論
共有 條評論