📄 e744. changing the label of a jbutton component.txt
字号:
See also e745 Creating a Multiline Label for a JButton Component.
// To create a button, see e743 Creating a JButton Component
// Change the label
button.setText("New Label");
// Remove the label; this is useful for a button with only an icon
button.setText(null);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -