Question: how do I change my code to make it look like the image. public void SignUpPersonalWindow ( ) { this.setDefaultCloseOperation ( JFrame . EXIT _
how do I change my code to make it look like the image.
public void SignUpPersonalWindow
this.setDefaultCloseOperationJFrameEXITONCLOSE;
this.setLayoutnew GridBagLayout;
Remove elements from previous window.
businessButton.setVisiblefalse;
personalButton.setVisiblefalse;
questionLabel.setVisiblefalse;
set the contraints
GridBagConstraints label new GridBagConstraints;
label.insets new Insets;
GridBagConstraints field new GridBagConstraints;
field.insets new Insets;
field.gridwidth GridBagConstraints.REMAINDER;
Set proper title.
this.setTitleSign Up;
Necessary buttons.
nextSignUp new JButtonNEXT;
nextSignUp.addActionListenere BioPicWindow;
backSignUp new JButtonBACK;
backSignUp.addActionListenere SignUpBack;
Labels and text boxes
JLabel name new JLabelNAME:;
JTextField nameText new JTextField;
JLabel user new JLabelUSERNAME:;
JTextField userText new JTextField;
JLabel email new JLabelEMAIL:;
JTextField emailText new JTextField;
JLabel pass new JLabelPASSWORD:;
JPasswordField passText new JPasswordField;
JLabel dob new JLabelDOB:;
JTextField dobText new JTextField;
this.addname label;
this.addnameText field;
this.adduser label;
this.adduserText field;
this.addemail label;
this.addemailText field;
this.addpass label;
this.addpassText field;
this.adddoblabel;
this.adddobText field;
this.addbackSignIn gbc;
this.addnextSignUp gbc;
this.addthis BorderLayout.NORTH;
this.setVisibletrue;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
