@Override
        public void valueChanged(ListSelectionEvent event) {
 	// activate only on deselecting and see if this is a valid table selection
        if (!event.getValueIsAdjusting()) {
            //fullticket table
	   if( event.getSource() == _view.table_fullticket.getSelectionModel() && event.getFirstIndex() >= 0) {
		// Determine the selected item    
		Integer integer = (Integer)_view.table_fullticket.getValueAt(_view.table_fullticket.getSelectedRow(), 0);
                _view.txp_fullticket.setText(fa.Htmlfullticket(integer).toString());
                 //set vertical scrollbar to top 
                 javax.swing.SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() { 
                        _view.scrollpane_full.getVerticalScrollBar().setValue(0);
                    }
                  });
                }
           
         //history table
         if( event.getSource() == _view.table_history.getSelectionModel() && event.getFirstIndex() >= 0) {
		Integer integer = (Integer)_view.table_history.getValueAt(_view.table_history.getSelectedRow(), 0);
                String changed = (String)_view.table_history.getValueAt(_view.table_history.getSelectedRow(), 1);
                String name = (String)_view.table_history.getValueAt(_view.table_history.getSelectedRow(), 2);
                _view.txp_history.setText(fa.Htmlhistory(integer,changed,name).toString());
                 javax.swing.SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() { 
                        _view.scrollpane_his.getVerticalScrollBar().setValue(0);
                    }
                 });
            }
         //product table
          if( event.getSource() == _view.table_product.getSelectionModel() && event.getFirstIndex() >= 0) {
		Integer integer = (Integer)_view.table_product.getValueAt(_view.table_product.getSelectedRow(), 0);
                _view.txp_product.setText(fa.Htmlproduct(integer).toString());
                 javax.swing.SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() { 
                        _view.scrollpane_his.getVerticalScrollBar().setValue(0);
                    }
                 });
            }
        }
        }