Open oeway opened 4 years ago
I'm stuck with the same problem. Are there any news on this issue ?
Unfortunately no. AWT based application are currently not a priority for us, due to no commercial demand.
If you need support for this for an enterprise environment please get in touch: info@leaningtech.com
So if I use JFileChooser all will work fine?
With JFileChooser you will get a proper dialog, but remember that the filesystem is virtualized. You will not see the files on the disk as (of course) the browser does not allow arbitrary access to user's files.
We currently offer workarounds for this browser limitation to commercial users. We plan to eventually provide some form of integrated access to the disk, using modern HTML5 APIs.
OK, I see. So I could provide some files on the virtual filesystem that could be chosen by JFileChooser? Are there API methods to add files to the virtual file system without doing this in the Java classes?
Please reads our docs here: https://docs.leaningtech.com/cheerpj/File-System-support
In particular the /str/
section.
Thanks for you help!
I am wondering how should we use java.awtFileDialog, considering the following example (copy and paste to https://javafiddle.leaningtech.com/ to test):
We can get the following interface:
However, I am not sure how to proceed further since when I select a file, the only option I have is to close the file dialog. What's the correct way to use it?
Ideally, I would like be able to render a hidden dialog with an
<input type="file">
element, whensetVisible(true)
is called, trigger the file dialog by fileInput.click() method. After selection, the file should mounted e.g. under/str
(even better if this can be addressed with https://github.com/leaningtech/cheerpj-meta/issues/98 ).