>>154 >>155
ありがとうございます
ただ線を動かすだけのアニメーションですが、だいたいこんな感じで問題ないということでしょうか?
変なことをしていたらご指摘いただけると助かります

public class Sample extends JFrame{
static int x=0;
static int y=150;
static TestPanel p;

public static void main(String args[]){
Sample frame = new Sample();
frame.setVisible(true);
while(true){
if(x==200){
x=0;
}

y--;
if(y==0){
y=150;
}
p.repaint();
try{
Thread.sleep(100);
}catch(InterruptedException e){
}
}
}
>>158に続く