Bufferedimage redimensionar

Estou tentando redimensionar uma imagem em buffer. Eu sou capaz de armazená-lo e aparecer em um jframe sem problemas, mas não consigo redimensioná-lo. Qualquer dica sobre como alterar isso para que funcione e mostrar a imagem como um arquivo 200 * 200 seria ótimo

private void profPic(){
    String path = factory.getString("bottle");
    BufferedImage img = ImageIO.read(new File(path));
}


public static BufferedImage resize(BufferedImage img, int newW, int newH) {  
    int w = img.getWidth();  
    int h = img.getHeight();  
    BufferedImage dimg = new BufferedImage(newW, newH, img.getType());  
    Graphics2D g = dimg.createGraphics();  
    g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);  
    g.drawImage(img, 0, 0, newW, newH, 0, 0, w, h, null);  
    g.dispose();  
    return dimg;  
}  

questionAnswers(14)

yourAnswerToTheQuestion