mylabel.java

来自「导出ORACLE数据库对象DDL语句的程序」· Java 代码 · 共 35 行

JAVA
35
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?