sir, l want to display resultset in jframe.i get output last record in the database displayed. Lam intrested to place next button,back button in the frame.when i was click in the back button previosly viewed record is displayed and vice-versa.i don't know it will be possible.plz help me
Just to get you started I googled something for you: http://www.java2s.com/Code/Java/Database-SQL-JDBC/JavadatabaseandSwing.htm
I hope that helps.
Like @fish tells you in comments, go googling for data display and swing. once you'll have done that, take a look at Glazed Lists, i think it may be of some help.
PS : even if my english spelling is not that good (and especially for readers like me who are not that fluent), I think you should consider do some spell-checking before posting.
Sounds like a school assignment. If it is Java, NetBeans can generate the entire application for you.
- Open NetBeans. File -> New Project -> Java -> Java Desktop Application.
- Select 'Database Application'. Click Next. Select your database connection and the table. Select the fields you want to display. Next
- Now select the details field. Finish
- Now run the application
I hope you don't try to submit the code as your assignment, if this is really an assignment.
Sounds like you want the ability to page through a ResultSet, displaying only one record per page. Check out this question: http://stackoverflow.com/questions/1994954/what-is-best-way-to-paging-big-resultset-java