[英]How to make a list of JLabel's act as a button group?
如您在這張圖片中看到的,所有字符都被選中,但是我希望它有所不同。 我希望它充當單選按鈕,例如,當我單擊一個字符時,應取消選擇所有其他字符。
您可以簡單地使用if語句禁用或使所有其余標簽一經選擇就不可見。
[英]How to make a TextView act as a button in Android Studio?
[英]How to make a JLabel's setText a safe method
[英]How to make a JLabel clickable?
[英]Make a bunch of JLabel 's' invisible
[英]How to make another line in JLabel
[英]How to make a JLabel became dragable?
[英]How to display a JLabel's icon over another JLabel's icon
[英]JPanel's border make JLabel disappear
[英]How can I make my JLabel's text, using a custom font, antialiased?
[英]How do I make a JLabel's text wrap based on available space?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.