/* * Created on 28-jun-2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ import java.awt.event.*; import javax.swing.*; /** * @author Lennard * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class AddJoint implements ActionListener { private JPanel panel; private Object hu; public AddJoint(Object hu, JPanel p) { this.panel = p; this.hu = hu; } public void actionPerformed(ActionEvent e) { DHJointConstraint dh = new DHJointConstraint(0,0,0,0,0,0); JointEditor je = new JointEditor(dh); this.panel.add("South", je.getPanel()); // this.hu.repaint(); } }