OS X上的JFileChooser [英] JFileChooser on OS X

查看:265
本文介绍了OS X上的JFileChooser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JFileChooser看起来与原生小部件完全不同。我似乎记得读一些黑客让它看起来像本机小部件,但搜索它知道我似乎无法再找到它我遇到的帖子建议使用java.awt.FileChooser,但该类似乎没有分布。如何让JFileChooser看起来像本机小部件?

JFileChooser looks nothing like the native widget. I seem to remember reading some hack to get it look like the native widget but searching for it know i can't seem to find it again i came across posts that suggest using java.awt.FileChooser but that class does not seem to be in the distribution. How can i make JFileChooser make look like the native widget?

推荐答案

java.awt.FileDialog 将是帖子的意思。毫无疑问,Swing版本更为有限。所有Java SE实现都需要具有 FileDialog 类(尽管无头配置可能无法对其执行任何有用的操作)。

java.awt.FileDialog will be the classes the posts meant. It is, unsurprisingly, more limited that the Swing version. All Java SE implementations are required to have the FileDialog class (although headless configurations may not be able to do anything useful with it).

这篇关于OS X上的JFileChooser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆