you need to add

g.drawRect(nameofrect, x,y,width,height);

but do not just use this find out why and use the API docs so you can
find out why you need to use this method, although pretty self...