title: how to scale image using getScaledInstance?
body: <p>i am trying to scale image using mouse motion listener but its not working.
  so right now i am doing this in manually using 2 <code>JTextfields</code>.
  I am taking value from <code>Jtextfields</code> and then pass that values to <code>getScaledInstance()</code> method.
  but it is not working.</p>
  
  <p>my code :</p>
  
  <pre><code>        final JTextField jj = new JTextField();
          jj.setColumns(5);
          buttonPane.add(jj);
          JButton btn  = new JButton("Resize");
          final JTextField jj1 = new JTextField();
          jj1.setColumns(5);
          buttonPane.add(jj1);
          buttonPane.add(btn);
          btn.addActionListener(new ActionListener() {
  
  
              @Override
              public void actionPerformed(ActionEvent arg0) 
              {
                  int x= Integer.parseInt(jj.getText());
                  int y=Integer.parseInt(jj1.getText());
  
                  BufferedImage b = a;
                  b.getScaledInstance(x, y,BufferedImage.TYPE_INT_ARGB);
                  label.setIcon(new ImageIcon(b));
              }
          });
  </code></pre>
  
  <p>here <code>a</code> is BufferedImage instance that is popped from stack.
  and <code>label</code> is <code>JLabel</code>.</p>