How to center align all elements inside a jframe to center in java?

Shammikit

Honorable
Nov 30, 2013
35
0
10,580
0
Im making a ATM enter PIN screen using java.i have written the code to make it appear full screen when i run it but all the other elements such as the jtextfield,labels and buttons are still at the top left corner of the screen.How can i get them all to the center of my screen? .
 
Thread starter Similar threads Forum Replies Date
T Apps General Discussion 1
K Apps General Discussion 1
I Apps General Discussion 0
The Paladin Apps General Discussion 4
P Apps General Discussion 2
F Apps General Discussion 1
H Apps General Discussion 6
S Apps General Discussion 4
M Apps General Discussion 4
R Apps General Discussion 1
N Apps General Discussion 5
V Apps General Discussion 3
G Apps General Discussion 10
G Apps General Discussion 1
minun Apps General Discussion 3
IrishWolfHound93 Apps General Discussion 1
Z Apps General Discussion 1
D Apps General Discussion 2
M Apps General Discussion 1
T Apps General Discussion 1

ASK THE COMMUNITY