i want drag .c files javafx textarea, in case of address possible treating string check extension "endswith(".c")" method, don't know how if file
you can extension file object:
string fileextension = file.getname().substring( file.getname().lastindexof(".") + 1); plus usual checks null, index out of bounds, etc.
Comments
Post a Comment