這裏是我的代碼:如何在JLabel中調整Image/IconImage的大小?
String s = "/Applications/Asphalt6.app";
JFileChooser chooser = new JFileChooser();
File file = new File(s);
Icon icon = chooser.getIcon(file);
// show the icon
JLabel ficon = new JLabel(s, icon, SwingConstants.LEFT);
現在,從圖標中提取的圖像是非常小的。我怎樣才能調整它?
例如參見[此](http://www.javalobby.org/articles/ultimate-image/#11)。但是一旦它變得更大,你的圖標可能會相當醜陋。 – toto2