< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/Tab.java

Print this page

        

@@ -352,10 +352,13 @@
      * to a layout container.</p>
      * @param value the content node
      */
     public final void setContent(Node value) {
         contentProperty().set(value);
+        if (isDisable() && (value != null)) {
+            value.setDisable(true);
+        }
     }
 
     /**
      * <p>The content associated with the tab.</p>
      *
< prev index next >