📄 mylabel.java
字号:
/*
* Created on 2005-1-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.icbcsdc.ddlexp.ui.model;
import java.awt.Font;
import javax.swing.JLabel;
/**
* @author youhx
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class myLabel extends JLabel{
private Font myFont=new Font("宋体",Font.PLAIN,12);
public myLabel (){
super();
setFont(myFont);
}
public myLabel(String tx) {
super(tx);
// setForeground(Color.black);
setFont(myFont);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -