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

📄 infopane.java

📁 一个C语言子集的编译器
💻 JAVA
字号:
package com.king4solomon.homework.compiler.gui;

import java.awt.*;

import javax.swing.*;
import javax.swing.border.*;

@SuppressWarnings("serial")
public class InfoPane extends JScrollPane {
	public InfoPane(){
		super(area,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		setBorder(new SoftBevelBorder(BevelBorder.LOWERED, Color.LIGHT_GRAY,
				Color.GRAY));
		
		area.setEditable(false);
		area.setBackground(Color.BLACK);
		area.setForeground(Color.GREEN);
		area.setFont(new Font("",Font.BOLD,15));
		area.setVisible(true);
	}
	public static void write(String s){
		area.append(s);
	}
	public static void setText(String s){
		area.setText(s);
	}
	
	public static void setBlank(){
		area.setText("");
	}
	private static JTextArea area = new JTextArea();
}

⌨️ 快捷键说明

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