Dylan-B-Johnson / GUI-Console

A simple package that allows for the creation of command-line Java apps that run outside a console. (By default Java hides the console when running a jar file, so normal command line programs can't be used as a runnable jar without modifying the user's Java runtime settings).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GUI-Console

A simple package that allows for the creation of command-line Java apps that run outside a console. (By default Java hides the console when running a jar file, so normal command line programs can't be used as a runnable jar without modifying the user's Java runtime settings).

Here is an example console window. The following code (and the user's entering of "response") produced this output:

Console console = new Console();
console.input("<<prompt>>");
console.input("<<prompt2>>");

This package uses multithreading to ensure that the GUI is responsive, while the thread that calls an input method waits for the user's input to be returned.

About

A simple package that allows for the creation of command-line Java apps that run outside a console. (By default Java hides the console when running a jar file, so normal command line programs can't be used as a runnable jar without modifying the user's Java runtime settings).


Languages

Language:Java 100.0%