Hi, My purpose is to load the combobox with the voices from a database, the code below works fine with a problem, I already get two items, so what should I do to stop it Public Zero LoadCombs () {try {string cs = "jdbc: mysql: // localhost: 3307 / booksalvation6"; String user = "root"; String password = "latein"; JComboBox2.removeAllItems (); // Make sure the old data has been prepared; Statement pstpost; As a result rspost; ConCombos = DriverManager.getConnection (CS, User, Password); (Int i = 1; i & lt; 11; i ++) {string query pst = "select from post" + "WHERE postage_id =" + i; // Load Postage Selection pstpost = conCombos.prepareStatement (querypost); Rspost = pstpost.executeQuery (); Whereas (rspost.next ()) {string myopost = rspost.getString (6); JComboBox2.addItem (Mypost); }}} Hold (SQLException pre) {Logger.getLogger (BasicFrame.class.getName ()). Log (Level.SEVERE, null, ex); } ConCombos.close (); } Hold (SQLException p...
Why is the PyCharm IDE launched in the icon of IntelliJ Idea in the Windows 7 taskbar? So, instead of launching PyCharm IDE that opens in the PyCharm icon in the titbar, it is opened in the icon of IntelliJ. known issue, please vote
Comments
Post a Comment