开发者

How to easily Bind any database VIEWS to a jtable with netbeans?

开发者 https://www.devze.com 2022-12-20 01:20 出处:网络
Netbeans can easily bind jtable with开发者_如何学Go relational database tables(mysql,deby,etc)..

Netbeans can easily bind jtable with开发者_如何学Go relational database tables(mysql,deby,etc).. How can i easily bind "Views" table to a jtable... If that is not possible, is there any easy way to join tables and display the result in JTable... Thank you so much.


It is quite easy to display an arbitrary ResultSet in a JTable. You first need to work out what columns there are by using the metadata within the ResultSet and then add rows by looping over the ResultSet. http://fahdshariff.blogspot.com/2010/02/display-any-resultset-in-jtable.html

0

精彩评论

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