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