1

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!

4

1 回答 1

0

它似乎已经实施和/或修复。如果使用最新的 javaFx 版本仍然无法满足您的要求,那么我猜您应该使用 poj 或 apache commons:

apache Commons 库有FilenameUtils.getExtension()或者可能有:Java getting file extension without substring


于 2013-11-29T21:12:33.643 回答