import java.awt.*; import java.awt.geom.AffineTransform; public class Transform1 extends Canvas{ public void paint(Graphics alggr){ Graphics2D g=(Graphics2D)alggr; //esimeses ei muuda midagi g.fillRect(20, 20, 40, 20); } }