資源簡介
Java 根據標點符號對字符串進行分行(基礎篇-實例073).zip
代碼片段和文件信息
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.JTextArea;
import?javax.swing.border.EmptyBorder;
import?javax.swing.JLabel;
import?javax.swing.border.titledBorder;
import?javax.swing.JScrollPane;
import?javax.swing.JButton;
import?java.awt.event.ActionListener;
import?java.awt.event.ActionEvent;
import?javax.swing.UIManager;
public?class?StringLinewrap?extends?Jframe?{
????
????private?JPanel?contentPane;
????private?JTextArea?sourceTextArea;
????private?JTextArea?destinationTextArea;
????
????/**
?????*?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()?{
??????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-07-17?08:59??.classpath
?????文件?????????379??2010-09-07?13:39??.project
?????文件?????????635??2010-07-17?08:59??.settings\org.eclipse.jdt.core.prefs
?????文件?????????717??2013-11-21?08:40??bin\StringLinewrap$1.class
?????文件?????????668??2013-11-21?08:40??bin\StringLinewrap$2.class
?????文件????????3504??2013-11-21?08:40??bin\StringLinewrap.class
?????文件????????3860??2010-07-17?10:24??src\StringLinewrap.java
評論
共有 條評論