import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class CommandSetJoints implements ActionListener { private JTextArea text; private ZSBScreen screen; private JTextArea console; public CommandSetJoints(JTextArea text, ZSBScreen screen, JTextArea console) { this.text = text; this.screen = screen; this.console = console; } public void actionPerformed(ActionEvent e) { console.insert("Set Joints\n",0); this.screen.j = null; /// reset joints String val = this.text.getText(); String[] lines = val.trim().split("\n"); System.out.println("Joints: " + lines.length); for (int i=0;i