| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 
 |  
 
public String button1_action() throws SQLException, NamingException, ClassNotFoundException {
        // TODO: Process the action. Return value is a navigation
        // case name where null will return to the same page.
 
    int ss = Integer.parseInt(t1.getText().toString());
 
        Crmtype crm = new Crmtype() ;
        Vector v01 = (Vector)crm.getTypeById(ss);
        Enumeration e = v01.elements();
 
         for(int i=0;i<v01.size();i++){
 
 String est[] = new String[v01.size()];
        while (e.hasMoreElements()){
 
         crm = (Crmtype)e.nextElement();
 
         String tt[] = new String[]{String.valueOf(crm.getNum_type())};
          est[i] = tt[i];
 
               System.out.println(est[i]);
 
               cbg3.setSelected(new String[]{""+est[i]+""});
 
  		  }
 
             }
        return null;
    }
 
} | 
Partager