Most of my Java development is in the forms of JSP and servlets, so I never have to do much in the way of making UIs. I made my first one recently, however, and I'm fairly satisfied with the results.
Everything is working pretty much as I want it to, with the exception of a JTextPane that I'm using to display status messages as the application performs different tasks. What I'd like to do is have error messages and status messages and whatnot appear in the JTextPane, and that's happening. Unfortunately, it all gets tacked onto the bottom of the current StyledDocument, and the user has to manually scroll down to see the text, as it increases beyond the display area.
What I'd like to do is have the window automatically scroll down, so that the user has to scroll up if they want to see history. I haven't found any examples for doing this, and I'm not seeing anything in the APIs to assist.
I could do the inserts on the document at position 0, I suppose, and have people scroll down for history, but that wouldn't be as satisfying a solution.
Anyone overcome this particular problem that can give me a hint?
I am trying to run java program from USS (z/OS) which makes basic authentication with IBM HTTP Server running on the same machine, same LPAR. I experience some encoding problems...