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!
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 substringNote: The ticket indirect metioned by you (http://javafx-jira.kenai.com/browse/RT-18836) is fixed since Feb, 8 2013 03:25 PM and they have also a test class for this in the ticket that, may help you: https://javafx-jira.kenai.com/secure/attachment/27646/TestFileChooser.java, just sign up and login to see all the related information ...
Another interesting thread around this issue: http://forums.codeguru.com/showthread.php?421412.html%29