hi..
i am creating an interface of my projct using jframe form
i created a frame
on that frame i added 2 panels ...1 upper jpanel covering most of central area
and one lower jpanel
on the upper panel i want to add a rectangle...
but the rectangle i am adding is not being added on the jpanel rather it is being added on the frame below the jpanel...when i double click on the screen or jpanel...the frame maximises and then it is visible on the upper jpanel...pls help..i want to add that rectangle on jpanel