Pessoal to com problema para inserir as coisas no ComboBox, neste codigo aqui, naum sei se tá faltando algo, mas me ajudem. Ele da erro na linha em negreito
if (jComboBox == null) {
jComboBox = new javax.swing.JComboBox();
jComboBox.setSize(115, 18);
jComboBox.setLocation(90, 98);
JComboBox jcArtista = new JComboBox();
[b]Statement stmt = new Statement();[/b] ResultSet rs = stmt.executeQuery("SELECT * FROM artista");
Vector valores = new Vector();
// pegando os valores do db
while (rs.next()) {
valores.addElement(rs.getString(“artista”));
}
// adicionando os valores no JComboBox
for(int i = 0; i < valores.size();i++){
jcArtista.addItem(valores.get(i));
}