下のプログラム(一部抜粋)で、myMain()の中身5行をそのままrun()の中に移すと、
getGraphics()にアクセスできなくなります。
入れ子のクラスからなので、thisキーワードがFrame54クラスを表さなくなるからと思います。
うまい記述を教えてください。プログラムは new Frame54(); で始まります。

class Frame54 extends JFrame{
   MyCircle54 circle0;
   Graphics g;
   Frame54(){
      circle0=new MyCircle54(60,60,60,60);

      Timer timer0=new Timer();
      timer0.schedule(new MyTimerTask54(),0,30);
   }
   class MyTimerTask54 extends TimerTask{
      public void run() {
         myMain();
      }
   }
   void myMain(){
      g=this.getGraphics();
      Graphics2D g2=(Graphics2D)g;
      circle0.move();
      circle0.draw(g2);
      g2.dispose();
   }
}