I am using jlist to display the file name and associated icon based on the extension. For example if file is pdf file it display pdf icon and name of file. I get icon with following code:
JFileChooser chooser = new JFileChooser( );
Icon fileIcon = chooser.getIcon( file );
But the icon returned is of small size. How can i scale the icon without without loosing the quality of icon and then how to convert icon to image icon so that i can use it in JLabel.
Please provide code snippets. I have no idea of java graphics.