import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class CommandGetPuma implements ActionListener { private JTextArea text; private JTextArea console; private ZSBScreen screen; public CommandGetPuma(JTextArea text, ZSBScreen screen, JTextArea console) { this.text = text; this.screen = screen; this.console = console; } public void actionPerformed(ActionEvent e) { this.text.setText( "0 0 0 0 0 0" ); this.console.insert("Got scaled Puma\n", 0); } }