i am working on a school project where i am making a netbank.. i have come across problem i cant solve.
i want to show information about a customers account in a Jtable, but not by using a Jframe, rather i jpanel, as i am going to run it all via a japplet.
i can do this without a jtable, but i have to do it with a jtable...
my sql quiry looks like this...
the parameter custID is the customers ID....
String SQLQUERY = "SELECT accounts.Account_Name, accounts.Saldo, " +
"useraccounts.Account_NR" +
" from Accounts " +
"INNER JOIN useraccounts on accounts.Account_NR=useraccounts.Account_NR" +
" AND useraccounts.Cust_id=" + custID+";";
I HAVE ATTACHED 3 files, the DBProgram class which handles db connections..
the custFunk class which handles customer functions, its here i want the method show account info to be.
and a customer GUI class which is the gui for the customers. in there i want to push a button and account info is showen...
please help
CustGui.java 8.74K
63 downloads


Sign In
Create Account

Back to top









