2016-02-28 41 views
0

当您使用JFileChooser时,它具有默认的文件夹和文件图标,它们在哪里?我想得到他们的宽度和高度参数。Java默认JFileChooser图标位置

+0

看看[这个](http://stackoverflow.com/questions/1498506/java-howto-get-the-thumbnail-from-a-file) – MadProgrammer

+0

这不是我要求的,默认java使用的图标。我想打开它们并修改它们。我想知道他们在哪里驾驶? – codeCompiler77

+0

是否[这个答案](http://stackoverflow.com/a/26589183/838992)给你要找的东西?例如'UIManager.getIcon(“FileView.directoryIcon”)。getIconHeight();' –

回答

0
UIManager.getIcon("FileView.directoryIcon").getIconHeight(); 

通过回答Richard Snape。