This post originated from an RSS feed registered with Java Buzz
by Rod Waldhoff.
Original Post: Wanted: GUI Wrapper for Text-Based Java Applications
Feed Title: Rod Waldhoff: Java Channel
Feed URL: http://radio-weblogs.com/0122027/categories/java/rss.xml
Feed Description: about the Java programming language
I've got a simple console-based (i.e., text interface) Java application that I'd like to expose via Java Web Start or as an Applet. I can't, however, because System.in and System.out aren't attached to anything useful, so my application runs invisibly and can't collect any input.
What I need is a simple wrapper application that creates a basic text i/o frame that looks like stdin/stdout to my application's main method. (Or, failing that, to a custom main(String[] args, InputStream stdin, PrintStream stdout, PrintStream stderr) method.) More elaborate interfaces, such as color coded output, distinct stdout and stderr frames, spool to file, etc., are easily imagined.
I believe such an application would have fairly broad utility. A web search finds quite a few elaborate telnet/ssh oriented terminal emulators, which one might be able to pare down to what I'm looking for, but it seems like someone would have already tackled this problem. Lazy web to the rescue?