I am using JFrame for my GUI and I want to be able to select a row of text of a bunch of rows of text, one at a time. Like in Microsoft Outlook, you select an email and it selects the whole line for you of all the different fields, email address, date/time, size, etc. across the screen. How do I go about doing that in Java? What's the method called? I can't google it correctly, it doesn't know what I am looking for so I came on here hoping someone can help me.
I want to be able to just highlight or select a row of text, not necessarily do anything with it, just select it and have it give out a yellow color or something like that.
To have the ability to select, do I need to use a table like JTable?