January 29th, 2013, 05:49 AM
What's a good Swing component to list elements of a String array?
I'm making a Swing GUI and I need a pane into which I can gradually add one line of String text at a time (and delete if need be).
If it gave me automatic scroll bars, that would be even better.
I put a JScrollPane into it, but I'm not finding any documentation on how to add text Strings.
Seems I have to put the text into a JLabel first (I'm pretty new at this so I could be wrong). I don't want to have to do this...
Am I being unreasonable? Thanks in advance