简体   繁体   中英

Is it possible to build UI elements from a database table using the Netbeans GUI designer?

I'm building an application with a form that I'd like to populate with questions from a database table.

Is it possible to do this in the Netbeans GUI designer so that each question is inserted into the label of a checkbox element?

My initial idea of how to do this would be to get a result set back from the database and loop it, however I'm new to the Netbeans environment and tying this in with the GUI designer is escaping me....

NetBeans learning trail contains one tutorial explaining the Beans Binding and creating Database application through wizard.

The tutorial is located at http://netbeans.org/kb/docs/java/gui-db.html

You can create a template application using this tutorial and then use the concepts and code provided in the wizard generated application in your application to do the binding of the elements with the data from database.

with regards
Tushar Joshi, Nagpur

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM