super("Charva Beanshell v1.0");
setForeground(Color.green);
setBackground(Color.black);
Container cp = super.getContentPane();
cp.setLayout(new BorderLayout());
addMenuBar();
messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.Y_AXIS));
topLabel = new JLabel("F12[evaluate], F1[clear-output], F5[clear-editor]");
messagePanel.add(topLabel);
bottomLabel = new JLabel("");
messagePanel.add(bottomLabel);
cp.add(messagePanel, BorderLayout.SOUTH);
editor = new JTextArea(example, 8, 75);
JScrollPane scrollEditor = new JScrollPane(editor);
scrollEditor.setViewportBorder(new TitledBorder("Beanshell Editor"));
output = new JTextArea("BSH output", 7, 75);
output.setLineWrap(true);
JScrollPane scrollOutput = new JScrollPane(output);
scrollOutput.setViewportBorder(new TitledBorder("Beanshell Output"));
bshPanel.setLayout(new BorderLayout());
bshPanel.add(scrollEditor, BorderLayout.NORTH);
bshPanel.add(scrollOutput, BorderLayout.SOUTH);
cp.add(bshPanel, BorderLayout.CENTER);
editor.addKeyListener(new KeyAdapter() {