/** Creates new form ListTransaction */ public ListTransaction() { UIUtils.setCustomUI(); initComponents(); LOGGER.info("Hello-2"); hibernateTemplate = (HibernateTemplate) context.getBean(HibernateTemplate.class); // LOGGER.info(hibernateTemplate.toString()); List<User> users = hibernateTemplate.findByNamedQuery("User.findAll"); Vector<User> userVector = new Vector<User>(users); userField.setModel(new DefaultComboBoxModel(userVector)); LOGGER.info("Hello"); // list.addAll((List<Transaction>) // hibernateTemplate.findByNamedQuery("Transaction.findAll")); pack(); }