{"id":2324,"date":"2018-10-24T18:29:53","date_gmt":"2018-10-24T22:29:53","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=2324"},"modified":"2018-10-24T10:52:27","modified_gmt":"2018-10-24T14:52:27","slug":"javafx-event-handling","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2018\/10\/24\/javafx-event-handling\/","title":{"rendered":"JavaFX Event Handling"},"content":{"rendered":"\n<p>I&#8217;m finding myself needing a better understanding of JavaFX UI event handling and my basic JavaFX books seem to ignore most of that aspect of the system. It looks as if the wiring of UI events is buried deep enough and the handling is automated enough that most of the time there&#8217;s no need to directly interact with events.<\/p>\n\n\n\n<p>I need to perform an action when a given UI panel is exposed after being hidden&#8230;a simple enough activity in most cases. I expect I&#8217;ll find the right controls soon enough, just a bit surprised that they&#8217;re not talked about as directly as I&#8217;m used to.<\/p>\n\n\n\n<p>Looking as if the easy route to this may be to name the top level pane in a given area and then attach a &#8216;show&#8217; handler to that pane. Hoping this works as this would make it pretty easy to do what I need to get done.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Some links that I&#8217;m recording for later convenience (some just interesting here not directly relevant):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javase-clienttechnologies.htm\">Java Platform, Standard Edition (Java SE) 8 : JavaFX<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/user-interface-tutorial\/charts.htm#JFXUI577\">Working with JavaFX Charts<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/graphics-tutorial\/javafx-3d-graphics.htm#JFXGR256\">Getting Started with JavaFX 3D Graphics<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/events.htm#JFXED117\">JavaFX: Handling Events<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/processing.htm#CEGJAAFD\">JavaFX: Handling Events &#8211;\u00a01 Processing Events<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/convenience_methods.htm#BABCCIHI\">JavaFX: Handling Events &#8211;\u00a02 Working with Convenience Methods<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/filters.htm#BCFDCCEJ\">JavaFX: Handling Events &#8211;\u00a03 Working with Event Filters<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/handlers.htm#BABBHHCJ\">JavaFX: Handling Events &#8211;\u00a04 Working with Event Handlers<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/gestures.htm#CHDDHFJJ\">JavaFX: Handling Events &#8211;\u00a05 Working with Events from Touch-Enabled Devices<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/events-tutorial\/touch_events.htm#CHDHBGJA\">JavaFX: Handling Events &#8211;\u00a06 Working with Touch Events<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/scene-graph-tutorial\/scenegraph.htm#JFXSG107\">JavaFX: Working with the JavaFX Scene Graph<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/api\/toc.htm\">JavaFX 8 API Overview<\/a><\/li><li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/api\/javafx\/scene\/doc-files\/cssref.html\">JavaFX CSS Reference Guide<\/a><\/li><\/ul>\n\n\n\n<p>The charting and 3D API items are of interest, but not part of this, but I&#8217;m trying to keep notes on where things were found so that I can go back and dig deeper later&#8230;a small amount of clutter for convenience&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m finding myself needing a better understanding of JavaFX UI event handling and my basic JavaFX books seem to ignore most of that aspect of the system. It looks as if the wiring of UI events is buried deep enough and the handling is automated enough that most of the time there&#8217;s no need to &hellip; <a href=\"https:\/\/ninecrows.com\/career\/2018\/10\/24\/javafx-event-handling\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">JavaFX Event Handling<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[9,69,70,5,7],"tags":[],"class_list":["post-2324","post","type-post","status-publish","format-standard","hentry","category-daily-blog","category-java","category-javafx","category-thoughts","category-topics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-Bu","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2324"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=2324"}],"version-history":[{"count":4,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2324\/revisions"}],"predecessor-version":[{"id":2328,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2324\/revisions\/2328"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=2324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=2324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=2324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}