title: Issues with GWT Flextable
body: <p>I recently created a flextable using GWT 2.4 using this code:</p>
  
  <pre><code>@uiBinder Flextable flextable;
  </code></pre>
  
  <p>In the constructor I call setupFlexTable() after I do</p>
  
  <p><code>initWidget(uiBinder.createAndBindUi(this));</code> </p>
  
  <p>and then the flexTable is instantiated. I missed that part.  Using setText() works.</p>
  
  <pre><code> //Header row
      private void setupFlexTable() {
              flexTable.setText(0, 0, "Label One");
              flexTable.setText(0, 1, "Label Two");
      }
  </code></pre>
  
  <p>setWidget didn't display, but this is what I used:</p>
  
  <pre><code>int numRows = flexTable.getRowCount();
          flexTable.setWidget(numRows, 0, new Label("Label One"));
          flexTable.setWidget(numRows, 1, new Label("Label Two"));
          flexTable.getFlexCellFormatter().setRowSpan(0, 1, numRows + 1);
  </code></pre>
  
  <p>Here is where I add rows in and this code works with setWidget():</p>
  
  <pre><code>@Override
      public void setRowData(Data data) {
          int rowCount = flexTable.getRowCount() + 1;
          flexTable.setWidget((rowCount), 0, new Label(data.getDataName()));
          flexTable.getFlexCellFormatter().setRowSpan(rowCount, 0, 2);
          flexTable.setWidget((rowCount), 1, new Label(data.getData()));
          flexTable.getFlexCellFormatter().setRowSpan(rowCount, 1, 2);
      }
  </code></pre>
  
  <p>Also, when I use flexTable.setText("Label One"); etc... it displays, but when I use setWidget(), it does not?  </p>
  
  <p>Another issue is I need to keep this table in sync with a list of files above it, but using Firebug I see that if I add two rows dynamically to the table, it shows a rowCount of 4?  This throws an index out of bounds error when I try to remove a row and it reaches one of these blank rows.</p>
  
  <p>As a work-around, I use this code to find the row I need to delete and avoid the issue with the blank rows (apparently there are two and only two blank rows inserted in the table).</p>
  
  <pre><code>int rows = flexTable.getRowCount(); 
  
          for(int i=0; i &lt; rows; i++){
  //Match the text in the first field in order to know the proper row to delete.
              if(flexTable.isCellPresent(i,0) &amp;&amp; flexTable.getText(i, 0).equalsIgnoreCase(fileName)){
                  flexTable.removeRow(i);
                  break;
              }
          }
  </code></pre>
  
  <p>So can anyone explain why setWidget() doesn't display anything and why I'm getting an extra blank row for each one I add?  </p>