How do I use the default File Chooser for the operating system? Java


I was just wondering: how does Gmail use the Windows/Mac file chooser to upload files? Is there any way to do this in Java?

Personally, I don't like the way that the JFileChooser looks like, and I thought it would be better for my users to be able to use something that they're more used to. Tips anyone?

Use the old java.awt.FileDialog instead:

new java.awt.FileDialog((java.awt.Frame) null).setVisible(true);