我有以下代碼設定值到文本框
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:BankSystem");
select = "Select Name From MalaysiaWithdraw where AccountNo = ?;";
stmtSelect = conn.createStatement();
stmtUpdate = conn.createStatement();
pstmtSelect = conn.prepareStatement(select);
//get value from textField and pass it into prepareStatement
String accNo = accNumber.getText();
pstmtSelect.setString(1, accNo);
rsSelect = pstmtSelect.executeQuery();
我怎樣才能從數據庫名稱,並將其設置到一個文本框,讓說,文本框是nameText。
是否可用Javadoc檢查?它非常自我解釋。其他的嘗試闡述更多。 – agpt