Java中的默认操作按钮图标 [英] Default action button icons in Java

查看:223
本文介绍了Java中的默认操作按钮图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swing应用程序框架中是否有一组默认操作图标可用?

Is there a set of default action icons available in the Swing application framework?

例如,我没有按下保存按钮,而是像软盘的标准图片,而不必自己指定图像。对于打开,我想要一个文件夹的标准图片。如果这些适合外观和感觉会很棒,但我会采用Swing默认值。

For instance, instead of making a button that says "Save," I'd like the standard picture of a floppy disk without having to specify an image myself. For "Open", I'd like the standard picture of a file folder. It would be great if these adapted to the look and feel, but I'd take Swing defaults.

我在考虑这样的事情:

new JButton(new ImageIcon(DEFAULT_OPEN_ICON));

我找到了很多关于改变外观的资源,但是没有任何关于嵌入Java或挖出本机系统的图标。

I have found lots of resources about changing the look and feel, but nothing about icons either built into Java or dug out of the native system.

推荐答案

Java外观图形存储库有一些图标可供您使用。

Java Look and Feel Graphics Repository has a few icons you might be able to use.

这篇关于Java中的默认操作按钮图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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