Question: Which XXX completes the constructor for the following GUI? AboutFrame ( ) { GridBagConstraints layoutConst; setTitle ( About ) ; aboutLabel = new

Which XXX completes the constructor for the following GUI?
AboutFrame(){
GridBagConstraints layoutConst;
setTitle("About");
aboutLabel = new JLabel("Developed by");
fNameField = new JTextField(5);
fNameField.setEditable(false);
fNameField.setText("James");
lNameField = new JTextField(5);
lNameField.setEditable(false);
lNameField.setText("Gosling");
setLayout(new GridBagLayout());
layoutConst = new GridBagConstraints();
layoutConst.gridx =0;
layoutConst.gridy =0;
XXX
layoutConst.insets = new Insets(10,10,10,10);
add(aboutLabel, layoutConst);
layoutConst = new GridBagConstraints();
layoutConst.gridx =0;
layoutConst.gridy =1;
layoutConst.insets = new Insets(10,10,10,10);
add(fNameField, layoutConst);
layoutConst = new GridBagConstraints();
layoutConst.gridx =1;
layoutConst.gridy =1;
layoutConst.insets = new Insets(10,10,10,10);
add(lNameField, layoutConst);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!