import java.awt.Font;
import java.awt.geom.AffineTransform;
import java.awt.Graphics2D;
import java.awt.Graphics;
public void paintComponent ( Graphics g )
{
super.paintComponent( g );
Graphics2D g2 = (Graphics2D)g;
AffineTransform origTransform = g.getTransform();
AffineTransform transformer = AffineTransform.getTranslateInstance ( 10.0d , -20.0d );
transformer.rotate ( Math.toRadians( 30 ) );
transformer.quadrantRotate( 1 );
transformer.scale( 1.0, -1.0 );
transformer.scale( -1.0, 1.0 );
g.setTransform ( transformer );
g.setFont( new Font( "Sans", Font.BOLD, 24 ) );
g.drawString( "Hello World", 0.0d, 5.0d );
g.setTransform( origTransform );
}