Hi i am trying to resize the image icon which i tried to use the getScaled method but it's not working, i have attached a copy of the code below.
public Example (){
JLabel l = new JLabel(new ImageIcon(getClass().getResource("gui/CheckLib.png")));
Image resize = l.getScaled(200, 180, 18);
l.setIcon(new ImageIcon(resize));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.anchor = GridBagConstraints.SOUTHEAST;
c.weightx = 1;
c.fill = GridBagConstraints.HORIZONTAL;
add(l);