{
JFileChooser fileChooser = new JFileChooser(Main.m_settings.getExportDirectory());
fileChooser.setDialogTitle(Main.getString("caption_export"));
FileFilter allFilter = fileChooser.getAcceptAllFileFilter();
fileChooser.setAcceptAllFileFilterUsed(false);
JMyFileFilter fileFilter = new JMyFileFilter();
updateTypeData();
if (m_mimeType.equals("image/jpeg"))
{
fileFilter.setDescription(Main.getString("filefilter_jpg"));
for (String item : Main.m_settings.m_jpgExtensions)
fileFilter.addExtension(item);
}
else if (m_mimeType.equals("image/png"))
{
fileFilter.setDescription(Main.getString("filefilter_png"));
fileFilter.addExtension("png");
}
else if (m_mimeType.equals("image/bmp"))
{
fileFilter.setDescription(Main.getString("filefilter_bmp"));
fileFilter.addExtension("bmp");
}
fileChooser.addChoosableFileFilter(fileFilter);
fileChooser.addChoosableFileFilter(allFilter);
fileChooser.setFileFilter(fileFilter);
if (!m_fileField.getText().isEmpty())