title: How to update gtable at gWidget in R?
body: <p>I'm struggling to update the table data in the following code for GUI. It works to add each new request to the previous, so that it doesn't fit the screen, while I need to replace old request with the new one. Thanks! A.</p>
  
  <pre><code>require ( gWidgets )
  options ( guiToolkit="RGtk2" )
  window &lt;- gwindow ( "Pilot&gt;&gt;" , visible = FALSE, horizontal = FALSE )
  paned &lt;- gpanedgroup ( cont = window )
  group &lt;- ggroup ( cont = paned, horizontal = FALSE  )
  glabel ( "FPC:" , cont = group )
  entry &lt;- gedit ( "" , cont = group )
  entry [ ] &lt;- actfpc$CURFPC ##list of codes for auto-filling
  search_button &lt;- gbutton ( "Go!" , cont = group )
  addSpring ( group )
  frame &lt;- gframe ( "Supply:" , cont = paned , horizontal = FALSE,use.scrollwindow=TRUE )
  addHandlerChanged ( search_button , handler = function ( h , ... ) {
      ##Data subset for entered value
      a&lt;-skulist[skulist$FPC==svalue(entry),]
      a&lt;-a[c("X_id","FPC","STATUS","COMMENT","DCTR","DCSTOCK")]
      tbl &lt;- gtable ( a , cont = frame, expand=TRUE )
          } )
  size ( frame) &lt;- c ( 950 , 250)
  visible ( window ) &lt;- TRUE
  </code></pre>