- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
10 Posted Topics
Hello everyone! I have a button on my main form that allows me to get the visitInfo Table. The data are displayed inside a JTable. What I would like to know is how do I edit or delete a row from that Jtable by the click of a save button …
[QUOTE=stultuske;1117723] and why the loop in your code?? it would do exactly the same, without the loop and those redundant if-statements[/QUOTE] Yeah you are right! loop or without loop it still does the same thing...
Hello members! Could someone please give me a hand on this? I have a JTable in my program that display query resuslt when the user search for a patient by entering the surname, the result is supposed to display in JTable in another frame. Here is what I've done [CODE]import …
Ok here is the new thread now could you help me JavaAddict? Please:icon_sad:
Hi everyone please help on this: I am developping a program in java, but I need the user to enter his/her details if they are compatible with the values in a database table he/she get access to the main interface. here is what I've done so far [CODE]import java.awt.BorderLayout; import …
Hi! Can sum1 plz help?!!! here is the prob I'm having [CODE]SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. SQLState: 07001 VendorError: -3010 [/CODE] that's when I click the insert button. [CODE] insertBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); int …
Please help, my Prog is compiling fine but when run it give me [CODE]Exception in thread "main" java.lang.NullPointerException[/CODE] with the following: 1) at PatientReg.displaySQLErrors(PatientReg.java:424) [CODE] private void displaySQLErrors(SQLException e) { errorText.append("SQLException: " + e.getMessage() + "\n"); errorText.append("SQLState: " + e.getSQLState() + "\n"); errorText.append("VendorError: " + e.getErrorCode() + "\n"); } [/CODE] …
Help please!!! I am having this exception when I run my prog Exception in thread "main" java.lang.NullPointerException) at PatientReg.displaySQLErrors(PatientReg.java:423) at PatientReg.loadAccounts(PatientReg.java:68) at PatientReg.buildGUI(PatientReg.java:78) at PatientReg.main(PatientReg.java:443) here are the codes for each line (line 423) private void displaySQLErrors(SQLException e) { errorText.append("SQLException: " + e.getMessage() + "\n"); errorText.append("SQLState: " + e.getSQLState() + …
Someone please help! I'm writing a program that enable a user to search for a patient Info when patient number is given. here is the search code snippet [code] public ArrayList searchPatient(String patientNum) { try { String sql = "SELECT fname, sname, location, dob, dor, race, gender, status, initials, idnum …
Hi members! Sorry I need a help with this snippet. I am still workin' on it... the thing is all the three buttons ain't working. And Can anyone tell how to compare the values of username and password against a database in Ms access. Thanks Here is my code import …
The End.
JBeginer7891