I was trying to make gui for a calculator i made it by drag and drop using netbeans ide but the components in it are not resizing according to the JFrame size,later i made by coding using JPanels but still they are not resizing .Can someone tell what to do to make the components resize according to JFrame.