private boolean dynInit(){
  Vector<String> columnNames=new Vector<String>();
  columnNames.add(Msg.translate(Env.getCtx(),m_C_BPartner_ID == 0 ? "C_BPartner_ID" : "M_Product_ID"));
  columnNames.add(Msg.translate(Env.getCtx(),"PriceActual"));
  columnNames.add(Msg.translate(Env.getCtx(),"QtyInvoiced"));
  columnNames.add(Msg.translate(Env.getCtx(),"Discount"));
  columnNames.add(Msg.translate(Env.getCtx(),"DocumentNo"));
  columnNames.add(Msg.translate(Env.getCtx(),"DateInvoiced"));
  columnNames.add(Msg.translate(Env.getCtx(),"AD_Org_ID"));
  Vector<Vector<Object>> data=null;
  if (m_C_BPartner_ID == 0)   data=queryBPartner();
 else   data=queryProduct();
  m_modelPrice=new DefaultTableModel(data,columnNames);
  m_tablePrice.setModel(m_modelPrice);
  m_tablePrice.setColumnClass(0,String.class,true);
  m_tablePrice.setColumnClass(1,Double.class,true);
  m_tablePrice.setColumnClass(2,Double.class,true);
  m_tablePrice.setColumnClass(3,BigDecimal.class,true);
  m_tablePrice.setColumnClass(4,String.class,true);
  m_tablePrice.setColumnClass(5,Timestamp.class,true);
  m_tablePrice.setColumnClass(6,String.class,true);
  m_tablePrice.autoSize();
  return data.size() != 0;
}

private boolean dynInit ( ) { Vector < String > columnNames = new Vector < String > ( ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , m_C_BPartner_ID == 0 ? "C_BPartner_ID" : "M_Product_ID" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "PriceActual" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "QtyInvoiced" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "Discount" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "DocumentNo" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "DateInvoiced" ) ) ; columnNames . add ( Msg . translate ( Env . getCtx ( ) , "AD_Org_ID" ) ) ; Vector < Vector < Object > > data = null ; if ( m_C_BPartner_ID == 0 ) data = queryBPartner ( ) ; else data = queryProduct ( ) ; m_modelPrice = new DefaultTableModel ( data , columnNames ) ; m_tablePrice . setModel ( m_modelPrice ) ; m_tablePrice . setColumnClass ( 0 , String . class , true ) ; m_tablePrice . setColumnClass ( 1 , Double . class , true ) ; m_tablePrice . setColumnClass ( 2 , Double . class , true ) ; m_tablePrice . setColumnClass ( 3 , BigDecimal . class , true ) ; m_tablePrice . setColumnClass ( 4 , String . class , true ) ; m_tablePrice . setColumnClass ( 5 , Timestamp . class , true ) ; m_tablePrice . setColumnClass ( 6 , String . class , true ) ; m_tablePrice . autoSize ( ) ; return data . size ( ) != 0 ; }
dynamic init for price tab
