|
|
|
|
Bonjour,
j'aimerais mettre une image dans un label mais avec un format redimentionné
ImageIcon image = new ImageIcon("C:\\cats.jpg");
JLabel background = new JLabel(image);
background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
panThumb.add(background);
panThumb.repaint();
je suis capable d'afficher l'image, mais elle ne m'affiche une partie de l'image
j'aimerais toute l'afficher mais rétréci
comment faire?
merci