title: All my JavaFX TextFields have lines in them
body: <p>So, cutting my teeth on JavaFX, so far things are moving along fine.</p>
  
  <p>However, all of the text fields have a line running across them, 10px or so from the top.</p>
  
  <p>Not just in my application, but in the SceneBuilder application as well.</p>
  
  <p>Note, I'm not using any explicit CSS, I don't know what SceneBuilder uses. The screen shot is from SceneBuilder, my screens look identical.</p>
  
  <p><img src="https://i.stack.imgur.com/8Cj1k.png" alt="JavaFX TextFields"></p>
  
  <p>So, it's something fundamental.</p>
  
  <pre><code>java -version
  java version "1.8.0_45"
  Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
  Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
  </code></pre>
  
  <p>On <strong>Mac OS 10.9.5</strong></p>
  
  <p>Just curious if anyone else has seen this and has a suggestion.</p>
  
  <p>Edit: I downloaded the samples, it's clearly something to do with the Modena theme. The Caspian theme looks just fine. Below is a screenshot from the Modena.jar TextFields section. It's interesting that the <code>TextArea</code> suffers a similar issue, though not as universally as the <code>TextField</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/rmkY4.png" alt="Modena.jar screenshot"></p>
  
  <p>More addenda:</p>
  
  <p>Folks keep clamoring for this, so here it is. I essentially just followed this: <a href="https://docs.oracle.com/javafx/2/get_started/form.htm" rel="noreferrer">https://docs.oracle.com/javafx/2/get_started/form.htm</a> and use a default Netbeans 8.0.2 JavaFX Application project. Just cut and pasted it in from the website.</p>
  
  <pre><code>public class Fxlinetest extends Application {
  
      @Override
      public void start(Stage primaryStage) {
          primaryStage.setTitle("JavaFX Welcome");
  
          GridPane grid = new GridPane();
          grid.setAlignment(Pos.CENTER);
          grid.setHgap(10);
          grid.setVgap(10);
          grid.setPadding(new Insets(25, 25, 25, 25));
  
          Text scenetitle = new Text("Welcome");
          scenetitle.setFont(Font.font("Tahoma", FontWeight.NORMAL, 20));
          grid.add(scenetitle, 0, 0, 2, 1);
  
          Label userName = new Label("User Name:");
          grid.add(userName, 0, 1);
  
          TextField userTextField = new TextField();
          grid.add(userTextField, 1, 1);
  
          Label pw = new Label("Password:");
          grid.add(pw, 0, 2);
  
          PasswordField pwBox = new PasswordField();
          grid.add(pwBox, 1, 2);
  
          Button btn = new Button("Sign in");
          HBox hbBtn = new HBox(10);
          hbBtn.setAlignment(Pos.BOTTOM_RIGHT);
          hbBtn.getChildren().add(btn);
          grid.add(hbBtn, 1, 4);
  
          final Text actiontarget = new Text();
          grid.add(actiontarget, 1, 6);
  
          Scene scene = new Scene(grid, 300, 275);
          primaryStage.setScene(scene);
  
          primaryStage.show();
      }
  
      public static void main(String[] args) {
          launch(args);
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/KG16o.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KG16o.png" alt="Sample Form Screenshot"></a></p>
  
  <pre><code>java version "1.8.0_66"
  Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
  Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
  </code></pre>
  
  <p>Here's is a screen shot of the ThreeDOM view from ScenicView 8.6, notice the line:
  <a href="https://i.stack.imgur.com/ZpA2l.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZpA2l.png" alt="ThreeDOM view from ScenicView -- notice the line"></a></p>
  
  <pre><code>java version "1.8.0_74"
  Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
  Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
  </code></pre>
  
  <p>Here's the sample screen using the Caspian theme via:</p>
  
  <pre><code>    System.setProperty("javafx.userAgentStylesheetUrl", "caspian");
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XZwDZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XZwDZ.png" alt="Caspian Theme view"></a></p>