{"id":12540,"date":"2015-02-21T14:00:00","date_gmt":"2015-02-21T14:00:00","guid":{"rendered":"http:\/\/cloudcomputing.sys-con.com\/node\/3299307"},"modified":"2015-02-21T14:00:00","modified_gmt":"2015-02-21T14:00:00","slug":"javafx-8-keyboard-events-by-yfain-thingsexpo-iot","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/javafx-8-keyboard-events-by-yfain-thingsexpo-iot\/","title":{"rendered":"JavaFX 8: Keyboard Events By @YFain | @ThingsExpo [#IoT]"},"content":{"rendered":"<p>I ran into an interesting problems with JavaFX. When the GUI is done in FXML it seems that if a scene has only shapes (e.g., Rectangle, Circle, etc.) the handler method doesn\u2019t receive keyboard events. And the problem seems to be that there is no way (at least I don\u2019t see it) to give a focus to such a scene. I found a workaround, but I\u2019d appreciate if someone could offer a cleaner solution or confirm that this is a JavaFX bug.<\/p>\n<p><a href=\"http:\/\/cloudcomputing.sys-con.com\/node\/3299307\" >read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into an interesting problems with JavaFX. When the GUI is done in FXML it seems that if a scene has only shapes (e.g., Rectangle, Circle, etc.) the handler method doesn&rsquo;t receive keyboard events. And the problem seems to be that there is no way (at least I don&rsquo;t see it) to give a focus to such a scene. I found a workaround, but I&rsquo;d appreciate if someone could offer a cleaner solution or confirm that this is a JavaFX bug.<\/p>\n<p><a href=\"http:\/\/cloudcomputing.sys-con.com\/node\/3299307\" target=\"_blank\">read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-12540","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/12540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=12540"}],"version-history":[{"count":0,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/12540\/revisions"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=12540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=12540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=12540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}