Commit 9221ce04 authored by Christian MOMON's avatar Christian MOMON
Browse files

Improved disk space display.

parent b5436dbb
......@@ -440,7 +440,7 @@ public class BuildIndexesDialog extends JDialog
{
BuildIndexesDialog.this.txtfldSourceDirectory.setText(target.getAbsolutePath());
String value = String.format("%,d MB", target.getUsableSpace() / 1024 / 1024);
String value = String.format("%,dMB", target.getUsableSpace() / 1024 / 1024);
this.txtfldFreeDiskSpace.setText(value);
File allCountriesFile = new File(target + File.separator + "allCountries.txt");
......@@ -491,7 +491,7 @@ public class BuildIndexesDialog extends JDialog
*/
public void updateFreeDiskSpace()
{
String value = String.format("%,d MB", new File(this.txtfldSourceDirectory.getText()).getUsableSpace() / 1024 / 1024);
String value = String.format("%,dMB", new File(this.txtfldSourceDirectory.getText()).getUsableSpace() / 1024 / 1024);
this.txtfldFreeDiskSpace.setText(value);
}
......
......@@ -551,7 +551,7 @@ public class DownloadGeoNamesFilesDialog extends JDialog
*/
public void updateFreeDiskSpace()
{
String value = String.format("%,d MB", new File(this.txtfldTargetDirectory.getText()).getUsableSpace() / 1024 / 1024);
String value = String.format("%,dMB", new File(this.txtfldTargetDirectory.getText()).getUsableSpace() / 1024 / 1024);
this.txtfldFreeDiskSpace.setText(value);
}
......
......@@ -167,8 +167,8 @@ public class DownloadDatabaseDialog extends JDialog
this.txtfldFreeDiskSpace.setColumns(10);
}
{
JLabel lblfreeDiskSpace = new JLabel("(Free disk space required: 3,000MB)");
inputPanel.add(lblfreeDiskSpace, "4, 8, center, default");
JLabel lblfreeDiskSpace = new JLabel("Free disk space required: 3 000MB ");
inputPanel.add(lblfreeDiskSpace, "4, 8, right, default");
}
{
JPanel panel = new JPanel();
......@@ -500,7 +500,7 @@ public class DownloadDatabaseDialog extends JDialog
*/
public void updateFreeDiskSpace()
{
String value = String.format("%,d MB", new File(this.txtfldTargetDirectory.getText()).getUsableSpace() / 1024 / 1024);
String value = String.format("%,dMB", new File(this.txtfldTargetDirectory.getText()).getUsableSpace() / 1024 / 1024);
this.txtfldFreeDiskSpace.setText(value);
}
......
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