@@ -0,0 +1,1760 @@
+package bcgTree.gui;%0A%0Aimport java.awt.GridLayout;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0A%0Apublic class BcgTree extends JFrame %7B%0A%09private static final long serialVersionUID = 1L;%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09BcgTree mainWindow = new BcgTree();%0A%09%09mainWindow.pack();%0A%09%09mainWindow.setVisible(true);%0A%09%7D%0A%09%0A%09public BcgTree()%7B%0A%09%09this.setTitle(%22bcgTree%22);%0A%09%09this.setLayout(new GridLayout(4, 1));%0A%09%09JLabel titleLabel = new JLabel(%22bcgTree v1.0.0%22);%0A%09%09titleLabel.setHorizontalAlignment(JLabel.CENTER);%0A%09%09this.add(titleLabel);%0A%09%09this.add(new JButton(%22Check Requirements%22));%0A%09%09this.add(new JButton(%22Set Parameters%22));%0A%09%09JButton actionButton = new JButton(%22Action!%22);%0A%09%09this.add(actionButton);%0A%09%09actionButton.addActionListener(new ActionListener() %7B%0A%09%09%09%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09System.out.println(System.getProperty(%22user.dir%22));%0A%09%09%09%09try %7B%0A%09%09%09%09%09Process proc = Runtime.getRuntime().exec(%22perl %22+System.getProperty(%22user.dir%22)+%22/../bin/bcgTree.pl --help%22);%0A%09%09%09%09%09InputStream stderr = proc.getInputStream();%0A%09%09            InputStreamReader isr = new InputStreamReader(stderr);%0A%09%09            BufferedReader br = new BufferedReader(isr);%0A%09%09            String line = null;%0A%09%09            while ( (line = br.readLine()) != null)%0A%09%09                System.out.println(line);%0A%09%09            int exitVal = proc.waitFor();%0A%09%09            System.out.println(%22Process exitValue: %22 + exitVal);%0A%09%09%09%09%7D catch (IOException %7C InterruptedException e1) %7B%0A%09%09%09%09%09e1.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%0A%7D%0A

Add simple JFrame that can execute bcgTree from a relative path