{"id":322,"date":"2016-01-13T15:23:33","date_gmt":"2016-01-13T23:23:33","guid":{"rendered":"http:\/\/www.ewert-technologies.ca\/blogs\/?p=322"},"modified":"2020-05-04T11:56:51","modified_gmt":"2020-05-04T18:56:51","slug":"javafx-binding-example-sync-controls-disabled-state","status":"publish","type":"post","link":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/","title":{"rendered":"JavaFX binding example to sync a Control&#8217;s disabled state"},"content":{"rendered":"\n<p>I have recently been learning JavaFX 8 by developing a JavaFX application.&nbsp; One of the new concepts in JavaFX is that of properties and binding, whereby, you can link (or bind) the property from one object, to the property of another.&nbsp; In this article, I won&#8217;t explain the concepts of binding, or of properties (see <a href=\"https:\/\/docs.oracle.com\/javase\/8\/javafx\/properties-binding-tutorial\/binding.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Using JavaFX Properties and Binding<\/a> for more info), but will show you a JavaFX binding example, of how to use binding, to easily set whether a UI control is enabled or disabled, based on a property of another control.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Example 1<\/h2>\n\n\n\n<p>Often, when creating a User Interface, one control, needs to be enabled, or disabled, based on another control.&nbsp; One example I had recently, is where I have a <em>ComboBox<\/em>, with a list of values that the user can choose from, and beside it, a <em>CheckBox<\/em>, which when checked, will cause the UI to use the default value.&nbsp; The UI logic is, that if the <em>CheckBox<\/em> is checked, the <em>ComboBox<\/em> should be disabled, and if the <em>CheckBox<\/em> is un-checked, the <em>ComboBox<\/em> should be enabled (see screen shot).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"307\" src=\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/combox-binding-example.png?resize=737%2C307&#038;ssl=1\" alt=\"ComboBox Binding Example\" class=\"wp-image-336\" srcset=\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/combox-binding-example.png?w=737&amp;ssl=1 737w, https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/combox-binding-example.png?resize=300%2C125&amp;ssl=1 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<p>Traditionally I would have had to create a Listener on the <em>CheckBox<\/em>, and when the state of the <em>CheckBox<\/em> changed, I would check the new state of the <em>CheckBox<\/em> and then set the <em>ComboxBox<\/em> to either enabled or disabled, accordingly.<\/p>\n\n\n\n<p>Use binding, however, I can bind the <em>ComboBox&#8217;s<\/em> <em>disable<\/em> property, to the <em>CheckBox&#8217;s<\/em> <em>selected<\/em> property, in one statement:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code lang:java mark:6 decode:true\"><pre class=\"brush: javafx; title: ; notranslate\" title=\"\">\nComboxBox timeZoneComboBox;\nCheckBox useDefaultTimeZoneCheckBox;\n\n...\n\nthis.timeZoneComboBox.disableProperty().bind(this.useDefaultTimeZoneCheckBox.selectedProperty());\n\n...\n<\/pre><\/div>\n\n\n<p>Typically, this would be done in the <span class=\"lang:java decode:true crayon-inline  \">initialize()<\/span>&nbsp; method of the ViewController.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example 2<\/h2>\n\n\n\n<p>Another case I had, was where I had a <em>TableView<\/em>, with <em>Add<\/em> and <em>Remove<\/em> buttons.&nbsp; The user could click the <em>Add<\/em> button to add a row to the table, and the <em>Remove<\/em> button to remove a row.&nbsp; For the UI logic, I only wanted to <em>Remove<\/em> button to be enabled, if a row in the Table was currently selected.&nbsp; I was able to do this, with a slightly more complex use of binding:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code wrap:false lang:java mark:6 decode:true\"><pre class=\"brush: javafx; title: ; notranslate\" title=\"\">\nButton removeButton;\nTableView timeZoneTable;\n\n...\n\nthis.removeButton.disableProperty().bind(BooleanExpression.booleanExpression(this.timeZoneTable.getSelectionModel().selectedItemProperty().isNull()));\n\n...\n<\/pre><\/div>\n\n\n<p>In this example, I used binding to bind the <em>Button&#8217;s<\/em> disable property to a <em>booleanExpression<\/em> based the Table&#8217;s SelectionModel&#8217;s <em>selectedItem<\/em> property, by checking if it was <span class=\"lang:java decode:true  crayon-inline \">null<\/span>&nbsp;.<\/p>\n\n\n\n<p>These are just two examples of how to use binding to set whether a control is enabled or disabled automatically, based on another control.&nbsp; Hopefully you find these examples useful, and can incorporate this idea into your own JavaFX applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have recently been learning JavaFX 8 by developing a JavaFX application.&nbsp; One of the new concepts in JavaFX is that of properties and binding, whereby, you can link (or bind) the property from one object, to the property of another.&nbsp; In this article, I won&#8217;t explain the concepts of binding, or of properties (see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":338,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[27,26,28],"class_list":["post-322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-binding","tag-javafx","tag-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaFX binding example to sync a Control&#039;s disabled state - Ewert Technologies Blog<\/title>\n<meta name=\"description\" content=\"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaFX binding example to sync a Control&#039;s disabled state - Ewert Technologies Blog\" \/>\n<meta property=\"og:description\" content=\"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\" \/>\n<meta property=\"og:site_name\" content=\"Ewert Technologies Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/EwertTechnologies\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/EwertTechnologies\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-13T23:23:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-04T18:56:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor Ewert\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EwertTech\" \/>\n<meta name=\"twitter:site\" content=\"@EwertTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Victor Ewert\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\"},\"author\":{\"name\":\"Victor Ewert\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/83341249e0e6fd8678a5f2cda46f92a0\"},\"headline\":\"JavaFX binding example to sync a Control&#8217;s disabled state\",\"datePublished\":\"2016-01-13T23:23:33+00:00\",\"dateModified\":\"2020-05-04T18:56:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\"},\"wordCount\":417,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1\",\"keywords\":[\"Binding\",\"JavaFX\",\"Tips\"],\"articleSection\":[\"Technology News and Tips\"],\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\",\"url\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\",\"name\":\"JavaFX binding example to sync a Control's disabled state - Ewert Technologies Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1\",\"datePublished\":\"2016-01-13T23:23:33+00:00\",\"dateModified\":\"2020-05-04T18:56:51+00:00\",\"description\":\"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#breadcrumb\"},\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1\",\"width\":300,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ewert-technologies.ca\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaFX binding example to sync a Control&#8217;s disabled state\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#website\",\"url\":\"https:\/\/www.ewert-technologies.ca\/blogs\/\",\"name\":\"Ewert Technologies Blog\",\"description\":\"Welcome to the Ewert Technologies Blog Site\",\"publisher\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ewert-technologies.ca\/blogs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#organization\",\"name\":\"Ewert Technologies\",\"url\":\"https:\/\/www.ewert-technologies.ca\/blogs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/logo_200.png?fit=200%2C79&ssl=1\",\"contentUrl\":\"https:\/\/i1.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/logo_200.png?fit=200%2C79&ssl=1\",\"width\":200,\"height\":79,\"caption\":\"Ewert Technologies\"},\"image\":{\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/EwertTechnologies\",\"https:\/\/x.com\/EwertTech\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/83341249e0e6fd8678a5f2cda46f92a0\",\"name\":\"Victor Ewert\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ewert-technologies.ca\/blogs\/wp-content\/litespeed\/avatar\/9de67af6c08020159b0c49938492aada.jpg?ver=1776826808\",\"contentUrl\":\"https:\/\/www.ewert-technologies.ca\/blogs\/wp-content\/litespeed\/avatar\/9de67af6c08020159b0c49938492aada.jpg?ver=1776826808\",\"caption\":\"Victor Ewert\"},\"description\":\"I am Victor Ewert, an Independent Software Developer and owner of Ewert Technologies. In the past I have worked as a Software Tester including working on Software Test automation. My current technology interests include Java, JavaFX, Kotlin, Swift, Privacy and Security, and Mobile App development.\",\"sameAs\":[\"https:\/\/www.ewert-technologies.ca\/home\",\"https:\/\/www.facebook.com\/EwertTechnologies\",\"https:\/\/www.linkedin.com\/in\/vewert\",\"https:\/\/x.com\/EwertTech\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaFX binding example to sync a Control's disabled state - Ewert Technologies Blog","description":"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/","og_locale":"en_US","og_type":"article","og_title":"JavaFX binding example to sync a Control's disabled state - Ewert Technologies Blog","og_description":"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control","og_url":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/","og_site_name":"Ewert Technologies Blog","article_publisher":"https:\/\/www.facebook.com\/EwertTechnologies","article_author":"https:\/\/www.facebook.com\/EwertTechnologies","article_published_time":"2016-01-13T23:23:33+00:00","article_modified_time":"2020-05-04T18:56:51+00:00","og_image":[{"width":300,"height":150,"url":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","type":"image\/png"}],"author":"Victor Ewert","twitter_card":"summary_large_image","twitter_creator":"@EwertTech","twitter_site":"@EwertTech","twitter_misc":{"Written by":"Victor Ewert","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#article","isPartOf":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/"},"author":{"name":"Victor Ewert","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/83341249e0e6fd8678a5f2cda46f92a0"},"headline":"JavaFX binding example to sync a Control&#8217;s disabled state","datePublished":"2016-01-13T23:23:33+00:00","dateModified":"2020-05-04T18:56:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/"},"wordCount":417,"commentCount":1,"publisher":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#organization"},"image":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","keywords":["Binding","JavaFX","Tips"],"articleSection":["Technology News and Tips"],"inLanguage":"en-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/","url":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/","name":"JavaFX binding example to sync a Control's disabled state - Ewert Technologies Blog","isPartOf":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage"},"image":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","datePublished":"2016-01-13T23:23:33+00:00","dateModified":"2020-05-04T18:56:51+00:00","description":"This articles JavaFX binding example to describes how to use Binding in JavaFX, to synchronize the disabled state of a control with another control","breadcrumb":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#breadcrumb"},"inLanguage":"en-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/"]}]},{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#primaryimage","url":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","width":300,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/technology\/javafx-binding-example-sync-controls-disabled-state\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ewert-technologies.ca\/blogs\/"},{"@type":"ListItem","position":2,"name":"JavaFX binding example to sync a Control&#8217;s disabled state"}]},{"@type":"WebSite","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#website","url":"https:\/\/www.ewert-technologies.ca\/blogs\/","name":"Ewert Technologies Blog","description":"Welcome to the Ewert Technologies Blog Site","publisher":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ewert-technologies.ca\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-CA"},{"@type":"Organization","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#organization","name":"Ewert Technologies","url":"https:\/\/www.ewert-technologies.ca\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/logo_200.png?fit=200%2C79&ssl=1","contentUrl":"https:\/\/i1.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/logo_200.png?fit=200%2C79&ssl=1","width":200,"height":79,"caption":"Ewert Technologies"},"image":{"@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/EwertTechnologies","https:\/\/x.com\/EwertTech"]},{"@type":"Person","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/83341249e0e6fd8678a5f2cda46f92a0","name":"Victor Ewert","image":{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/www.ewert-technologies.ca\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-content\/litespeed\/avatar\/9de67af6c08020159b0c49938492aada.jpg?ver=1776826808","contentUrl":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-content\/litespeed\/avatar\/9de67af6c08020159b0c49938492aada.jpg?ver=1776826808","caption":"Victor Ewert"},"description":"I am Victor Ewert, an Independent Software Developer and owner of Ewert Technologies. In the past I have worked as a Software Tester including working on Software Test automation. My current technology interests include Java, JavaFX, Kotlin, Swift, Privacy and Security, and Mobile App development.","sameAs":["https:\/\/www.ewert-technologies.ca\/home","https:\/\/www.facebook.com\/EwertTechnologies","https:\/\/www.linkedin.com\/in\/vewert","https:\/\/x.com\/EwertTech"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.ewert-technologies.ca\/blogs\/wp-content\/uploads\/javafx_logo_color-300x150.png?fit=300%2C150&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":20,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":893,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/posts\/322\/revisions\/893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/media\/338"}],"wp:attachment":[{"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ewert-technologies.ca\/blogs\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}