showresult.java

来自「本程序实现八数码的实现」· Java 代码 · 共 27 行

JAVA
27
字号
import java.awt.BorderLayout;
import javax.swing.*;
public class ShowResult extends JFrame
{
	private static final long serialVersionUID = 1L;
	private JTextArea textArea;
	public void setTextArea(JTextArea textArea)
	{
		this.textArea = textArea;
	}
	public JTextArea getTextArea()
	{
		return textArea;
	}
	public  ShowResult()
	{ 
		this.setTitle("搜索结果:"); 
		this.setSize( 300, 400 ); 
		this.setLocation(600,160);
		this.setAlwaysOnTop(true); 
		this.setVisible(true);
		this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		this.textArea = new JTextArea();
		this.getContentPane().add(new JScrollPane(textArea),BorderLayout.CENTER);
	}
}

⌨️ 快捷键说明

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