看板 java 關於我們 聯絡資訊
原本在 JFrame 上貼一個 JLable 然後 addKeyListner 實作 keyTyped方法 內容是在 JLable 的 text 設定為 keyChar 值 到此一切都正常 不過當我再貼一個乾乾淨淨的 JButton 之後 而且還沒寫任何事件 這時 JLable 的 text 就不會顯示出 keyChar 值了 有點搞不懂為啥只是加了一個 JButton 之後就變成這樣子 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 58.115.90.202
chchwy:八成是focus問題 06/25 18:12