Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] How can I get the current used file extension of a FileDialog

This is my code:

        FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);

        fileDialog.setFilterExtensions(new String[] {"*.bmp", "*.jpg"});
        fileDialog.setFilterNames(new String[] { "BMP (*.bmp)", "JPEG (*.jpg)"});

        String filename = fileDialog.open();

How can I get the current used file extension?

Thanks,
vs

Back to the top