Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个中添加array了labels一个panel。如何label在运行时将显示更改为其他文本java?例如(标签数组读取然后它必须在运行时- - - - - 更改为)a p p l e
array
labels
panel
label
java
- - - - -
a p p l e
使用 label.setText("") 方法
标签标签=新标签();label.setText(文本)