public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
g2.drawString("HELLO",50,150);
g2.fillRect(10,110,10,20);
g2.setRenderingHint( RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON );
g2.rotate(1.0);
}