public static void main(String[] args){
		
		window = new ConverterGUI();
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {	
					window.getFrame().setVisible(true);
					window.setVersion("alpha 2.0");
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		
		while(true)
		{
			content = window.getInput().getText();
			
			if (window.getButtonKey().equals("swap")) {
				swapEveryOtherLine();	
				window.resetButtonKey();
			}
			
			if (window.getButtonKey().equals("submit")) {
				if (validate()){
					parse(content);
					content = null;
				}
				window.resetButtonKey();
			}
			
			if (window.getButtonKey().equals("reset")){
				window.clean();
				content=null;
				window.resetButtonKey();
			}
			
			if (window.getButtonKey().equals("set_params")){
				setParams();
				window.resetButtonKey();
			}
			
			if (window.getButtonKey().equals("validate")){
				validate();
				window.resetButtonKey();
			}
			
			window.getFrame().repaint();
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
				
	}