JFileChooser on OS X(OS X 上的 JFileChooser)
问题描述
JFileChooser 看起来一点也不像本机小部件.我似乎记得读过一些 hack 让它看起来像本机小部件但搜索它知道我似乎无法再次找到它我遇到了建议使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:OS X 上的 JFileChooser
基础教程推荐
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 如何对 Java Hashmap 中的值求和 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
