public void cbSupplyer(CurrentProduct currentProduct) { con = dbCon.geConnection(); try { pst = con.prepareStatement("select * from Supplyer"); rs = pst.executeQuery(); while (rs.next()) { currentProduct.supplyerList = rs.getString(2); } pst.close(); con.close(); rs.close(); } catch (SQLException e) { e.printStackTrace(); } }