JTable vs JTextArea scrolling text question
Hi all, I am a new Java programmer trying to learn Java for work. I am trying to decide which component to use to create a window that will display scrolling text from an actionlistener. Every time the listener receives a new event, I want to display the time it was received and the event at the top of the window and to have the older events scroll down the window, and eventually off. I want to be able to resize columns in the window, for example giving the "time" field more space. I also want to keep cpu usage low and I feel like it would be intensive if I created a JTable and manually pushed the old entries down a row each time a new entry comes in. I think my preference would be to use a JTable, but I am also unsure of how to dynamically create new rows until I have like 1000 events, and then start pushing the oldest events off.
I am just looking for some opinions on if I would be better off using a JTable or a JTextArea.
I apologize if this is a stupid question, or if I am missing something obvious. Thank you in advance for your help.