Question: Java: Finish the statement to create a JLabel named welcome that holds the words Welcome Home. ANS: JLabel __________ = new JLabel(___________); 12. Finish the
Java:
Finish the statement to create a JLabel named welcome that holds the words Welcome Home.
ANS:
JLabel __________ = new JLabel(___________);
12. Finish the statement to create a layout manager named myLayout that centers components in each row.
FlowLayout ___________ = new FlowLayout(_____________);
13. Finish the statement to provide a JTextField object named myInfo that allows enough room for a user to enter 15 characters.
JTextField myInfo = new JTextField(___);
14. Write the statement to clear out a JTextField named myText.
15. Write the statement to create a JButton named submitButton with the label Submit your data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
