SHARE
TWEET

Untitled

a guest Dec 10th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //masukin combo box belum di test  
  2.  public void setteambox(JComboBox<String> list_team) {
  3.         connect();
  4.         try {
  5.             String query = "SELECT * FROM team";
  6.             rs = stmt.executeQuery(query);
  7.             while (rs.next()){
  8.                 String name = rs.getString("name");
  9.                 list_team.addItem(name);
  10.            
  11.             }
  12.         } catch (SQLException ex) {
  13.             Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
  14.         }
  15.         disconnect();
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top