⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tanchu.java

📁 我传的第一个是八数码的盲目搜索,而这个是A*,请指教
💻 JAVA
字号:
/*
 * tanchu.java
 *
 * Created on 2007年10月1日, 下午3:31
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package text2;

import java.io.IOException;
import java.lang.System;
import java.lang.System;
import javax.swing.JFrame;
import javax.swing.JScrollPane;

/**
 *
 * @author user
 */
public class tanchu {
    
    /** Creates a new instance of tanchu */
    public tanchu() {
         JFrame f = new JFrame("八数码测试");
        ConsoleTextArea consoleTextArea = null;
        try {
            consoleTextArea = new ConsoleTextArea();
        }
        catch(IOException e) {
            System.err.println(
                "不能创建LoopedStreams:" + e);
            System.exit(1);
        }
        consoleTextArea.setFont(java.awt.Font.decode("monospaced"));
        f.getContentPane().add(new JScrollPane(consoleTextArea),
            java.awt.BorderLayout.CENTER);
        f.setBounds(50, 50, 400,600 );
        f.dispose();
        f.setVisible(true);
    }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -