in paint method am drawing two rect but i want to rotate the 1st rect.
.... public void paint(...) { ... g2d.translate(180, -50); //rotate g2d.rotate(Math.PI/4); g.drawRect(); //roate //i think i need to rotate the screen back? //if so than how to do this? g.drawRect();//dont roate }