Question and answer is powered by AnsPress.io
A window is a frame without any borders and title, whereas a frame contains borders and title.
Method of Frame class:
1. f.setSize(w,h); // set the size of the Frame // in pixel;
2. f.setVisible(true);//Display the Frame
3. f.setTitle(“xyz”); // set a Title for the Frame