📄 customtitledborder.java
字号:
import javax.swing.border.*;
import java.awt.*;
/** This class extends TitledBorder to change the settings according
to requirements.
*/
class CustomTitledBorder extends TitledBorder{
CustomTitledBorder(String title){
super(new EtchedBorder(),title,CENTER,DEFAULT_POSITION);
setTitleColor(Utilities.getTextColor());
}
CustomTitledBorder(String title,Color c1,Color c2){
super(new EtchedBorder(c1,c2),title,CENTER,DEFAULT_POSITION);
setTitleColor(Utilities.getTextColor());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -