import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; /* * Created on 29-jun-2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author Lennard * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class ActionParseText implements ActionListener { private JEditorPane text; private ZSBScreen screen; public ActionParseText(JEditorPane text, ZSBScreen screen) { this.text = text; this.screen = screen; } public void actionPerformed(ActionEvent e) { String val = this.text.getText(); String[] lines = val.trim().split("\n"); System.out.println("Joints: " + lines.length); for (int i=0;i