Commit 63aafca5 authored by Christian MOMON's avatar Christian MOMON
Browse files

Added file progress bar for download action.

parent cd6e7779
......@@ -83,8 +83,8 @@ public class DownloadGeoNamesFilesDialog extends JDialog
private Chronometer chrono;
private JLabel lblTimer;
private JButton btnSelector;
private JLabel lblAdmincodesasciitxt;
private JLabel lblAdmincodestxt;
private JLabel lblAdmin1Codes;
private JLabel lblAdmin2Codes;
private JProgressBar progressBarAdmin1Codes;
private JProgressBar progressBarAdmin2Codes;
......@@ -203,9 +203,9 @@ public class DownloadGeoNamesFilesDialog extends JDialog
inputPanel.add(this.progressBarFeatureCodesEnTxt, "4, 16");
}
{
this.lblAdmincodesasciitxt = new JLabel("admin1CodesASCII.txt:");
this.lblAdmincodesasciitxt.setEnabled(false);
inputPanel.add(this.lblAdmincodesasciitxt, "2, 18, right, default");
this.lblAdmin1Codes = new JLabel("admin1CodesASCII.txt:");
this.lblAdmin1Codes.setEnabled(false);
inputPanel.add(this.lblAdmin1Codes, "2, 18, right, default");
}
{
this.progressBarAdmin1Codes = new JProgressBar();
......@@ -213,9 +213,9 @@ public class DownloadGeoNamesFilesDialog extends JDialog
inputPanel.add(this.progressBarAdmin1Codes, "4, 18");
}
{
this.lblAdmincodestxt = new JLabel("admin2Codes.txt:");
this.lblAdmincodestxt.setEnabled(false);
inputPanel.add(this.lblAdmincodestxt, "2, 20, right, default");
this.lblAdmin2Codes = new JLabel("admin2Codes.txt:");
this.lblAdmin2Codes.setEnabled(false);
inputPanel.add(this.lblAdmin2Codes, "2, 20, right, default");
}
{
this.progressBarAdmin2Codes = new JProgressBar();
......@@ -290,6 +290,8 @@ public class DownloadGeoNamesFilesDialog extends JDialog
DownloadGeoNamesFilesDialog.this.lblAllCountriesZip.setEnabled(true);
DownloadGeoNamesFilesDialog.this.lblAllCountriesTxt.setEnabled(true);
DownloadGeoNamesFilesDialog.this.lblFeatureCodeEnTxt.setEnabled(true);
DownloadGeoNamesFilesDialog.this.lblAdmin1Codes.setEnabled(true);
DownloadGeoNamesFilesDialog.this.lblAdmin2Codes.setEnabled(true);
DownloadGeoNamesFilesDialog.this.progressBarAllCountriesZip.setEnabled(true);
DownloadGeoNamesFilesDialog.this.progressBarAllCountriesTxt.setEnabled(true);
DownloadGeoNamesFilesDialog.this.progressBarFeatureCodesEnTxt.setEnabled(true);
......@@ -357,6 +359,8 @@ public class DownloadGeoNamesFilesDialog extends JDialog
DownloadGeoNamesFilesDialog.this.progressBarAllCountriesZip.setValue(100);
DownloadGeoNamesFilesDialog.this.progressBarAllCountriesTxt.setValue(100);
DownloadGeoNamesFilesDialog.this.progressBarFeatureCodesEnTxt.setValue(100);
DownloadGeoNamesFilesDialog.this.progressBarAdmin1Codes.setValue(100);
DownloadGeoNamesFilesDialog.this.progressBarAdmin2Codes.setValue(100);
}
};
DownloadGeoNamesFilesDialog.this.downloadWorker.execute();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment