Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

=+How sensitive is Pats decision?

Answered: 1 week ago

Question

What can PMT do to improve its safety practices and policies?

Answered: 1 week ago