Hi Shrilata,
I too faced a similar problem and being an anateur I found layout managers a hopeless part of Java.
But the panelname.setLayout(null) is ideal and gives great looks as you can place components where desired and resizing of frame/window does not affect the components.
The components can be placed by using setBounds as in
Yourcomponent.setBounds(x,y,width,height) and then adding the component to the panel by saying panelname.add(yourcomponent)
Regards,
Ameet