Get a certain line in a JTextField
Hi!
I got a problem when trying to get my pice of code working.
I need a JTextField or JTextArea (or any type which is good in this case), where I have an unknown amount of rows (supposed to able to add and remove rows). You're supposed to be able to click a line and the text in the line should be returned, only that line.
Re: Get a certain line in a JTextField
I am slightly confused. Have you started to write any code yet?
You could do something like text.getText(); displayed in a JOptionPane
Swing Tutorial: Alert Dialogs (JOptionPane)
Re: Get a certain line in a JTextField
I solved it in a completely different way tho.
But I ment having like a list of persons (for instance) where each line had information about the person (name, adress etc.) on the same row, and if u click the row u returned the text in that row.