code: public void setTableModel(final TableModel newmodel) {
  		Runnable updateModel = new Runnable() {
  			@Override
  			public void run() {
  				tblQueryResult.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
  				ToolTipManager.sharedInstance().unregisterComponent(tblQueryResult);
  				ToolTipManager.sharedInstance().unregisterComponent(tblQueryResult.getTableHeader());
  
  				TableModel oldmodel = tblQueryResult.getModel();
  				if (oldmodel != null) {
  					oldmodel.removeTableModelListener(tblQueryResult);
  					if (oldmodel instanceof IncrementalResultSetTableModel) {
  						IncrementalResultSetTableModel incm = (IncrementalResultSetTableModel) oldmodel;
  						incm.close();
  					}
  				}
  				tblQueryResult.setModel(newmodel);
  
  				addNotify();
  
  				tblQueryResult.invalidate();
  				tblQueryResult.repaint();
  			}
  		};
  		SwingUtilities.invokeLater(updateModel);
  		
  		// Write a hint in the comment panel for user information
  		writeHintMessage();
  	}
docs: End of variables declaration//GEN-END:variables