Hi again.
I'm creating a form, which uses JTextFields to enter and store text.
The problem is, I create a large JTextField, which has room to store about 4 lines of text. But the text doesn't take advantage of the room. The text is created in the center-left of the text box, and fills along horizantally. When it reaches the end, it keeps going off the side of the JTextField.
What I WANT it do to is behave like any text-entry box on the internet- like the ones on this forum, where it starts in the top-left, and when it reaches the other side, it drops down a line.
Any idea how to do this?
Code:
JTextField bob = new JTextField("");
bob.setPreferredSize(new Dimension(300,20));
c5.gridx = 1; c5.gridy = (i*3+0); p.add(bob, c5);