Commit 315f7d8b authored by Christian MOMON's avatar Christian MOMON
Browse files

Clean code.

parent d17a8959
......@@ -114,12 +114,12 @@ public class FlatDB4GeoNamesWindow extends JFrame
mntmDownloadGeonamesFiles_1.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(final ActionEvent e)
public void actionPerformed(final ActionEvent event)
{
// Download GeoNames files…
try
{
DownloadGeoNamesFilesDialog.showDialog();
DownloadGeoNamesFilesDialog.showDialog(null);
}
catch (final Exception exception)
{
......
......@@ -567,14 +567,22 @@ public class DownloadGeoNamesFilesDialog extends JDialog
}
/**
* Launch the application.
* This method shows the dialog in center of the screen.
*/
public static void showDialog()
{
showDialog(null);
}
/**
* This method shows the dialog.
*/
public static void showDialog(final Component parent)
{
//
DownloadGeoNamesFilesDialog dialog = new DownloadGeoNamesFilesDialog();
dialog.setLocationRelativeTo(null);
dialog.pack();
dialog.setLocationRelativeTo(parent);
dialog.setVisible(true);
}
}
......@@ -126,9 +126,9 @@ public class AboutDialog extends JDialog
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
}
catch (Exception e)
catch (Exception exception)
{
e.printStackTrace();
exception.printStackTrace();
}
}
......
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