I have created a web applet in Java which uses the FileDialog. The file dialog works fine on Windows, I am wondering if it is cross platform. Does it work on Mac and Linux? Or do you need to specify custom parameters? If so, how?

有帮助吗?

解决方案

Yes, FileDialog is part of java.awt.* package which is available on standard Java SE runtime. Mac OSX typically ships with Java SE runtime so you shouldn't have any problem with FileDialog (look and feel might be different)

其他提示

from awt

AWT should work on as many platforms as possible.

Because the Java programming language is platform-independent, the AWT must also be platform-independent. The AWT was designed to provide a common set of tools for graphical user interface design that work on a variety of platforms.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top