i had use combo box like this
{jComboBox2.addItem("-- pilih menu --");
try {
String sql = "select * from iomenu";
Statement cn = con.createStatement();
ResultSet rs = cn.executeQuery(sql);
while (rs.next()) {
jComboBox2.addItem(rs.getString("KodeMenu"));
}
} catch (Exception e) {
}
}
but when i build that was had warning like this
warning: [unchecked] unchecked call to addItem(E) as a member of the raw type JComboBox
where E is a type-variable:
E extends Object declared in class JComboBox
what should i do?