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