0

Its possible to link a database with a combobox?

I nerd some help. I want to link a combobox with a database to use its registers as selectable itens, but i want to restrict the selection: If an item is selected once, its become unavaiable for further selections. How can i do this?

3rd Dec 2017, 9:04 PM
Rafael Leonardo De Lima
Rafael Leonardo De Lima - avatar
2 Answers
+ 3
Yes, this can be done, but you'll need to know SQL, some RDBMS such as MySql, have the appropriate RDBMS driver installed for use with JDBC. Then you can use the database to populate your combobox and interact with the database as neccessary. https://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm http://www.ntu.edu.sg/home/ehchua/programming/java/JDBC_Basic.html http://zetcode.com/db/mysqljava/
3rd Dec 2017, 9:20 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Oh, thanks a Lot ChaoticDawg It Will be helpfull
3rd Dec 2017, 9:31 PM
Rafael Leonardo De Lima
Rafael Leonardo De Lima - avatar