title: Why can't i select JFXTextfield in scenebuilder and add it
body: <p><strong>JFTTextArea</strong> and <strong>JFXButton</strong> works but why not the <strong>JFXTextField</strong>?</p>
  <p>I have added foenix Library so I have got all the JFXTextField
  But i am not able to place JFXTextField in the SceneBuilder !!
  <a href="https://i.stack.imgur.com/74CZq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/74CZq.jpg" alt="enter image description here" /></a></p>
  <p>Here I have added the library in the project structure.
  <a href="https://i.stack.imgur.com/gqstK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gqstK.jpg" alt="enter image description here" /></a></p>
  <p>If i forcefully add JFXTextField in the sample.xml in the text mode,
  It doesn't show compiler error
  But instead shows</p>
  <pre><code>Unable to make boolean java.lang.reflect.AccessibleObject.setAccessible0(boolean) accessible: module java.base does not &quot;opens java.lang.reflect&quot; to module com.jfoenix
  </code></pre>
  <p>The complete Error looks like:</p>
  <pre><code>java.lang.reflect.InaccessibleObjectException: Unable to make boolean java.lang.reflect.AccessibleObject.setAccessible0(boolean) accessible: module java.base does not &quot;opens java.lang.reflect&quot; to module com.jfoenix
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
      at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
      at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
      at com.jfoenix/com.jfoenix.adapters.ReflectionHelper.&lt;clinit&gt;(ReflectionHelper.java:48)
      at com.jfoenix/com.jfoenix.skins.JFXTextFieldSkin.&lt;init&gt;(JFXTextFieldSkin.java:59)
      at com.jfoenix/com.jfoenix.controls.JFXTextField.createDefaultSkin(JFXTextField.java:69)
      at javafx.controls/javafx.scene.control.Control.doProcessCSS(Control.java:897)
      at javafx.controls/javafx.scene.control.Control$1.doProcessCSS(Control.java:89)
      at javafx.controls/com.sun.javafx.scene.control.ControlHelper.processCSSImpl(ControlHelper.java:67)
      at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:145)
      at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1400)
      at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)
      at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)
      at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:145)
      at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9547)
      at javafx.graphics/javafx.scene.Scene.doCSSPass(Scene.java:569)
      at javafx.graphics/javafx.scene.Scene.preferredSize(Scene.java:1747)
      at javafx.graphics/javafx.scene.Scene$2.preferredSize(Scene.java:393)
      at javafx.graphics/com.sun.javafx.scene.SceneHelper.preferredSize(SceneHelper.java:66)
      at javafx.graphics/javafx.stage.Window$12.invalidated(Window.java:1111)
      at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
      at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
      at javafx.graphics/javafx.stage.Window.setShowing(Window.java:1187)
      at javafx.graphics/javafx.stage.Window.show(Window.java:1202)
      at javafx.graphics/javafx.stage.Stage.show(Stage.java:273)
      at Material.Design.Scene.Builder/sample.Main.start(Main.java:16)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:474)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:447)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:446)
      at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
      at java.base/java.lang.Thread.run(Thread.java:831)
  Exception in Application start method
  java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071)
  Caused by: java.lang.RuntimeException: Exception in Application start method
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
      at java.base/java.lang.Thread.run(Thread.java:831)
  Caused by: java.lang.NullPointerException: Cannot invoke &quot;javafx.scene.Node.getLayoutBounds()&quot; because &quot;this.textNode&quot; is null
      at com.jfoenix/com.jfoenix.skins.JFXTextFieldSkin.updateTextPos(JFXTextFieldSkin.java:109)
      at com.jfoenix/com.jfoenix.skins.JFXTextFieldSkin.layoutChildren(JFXTextFieldSkin.java:93)
      at javafx.controls/javafx.scene.control.Control.layoutChildren(Control.java:601)
      at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1207)
      at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
      at javafx.graphics/javafx.scene.Scene.doLayoutPass(Scene.java:576)
      at javafx.graphics/javafx.scene.Scene.preferredSize(Scene.java:1750)
      at javafx.graphics/javafx.scene.Scene$2.preferredSize(Scene.java:393)
      at javafx.graphics/com.sun.javafx.scene.SceneHelper.preferredSize(SceneHelper.java:66)
      at javafx.graphics/javafx.stage.Window$12.invalidated(Window.java:1111)
      at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
      at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
      at javafx.graphics/javafx.stage.Window.setShowing(Window.java:1187)
      at javafx.graphics/javafx.stage.Window.show(Window.java:1202)
      at javafx.graphics/javafx.stage.Stage.show(Stage.java:273)
      at Material.Design.Scene.Builder/sample.Main.start(Main.java:16)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:474)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:447)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:446)
      at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
      ... 1 more
  Exception running application sample.Main
  
  Process finished with exit code 1
  </code></pre>
  <p>I even Tried with this link <a href="https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m">Stack OverFlow: Reflection error</a>
  But couldn't very well connect :(</p>
  <p>My sample.xml goes like so:</p>
  <pre><code>&lt;AnchorPane maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;400.0&quot; prefWidth=&quot;600.0&quot; xmlns=&quot;http://javafx.com/javafx/11.0.2&quot; xmlns:fx=&quot;http://javafx.com/fxml/1&quot; fx:controller=&quot;sample.Controller&quot;&gt;
     &lt;children&gt;
        &lt;Button fx:id=&quot;button&quot; layoutX=&quot;494.0&quot; layoutY=&quot;187.0&quot; mnemonicParsing=&quot;false&quot; prefHeight=&quot;26.0&quot; prefWidth=&quot;74.0&quot; text=&quot;Button&quot; /&gt;
        &lt;TextField fx:id=&quot;textField&quot; layoutX=&quot;44.0&quot; layoutY=&quot;140.0&quot; /&gt;
        &lt;JFXTextField fx:id=&quot;textField1&quot; layoutX=&quot;433.0&quot; layoutY=&quot;140.0&quot; promptText=&quot;Type in here&quot;&gt;
           &lt;effect&gt;
              &lt;InnerShadow /&gt;
           &lt;/effect&gt;&lt;/JFXTextField&gt;
        &lt;JFXTextField /&gt;
        &lt;JFXTextArea fx:id=&quot;JFXtextArea&quot; layoutX=&quot;51.0&quot; prefHeight=&quot;116.0&quot; prefWidth=&quot;518.0&quot; /&gt;
        &lt;TextArea fx:id=&quot;textArea&quot; layoutX=&quot;51.0&quot; layoutY=&quot;245.0&quot; prefHeight=&quot;130.0&quot; prefWidth=&quot;518.0&quot; /&gt;
        &lt;JFXButton fx:id=&quot;buutton&quot; layoutX=&quot;44.0&quot; layoutY=&quot;187.0&quot; prefHeight=&quot;26.0&quot; prefWidth=&quot;99.0&quot; text=&quot;Button&quot;&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
        
  </code></pre>