After unpacking the archives, the package comes with a default set of script and a default configuration file.
- JyConsole.sh, for UNIX system such as Linux and Mac OS X
- JyConsole.bat for Windows system.
- Command history (Key: Up and Down)
- Style management on text (Popup menu on the console or jyconsole.propertie file for the default properties)
- Script loader (Popup menu on the console or for the initial script see the jyconsole.propertie file)
- Java completion (Key: Ctrl + Space)
- Python/Jython completion (Key: Ctrl + Space)
public static void main(String[] args) { // Load external properties from a file try { PropertyLoader.loadProperties("./jyconsole.properties"); } catch (Exception e) { System.err.println(e.getMessage()); } JyConsole console = new JyConsole(); JFrame f = new JFrame("JyConsole by Artenum"); //f.setIconImage(new ImageIcon(JyConsole.class.getResource("logo.gif")).getImage()); f.getContentPane().add(console, BorderLayout.CENTER); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(600, 400); f.setLocationRelativeTo(null); f.setVisible(true); }