是否有 JLabel 的追加功能,就像在 JTextArea 中一样?
JTextArea Text = new JTextArea("including; ");
Text.append("button1,");
最佳答案
不,但是每次你想添加文本时你都可以这样做
label.setText(label.getText() + "text u want to append");
关于java - 像在 JTextArea java 中一样在 JLabel 中 append 功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22233729/