Hi, my question is about Java database: 28.8 (AddressBook Modification: Delete a
ID: 3685025 • Letter: H
Question
Hi, my question is about Java database:
28.8 (AddressBook Modification: Delete an Existing Entry)
Question 1): modify the program to cclear the entries and create a pop-up box (person not found!) when can't find a match query.
2)Provide a delete entry button to delete the displayed rwo from the database.
You can download the originall code in the ch28 folder from the link below, under fig28_30_32, the database can be created with the sql statements and there should be 3 classes..
http://media.pearsoncmg.com/ph/esm/deitel/java_htp9e/code_examples/code_examples.html
Here is what the output should look like:
Thank you so much!
Explanation / Answer
//CLEAR TEXTBOX
textBox1.setText("");
//the text box entry has to match "computer"
t1=new JTextField(20);
Jframe p=new Jframe();
String t=t1.getText();
String s="Computer";
int result=t.compareTo(s);
if(result)
{
JOptionPane.showInternalMessageDialog(p,"mismatch");
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.