![](/img/trans.png)
[英]Is it possible to have a different font colors on one JLabel inside in the JList?
[英]Jlist and Jlabel to change views in one panel
要更改標簽上的文字,請使用
lbl.setText( "New message" );
要更改標簽上的圖像,請使用
icon = new ImageIcon( "new image.png" ); img.setIcon( icon );
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.