corepane.java

来自「一个C语言子集的编译器」· Java 代码 · 共 40 行

JAVA
40
字号
package com.king4solomon.homework.compiler.gui;

import javax.swing.*;

@SuppressWarnings("serial")
public class CorePane extends JTabbedPane {
	public CorePane() {
		super();
		console = new ConsolePane();
		problem = new ProblemPane();
		info = new InfoPane();
		watch = new WatchPane();
		addTab("Console", new ImageIcon("images/console_obj.gif"),console);
		addTab("Problem", new ImageIcon("images/warning.gif"),problem);
		addTab("Infomation",new ImageIcon("images/information.gif"), info);
	}
	public static void clear(){
		ConsolePane.setBlank();
		ProblemPane.setBlank();
		InfoPane.setBlank();
	}
	public  void addWatch(){
		addTab("Watch",new ImageIcon("images/watch.gif"),watch);
		hasWatch = true;
	}
	public  void delWatch(){
		remove(3);
		hasWatch = false;
	}
	boolean hasWatch = false;
	
	private static WatchPane watch;

	private static ConsolePane console;

	private static ProblemPane problem;

	private static InfoPane info;
}

⌨️ 快捷键说明

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