I write java desktop (netbeans). But unfortunately I can not find the option of downloading photos with the preservation of proportions (the size of the photo is different). And how to load a photo in full size (place it on the form) with scroll bars? I would appreciate if someone responds. Time is running out, but I have not found the option for a week. You need something like this: 
Here is one of the options (:
jFileChooser1.showOpenDialog(this); File file2 = jFileChooser1.getSelectedFile(); BufferedImage image=null; try { image=ImageIO.read(file2); } catch (IOException ex) { Logger.getLogger(NewApplication.class.getName()).log(Level.SEVERE, null, ex); } int hl= image.getHeight(); int wl= image.getWidth(); int hi ; int wi; hi=hl; wi=wl; Icon icon; icon = new ImageIcon(image.getScaledInstance(wi, hi, BufferedImage.SCALE_DEFAULT)); jLabel6.prepareImage(image, this); jLabel6.setIcon((icon));