Java library for command line inside a JPanel