Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
To set default button for JFrame, use the setDefaultButton() method − , The following is an example to set default button for JFrame − , On pressing the above button, the following is displayed on Console −
To get JFrame window size information, you can use the following − , For Screen Size − , For Frame Size − , The following is an example to get JFrame window size information − , ,
To add background image to JFrame, use the getImage() method of the Image class − , Now, draw the image − , The following is an example to add Background Image to JFrame − ,
To create a JFrame with no border and title bar, use setUndecorated() − , The following is an example to create JFrame with no border and title bar − ,