How to determine which FileChooser ExtensionFilter has been selected - javafx

403 Views Asked by At

I having trouble related to javafx filechooser component. In filechooser javafx doesn't provide a way to get selected extension type(file extension selected in save as dropdown). Same issue is also mentioned here. It is fixed in javafx 8 version. see here .it requires login. I am using javafx 2.2. Can somebody suggest a workaround for same using javafx 2.2?

Thanks!

1

There are 1 best solutions below

2
4F2E4A2E On

It seems to be already implemented &/ or fixed. If what you exactly want is still no working for you with the latest javaFx version, than i guess you should use poj or apache commons:

The apache Commons library has FilenameUtils.getExtension() or maybe: Java getting file extension without substring