开发者

java swing frame excellent for resultset from database

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.

  1. Open NetBeans. File -> New Project -> Java -> Java Desktop Application.
  2. Select 'Database Application'. Click Next. Select your database connection and the table. Select the fields you want to display. Next
  3. Now select the details field. Finish
  4. 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: what is best way to paging big Resultset -Java

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜