// this is not required when you only want to use the simple console
// but when you want some support for commands this is how
consoleCommands = new ConsoleCommands(nifty, console);
ConsoleCommand showCommand = new ShowCommand();
consoleCommands.registerCommand("show ListBox", showCommand);
consoleCommands.registerCommand("show DropDown", showCommand);
consoleCommands.registerCommand("show TextField", showCommand);
consoleCommands.registerCommand("show Slider", showCommand);
consoleCommands.registerCommand("show ScrollPanel", showCommand);
consoleCommands.registerCommand("show ChatControl", showCommand);
consoleCommands.registerCommand("show DragAndDrop", showCommand);
NiftyCommand niftyCommand = new NiftyCommand();
consoleCommands.registerCommand("nifty screen", niftyCommand);
ConsoleCommand helpCommand = new HelpCommand();
consoleCommands.registerCommand("help", helpCommand);
ConsoleCommand clearCommand = new ClearCommand();
consoleCommands.registerCommand("clear", clearCommand);
ConsoleCommand exitCommand = new ExitCommand();
consoleCommands.registerCommand("exit", exitCommand);
// enable the nifty command line completion
consoleCommands.enableCommandCompletion(true);