cab2bbutton.java

来自「Document will be uploaded soon」· Java 代码 · 共 26 行

JAVA
26
字号
package com.component;

import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JButton;

public class Cab2bButton extends JButton{
	
	public Cab2bButton(String strLabel)
	{
		this(strLabel, false);
	}
	
	public Cab2bButton(String strLabel, boolean isSimpleButtonUI)
	{
		super(strLabel);
		this.setPreferredSize(new Dimension(85,22));
		/*Arial font in windows is mapped to the SansSerif logical name.*/
		this.setFont(new Font("SansSerif",Font.PLAIN,12));
		if(isSimpleButtonUI)
			this.setUI(new Cab2bBasicButtonUI());
	}
	
}

⌨️ 快捷键说明

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