📄 specialuibutton.java
字号:
package com.stefankrause.xplookandfeel;
import javax.swing.JButton;
import javax.swing.plaf.ButtonUI;
/**
* This Button uses the given ButtonUI to paint itself. Useful if a button should have
* a different look than the standard button. It refuses to change the UI delegate of the button.
*/
public class SpecialUIButton extends JButton {
ButtonUI myUI;
public SpecialUIButton(ButtonUI ui) {
this.ui=ui;
myUI=ui;
ui.installUI(this);
}
/**
* refuses to change the UI delegate. It keeps the one set in the constructor.
* @see javax.swing.AbstractButton#setUI(ButtonUI)
*/
public void setUI(ButtonUI ui) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -