userlabel.java
字号:
package piy.usercomponent;
import javax.swing.JLabel;
import piy.UserComponent;
/**
* A label object which the user can add to their windows. Properties include
* the text on the label.
* @author David Vivash
* @version 1.0, 29/11/00
*/
public class UserLabel extends JLabel implements UserComponent
{
public UserLabel() {
setText("Label");
}
public String getText() {
return super.getText();
}
public void setText(String text) {
super.setText(text);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -