예제 #1
0
 @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());
   }
 }
예제 #2
0
  public DrawPanel3DPanel(DrawPanel3D drawPanel) {
    this.setLayout(new BorderLayout());
    this.drawPanel = drawPanel;
    drawPanel.systemSetup();

    this.add(drawPanel, "Center");
    this.add(makeButtonPanel(), "East");

    shift.addActionListener(this);
  }