• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Java JPanal Layout Question?

JC724

Weaksauce
Joined
Jan 20, 2016
Messages
118
I am trying to figure out how to do 2 things.

I want to have 2 layouts.

Layout 1:
JLabel1 JTextField1 JTextField2
JLabel2 JTextField3
JLabel3 JTextField4 JTextField5
JLabel4 JTextField6
JLabel5 Jbutton


Layout 2:

JLabel1 JTextField1 JTextField2 JLabel2 JTextField3 JTextField4
JLabel3 JTextField5 JLabel4 JTextField6
JButton



There has to be a way to force the Widgets to be at a fixed position and offset from each other, no matter how big the JFrame and JPanel is?
 
Back
Top