Jpanel resize on repaint
问题 i am having a scaling operation performed in the below code. The two sliders in the form are X and Y parameters for an scaling affine transformation. My ask here is when i change the slider the image is getting scaled, how do i dynamically resize my jpanel in which this image is getting painted. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package newpackage; import java.awt.Graphics; import java.awt.Image; import java.awt.geom