Friday, August 9, 2013

Java Combo Box

  private void FillCombo(){

                 try {
                        jCombo_EmpList.addItem("");
                        rs = u.getAll_Active_Emp();
                        while(rs.next()){
                            jCombo_EmpList.addItem(rs.getString("EmpId"));
                        }
                  
                            
                     }catch (Exception e) {

                    JOptionPane.showMessageDialog(this, e);
                }
            }

No comments:

Post a Comment