I wrote a code sometime ago in which the object of ResultSet
class res was able to retreive the next row of the database by using res.next()
. But when res.previous()
was used it was not working even though the method is defined in the resultset class.
public void actionPerformed(ActionEvent e) {
if (e.getSource() == next) {
try {
res.next();
} catch(Exception ee) {
}
showRecord(res);
}
}
Here res.next()
was fine but res.previous()
was not working even though it never gave any error or warning. It never worked even though I made it TYPE INSENSITIVE
?
showRecord(res);
is used for printing the row.