Is it possible to have two (or more) independently scrolling columns in Java? I am asking for functionality like this:
Before:
Output 11 Output 21
Output 12 Output 22
Output 13 Output 23
After:
Another line was added to column 2, it scrolled up but left column 1 unaffected.
Output 21
Output 11 Output 22
Output 12 Output 23
Output 13 Output 24
I am aware that such functionality could be achieved using Swing or an ncurses-like interface, but I am unable to use either.
EDIT: To clarify, I want to be able to format the stdout in this manner (or redirect it if necessary). The application I'm writing uses an interactive command line interface, this is why swing and curses are not acceptable. More specifically, I require Editline/Readline like functionality for the CLI. I can achieve this using a library called JLine. However I am not able to redirect JLine's input and output to use a text area in curses as opposed to the standard in/out. The same is true for Swing. Hence why I am trying to find a non-curses/swing bases solution.
I want to be able to display the normal output of the command-line interaction in one column, while displaying some more 'persistent' information in another.