Alternative to JFileChooser

前端 未结 5 833
清歌不尽
清歌不尽 2020-12-05 03:29

I\'ve a request to make some changes to a little applet that currently use a JFileChooser.
One of the main complaints is that the file chooser is a pain in the ass to us

5条回答
  •  臣服心动
    2020-12-05 03:31

    The AWT FileDialog actually does use the native component, but as with most AWT vs. Swing issues, it's much less flexible and customizable than Swing's JFileChooser. So there's a tradeoff: JFileChooser may have a clunky user interface, but it's usually better for most purposes. If you really want your file choosing dialogs to look and feel like the native ones, though, then you can go with FileDialog.

提交回复
热议问题