📄 showresult.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -