hello everyone!
i d like to make a GUI consisting of a textField, a button
and a textarea. what layout manager need i use? need i use a JPanel?
my class extends JFrame
Printable View
hello everyone!
i d like to make a GUI consisting of a textField, a button
and a textarea. what layout manager need i use? need i use a JPanel?
my class extends JFrame
Hello dim_ath.
The simplest layout manager to use is FlowLayout. Also, it's up to you if you want to use a JPanel. In this simple GUI it might not be necessary, but then you must remember to assign the flow layout manager to the JFrame. ;)
Do you want an example JFrame?
i think u should use border layout
put the text area in the center and JPanel either north or south which contains both the button & the text field
yes!
Basically i dlike the textField and the button to be to the north
(without covering all the window) and the textArea to be to the
south.