Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void getPlattform(JComboBox cb) {
- ArrayList<String> plattform;
- plattform = new ArrayList<String>();
- try {
- plattform = database.fetchColumn("select Benamning from plattform");
- } catch (InfException exc) {
- JOptionPane.showMessageDialog(null, exc.getMessage());
- }
- for (String plattformar : plattform) {
- cb.addItem(plattformar);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement