資源簡介
Java 檢查代碼中的括號是否匹配(基礎篇-實例363).zip
代碼片段和文件信息
package?com.mingrisoft.jtextpane;
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?java.awt.Font;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.JScrollPane;
import?javax.swing.border.EmptyBorder;
import?javax.swing.UIManager;
public?class?MatcherTest?extends?Jframe?{
????
????/**
?????*?
?????*/
????private?static?final?long?serialVersionUID?=?2190653167733357032L;
????private?JPanel?contentPane;
????private?ParenthesisMatcher?textPane;
????
????/**
?????*?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?{
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????232??2010-09-11?17:00??.classpath
?????文件?????????379??2010-09-11?17:00??.project
?????文件?????????802??2013-11-21?08:41??bin\com\mingrisoft\jtextpane\MatcherTest$1.class
?????文件?????????775??2013-11-21?08:41??bin\com\mingrisoft\jtextpane\MatcherTest$2.class
?????文件????????2683??2013-11-21?08:41??bin\com\mingrisoft\jtextpane\MatcherTest.class
?????文件????????3253??2013-11-21?08:41??bin\com\mingrisoft\jtextpane\ParenthesisMatcher.class
?????文件????????2541??2010-09-11?17:00??src\com\mingrisoft\jtextpane\MatcherTest.java
?????文件????????2734??2010-09-11?17:00??src\com\mingrisoft\jtextpane\ParenthesisMatcher.java
- 上一篇:Java 修改列表項顯示方式
- 下一篇:Java Nimbus外觀
評論
共有 條評論