adding thread

just see the above image one icon is fixed and other icon using a new thread sliding from top to bottom i am not getting the idea how to place the thread could u help me

{code}

import java.util.;
import java.awt.
;
import javax.swing.*;
class load extends JFrame
{
Image r;
Image b;

int y=329;
int floor=329;
int x=3;
load()
{

super(“some name”);
r=new ImageIcon(“red.png”).getImage();
ye=new ImageIcon(“yellow.png”).getImage();

getContentPane().add(new display());
setVisible(true);
setSize(175,400);
setResizable(false);
}

class display extends JPanel implements Runnable
{
Thread t=new Thread(this);
display()
{
repaint();
}

public void paintComponent(Graphics q)
{
Graphics2D n=(Graphics2D)q;
q.drawImage(r,x,y,this);
}
/*
i just want to place the red image fixed at the bottom
and start new yellow image thread i,e
try
{
y=0;
while(y!=floor)
{
y++;
q.drawImage(ye,x,y,this);
Thread.sleep(10);
}
}
catch(Exception e)
{
}
*/

}
}
class f
{
public static void main(String args[])
{
new load();
}
}{code}