Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I simply cannot figure these out or find them in my book 1. The import statement

ID: 3543587 • Letter: I

Question

I simply cannot figure these out or find them in my book


1. The import statement needed to use multi-line text box components in applets or GUI applications is_____


2.To place a component on a Container, invoke its _____ method


3.To control the arrangement of components on a Container, invoke its ____ method


4. The ___ class that represents the arrangement scheme of simply placing components in left-to-right order on a Container.


5. The method that determines the dimensions of a Java GUI application window is______


6. Besides determining the dimensions of a newly created Java GUI application window, what additional method must be invoked to make the window appear to the user?

Explanation / Answer

(1) JTextField does not support multiline. what you want is a JTextArea .So, " import javax.swing.JTextArea "

(2) add() method

(3) setLayout()

(4) FlowLayout()

(5) getSize() - 2 overloaded methods in java.awt.Component

(6) setVisible(true);