开发者

How to Capture Dialog (Swing) Focus Lost Event in Scala?

开发者 https://www.devze.com 2023-03-19 11:55 出处:网络
Whi开发者_运维技巧le I can listenTo(button) FocusLost event, I don\'t seem to be able to capture FocusLost event in a Dialog (Scala\'s Swing Component). How do I do that? I tried adding Publisher trai

Whi开发者_运维技巧le I can listenTo(button) FocusLost event, I don't seem to be able to capture FocusLost event in a Dialog (Scala's Swing Component). How do I do that? I tried adding Publisher trait to Dialog but nothing works. Any advice is great here.

Thanks

/lim/


You can alsways work with the underlying Java Swing objects. Call .peer on your Dialog object and receive a JDialog object.

0

精彩评论

暂无评论...
验证码 换一张
取 消