Home » Java » Random value from a database in a JTextField

Random value from a database in a JTextField

Posted by: admin June 30, 2018 Leave a comment

Questions:

I have a database with the name “generator”, inside that database there is a table called emails that contains a column where emails are stored, my question is as follows

How can I create the following function: that by pressing a button I can generate random data from the email column and display them in JTextLabel?

Answers: