title: table column won't take full size of the table view in javaFX
body: <p>i am trying to create a table with two columns.
  i am using the scene builder included in netbeans 7.2.
  in all the examples i have seen all you need to do is drag the table column to the table and it will take the full size, this is not true in my case.
  this is the fxml file generated by the scene builder.
  just to be clear i am not changing the table properties from the java.</p>
  
  <p>the fxml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import java.lang.*?&gt;
  &lt;?import java.net.*?&gt;
  &lt;?import java.util.*?&gt;
  &lt;?import javafx.geometry.*?&gt;
  &lt;?import javafx.scene.*?&gt;
  &lt;?import javafx.scene.control.*?&gt;
  &lt;?import javafx.scene.image.*?&gt;
  &lt;?import javafx.scene.layout.*?&gt;
  &lt;?import javafx.scene.text.*?&gt;
  
  &lt;AnchorPane id="AnchorPane" prefHeight="758.0" prefWidth="956.0" styleClass="screen" xmlns:fx="http://javafx.com/fxml" fx:controller="bgu.dcr.az.cpu.ui.expb.ExperimentBuilderScreen"&gt;
    &lt;children&gt;
      &lt;GridPane id="gridPane1" prefHeight="517.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
        &lt;children&gt;
          &lt;Label id="label1" alignment="CENTER" contentDisplay="CENTER" prefHeight="38.0" prefWidth="9999.0" styleClass="caption" text="Create New Experiment" textFill="#990000" GridPane.columnIndex="0" GridPane.rowIndex="0"&gt;
            &lt;font&gt;
              &lt;Font name="Consolas Bold" size="20.0" /&gt;
            &lt;/font&gt;
          &lt;/Label&gt;
          &lt;HBox id="hBox1" alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="5.0" GridPane.columnIndex="0" GridPane.rowIndex="1"&gt;
            &lt;children&gt;
              &lt;Label id="label2" graphicTextGap="0.0" styleClass="field-label" text="Experiment Name"&gt;
                &lt;font&gt;
                  &lt;Font name="Consolas" size="15.0" /&gt;
                &lt;/font&gt;
                &lt;HBox.margin&gt;
                  &lt;Insets top="3.0" /&gt;
                &lt;/HBox.margin&gt;
              &lt;/Label&gt;
              &lt;TextField id="textField1" prefWidth="200.0" HBox.hgrow="ALWAYS" /&gt;
              &lt;Button id="button2" fx:id="saveButton" styleClass="dialog-button" text="Save" /&gt;
              &lt;Button id="button3" styleClass="dialog-button" text="Dismiss" /&gt;
            &lt;/children&gt;
            &lt;padding&gt;
              &lt;Insets bottom="5.0" left="5.0" right="5.0" top="5.0" fx:id="x3" /&gt;
            &lt;/padding&gt;
          &lt;/HBox&gt;
          &lt;VBox id="VBox" alignment="CENTER" spacing="5.0" GridPane.columnIndex="0" GridPane.rowIndex="2"&gt;
            &lt;children&gt;
              &lt;Label id="label3" prefWidth="9999.0" styleClass="field-label" text="Experiment Tests"&gt;
                &lt;VBox.margin&gt;
                  &lt;Insets left="5.0" top="5.0" /&gt;
                &lt;/VBox.margin&gt;
              &lt;/Label&gt;
              &lt;HBox id="HBox" alignment="CENTER" spacing="5.0"&gt;
                &lt;children&gt;
                  &lt;Button id="button1" prefHeight="999.0" styleClass="add-button" text="New"&gt;
                    &lt;HBox.margin&gt;
                      &lt;Insets bottom="5.0" left="5.0" right="5.0" top="5.0" fx:id="x3" /&gt;
                    &lt;/HBox.margin&gt;
                  &lt;/Button&gt;
                  &lt;ListView id="listView1" fx:id="tests" orientation="HORIZONTAL" prefHeight="999.0" prefWidth="200.0" HBox.hgrow="ALWAYS"&gt;
                    &lt;HBox.margin&gt;
                      &lt;Insets bottom="4.0" right="5.0" top="4.0" /&gt;
                    &lt;/HBox.margin&gt;
                  &lt;/ListView&gt;
                &lt;/children&gt;
              &lt;/HBox&gt;
            &lt;/children&gt;
          &lt;/VBox&gt;
          &lt;VBox id="vBox1" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="0" GridPane.rowIndex="3"&gt;
            &lt;children&gt;
              &lt;GridPane id="gridPane2" VBox.vgrow="ALWAYS"&gt;
                &lt;children&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.rowSpan="4"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" text="Algorithms"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_algo.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" fx:id="newAlgorithmButton" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" /&gt;
                    &lt;/children&gt;
                    &lt;GridPane.margin&gt;
                      &lt;Insets bottom="10.0" left="10.0" right="10.0" top="10.0" fx:id="x2" /&gt;
                    &lt;/GridPane.margin&gt;
                  &lt;/VBox&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="1" GridPane.margin="$x2" GridPane.rowIndex="1"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" text="Problem Generator"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_pgen.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" maxHeight="999.0" prefHeight="999.0" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" VBox.vgrow="ALWAYS" /&gt;
                    &lt;/children&gt;
                  &lt;/VBox&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="2" GridPane.margin="$x2" GridPane.rowIndex="1"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" prefWidth="9999.0" text="Correctness tester"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_ctest.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" maxHeight="999.0" maxWidth="999.0" prefHeight="999.0" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" VBox.vgrow="ALWAYS" /&gt;
                    &lt;/children&gt;
                  &lt;/VBox&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="1" GridPane.margin="$x2" GridPane.rowIndex="2"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" prefWidth="130.0" text="Message delayer"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_mdel.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" maxHeight="999.0" maxWidth="999.0" prefHeight="999.0" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" VBox.vgrow="ALWAYS" /&gt;
                    &lt;/children&gt;
                  &lt;/VBox&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="2" GridPane.margin="$x2" GridPane.rowIndex="2"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" prefWidth="130.0" text="Limiter"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_limiter.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" maxHeight="999.0" maxWidth="999.0" prefHeight="999.0" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" VBox.vgrow="ALWAYS" /&gt;
                    &lt;/children&gt;
                  &lt;/VBox&gt;
                  &lt;VBox id="vBox2" prefHeight="321.0" prefWidth="150.0" styleClass="with-dashed-border" GridPane.columnIndex="3" GridPane.margin="$x2" GridPane.rowIndex="0" GridPane.rowSpan="4"&gt;
                    &lt;children&gt;
                      &lt;Label id="label4" prefWidth="9999.0" text="Statistic collectors"&gt;
                        &lt;graphic&gt;
                          &lt;ImageView id="emptyImageView1" fitHeight="32.0" fitWidth="32.0" preserveRatio="true"&gt;
                            &lt;image&gt;
                              &lt;Image url="@_scol.png" preserveRatio="false" smooth="false" /&gt;
                            &lt;/image&gt;
                          &lt;/ImageView&gt;
                        &lt;/graphic&gt;
                      &lt;/Label&gt;
                      &lt;Button id="button1" prefWidth="999.0" styleClass="add-button" text="New" VBox.margin="$x3" /&gt;
                    &lt;/children&gt;
                  &lt;/VBox&gt;
                  &lt;HBox id="hBox1" alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="0"&gt;
                    &lt;children&gt;
                      &lt;Label id="label2" graphicTextGap="0.0" styleClass="field-label" text="Name"&gt;
                        &lt;HBox.margin&gt;
                          &lt;Insets top="7.0" /&gt;
                        &lt;/HBox.margin&gt;
                      &lt;/Label&gt;
                      &lt;TextField id="textField1" maxHeight="28.0" minHeight="28.0" prefHeight="28.0" prefWidth="200.0" text="Empty Test" HBox.hgrow="ALWAYS" /&gt;
                    &lt;/children&gt;
                    &lt;padding&gt;
                      &lt;Insets bottom="5.0" left="5.0" right="5.0" top="5.0" fx:id="x3" /&gt;
                    &lt;/padding&gt;
                  &lt;/HBox&gt;
                  &lt;VBox id="vBox3" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="1" GridPane.rowIndex="3" /&gt;
                &lt;/children&gt;
                &lt;columnConstraints&gt;
                  &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
                  &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
                  &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
                  &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
                &lt;/columnConstraints&gt;
                &lt;rowConstraints&gt;
                  &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
                  &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
                  &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
                  &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
                &lt;/rowConstraints&gt;
              &lt;/GridPane&gt;
            &lt;/children&gt;
          &lt;/VBox&gt;
          &lt;VBox id="vBox4" alignment="CENTER" styleClass="with-dashed-border" GridPane.columnIndex="0" GridPane.halignment="CENTER" GridPane.hgrow="ALWAYS" GridPane.rowIndex="4" GridPane.valignment="CENTER" GridPane.vgrow="ALWAYS"&gt;
            &lt;children&gt;
              &lt;TableView id="tableView1" prefHeight="54.0" prefWidth="837.0" VBox.vgrow="ALWAYS"&gt;
                &lt;columns&gt;
                  &lt;TableColumn prefWidth="75.0" text="Column X" /&gt;
                  &lt;TableColumn prefWidth="75.0" text="Column X" /&gt;
                &lt;/columns&gt;
              &lt;/TableView&gt;
            &lt;/children&gt;
            &lt;GridPane.margin&gt;
              &lt;Insets bottom="10.0" left="10.0" right="10.0" top="10.0" fx:id="x2" /&gt;
            &lt;/GridPane.margin&gt;
          &lt;/VBox&gt;
        &lt;/children&gt;
        &lt;columnConstraints&gt;
          &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
        &lt;/columnConstraints&gt;
        &lt;rowConstraints&gt;
          &lt;RowConstraints maxHeight="38.0" minHeight="38.0" prefHeight="38.0" vgrow="NEVER" /&gt;
          &lt;RowConstraints maxHeight="32.0" minHeight="32.0" prefHeight="32.0" vgrow="NEVER" /&gt;
          &lt;RowConstraints maxHeight="100.0" minHeight="100.0" prefHeight="100.0" vgrow="SOMETIMES" /&gt;
          &lt;RowConstraints vgrow="SOMETIMES" /&gt;
          &lt;RowConstraints maxHeight="100.0" prefHeight="100.0" valignment="CENTER" vgrow="ALWAYS" /&gt;
        &lt;/rowConstraints&gt;
      &lt;/GridPane&gt;
    &lt;/children&gt;
    &lt;stylesheets&gt;
      &lt;URL value="@_style.css" /&gt;
      &lt;URL value="@../_style.css" /&gt;
    &lt;/stylesheets&gt;
  &lt;/AnchorPane&gt;
  </code></pre>