please read the text from this link --> It-Doesnt-Work-Is-Useless
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
dcbm.addElement(res.getString("names"));
thank you michael, i have done some modifications.
but it's not updating again..
sorry but i am again doing mistake somewhere..
here is my two classes (save student and load student)..
[LoadStudents() reference].loadStudents1(comboBox reference);//this is where you load the students
1) type a name into the textfield
2) click a button
3) the typed-in name is saved to the db
4) the newly saved name appears in the comboBox (indicating it has been saved to the db)
view plaincopy to clipboardprint?
public class SearchByName
{
//this class needs to be scrapped, but you need to add the panel/combo elsewhere in the program
ls.loadStudents1(studentNames); // here i am loading it.---------------------------------->
JComboBox studentName = new JComboBox();
JPanel coursePanel = new JPanel();
coursePanel.add(studentName);
}
post back when you've modified your code to remove that class.
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|