Hello,
How can I get a bigger textfield?
What I mean is:
Let's say that I'm going to register a bunch of cars in a program I made. I want to register things like name, model, when it's made etc + description.
I can make simple JTextFields for most of them, but JTextField is too small for the description. I want to write at least 3-4 lines about the car. What do I have to create to make a field big enough for description?
I tried something called:
textFieldName.setPreferredSize(new Dimension(integer, integer));
But it's not what I want. It gives me the right size with the right values, but I'd like it to possible to press enter for a new line. How should I do this?
I hope I explained it well, english isn't my native language. If you don't understand, I'll explain it better.
Thanks in advance.