• 大小: 7.29KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-20
  • 语言: Java
  • 标签:

资源简介

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

评论

共有 条评论