Ex..
Milk [ text field ]
Eggs [ text field ]
Yogurt [ text field ]
Chicken[ text field ]
I've been trying to add more than one textbox to a window, but I've come to realize that JTextBox
doesn't support multiple lines.
I'm trying to create a file, similar to a grocery store, that displays multiple items and then the user can enter any number of items that they want and that number will be added to sum.
The only way, I've been able to do this so far is with JCheckBox
, but it's hideous, and if possible id much rather do it the way shown above.
P.S. I've seen JTextArea
, but it looks like that only allows a user to write freely, like in paragraph form.