Answers for "center jframe on screen"

3

open jframe in center of screen

add this after setbounds

setLocationRelativeTo(null);
Posted by: Guest on September-12-2020
1

how to put jframe in center of screen using jframe properties

public frame() {     
   initComponents();
   this.setLocationRelativeTo(null);
}
Posted by: Guest on October-08-2020

Browse Popular Code Answers by Language