This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes database connectivity using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "database connectivity using java" Watch "database connectivity using java" New topic

database connectivity using java

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
good evening to everyone,

i have been doing java program using JFrame to create registration page.. there are 7 fields such as name, username, password,address,city,dob and gender..

and one JButton object.. when i clicked it, these details should be saved in the database..

i used the following code but it gives me an error like that

error is java.sql.SQLException: Invalid Cursor Type: 1003

my code is

Thanks in advance
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38036
What does it say in the documentation for your database about that message and code 1003?
Bill Clar
Ranch Hand

Joined: Sep 21, 2006
Posts: 150

Check out what the Java API says about ResultSet.moveToInsertRow().
Tony Docherty

Joined: Aug 07, 2007
Posts: 2173
By default ResultSets aren't updateable. You can request an updateable ResultSet when you create the statement object eg:
I agree. Here's the link:
subject: database connectivity using java
Similar Threads
Display Problem in JTable
Can't Update Record ?
JTable display problem
Can't Update Record ?
problem with my jdbc/swing code