System.out.println("Chosen String Generator Type: "+stringGeneratorType);
System.out.println("Chosen Date time Generator Type: "+datetimeGeneratorType);
*/
outputFile = outputSqlFile.getText().trim();
final DataGenerator dataGenerator = new DataGenerator(numericGeneratorType, stringGeneratorType, datetimeGeneratorType, recordToInsert, outputFile);
if (!busyLabelPanel.getJxBusyLabel().isEnabled())
{
busyLabelPanel.getJxBusyLabel().setEnabled(true);
}
if (busyLabelPanel.getJxBusyLabel().isBusy()) //true if the task is finished
{
busyLabelPanel.getJxBusyLabel().setBusy(false);
busyLabelPanel.getJxBusyLabel().setVisible(false);
}else {
busyLabelPanel.getJxBusyLabel().setBusy(true);
busyLabelPanel.getJxBusyLabel().setVisible(true);
Thread fillDatabaseThread = new Thread() {
public void run() {
try {
logOutputTextArea.setBorder(BorderFactory.createLineBorder(Color.green));
logOutputTextArea.setText("Database Filling started...\n");
long startTime = System.currentTimeMillis();
int totalTableFilled = dataGenerator.start(); /* CORE METHOD */
long endTime = System.currentTimeMillis();
//TO TEST Animation
//Thread.currentThread().sleep(10000);