Answers for "image resize in jbutton java"

0

resizing ImageIcon in JButton java

Image img = icon.getImage();  
Image newimg = img.getScaledInstance(NEW_WIDTH, NEW_HEIGHT, java.awt.Image.SCALE_SMOOTH);
icon = new ImageIcon(newimg);
Posted by: Guest on February-25-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language