@Override public void actionPerformed(ActionEvent event) { JButton source = (JButton) event.getSource(); if (source == shift) { drawPanel.shiftSites(shiftTF[0].getDouble(), shiftTF[1].getDouble(), shiftTF[2].getDouble()); } }
public DrawPanel3DPanel(DrawPanel3D drawPanel) { this.setLayout(new BorderLayout()); this.drawPanel = drawPanel; drawPanel.systemSetup(); this.add(drawPanel, "Center"); this.add(makeButtonPanel(), "East"); shift.addActionListener(this); }