9. สร้างใหม่จากเก่า

The Camtasia Studio video content presented here requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

 
รหัสที่ 9-11  การเพิ่มเมท็อดที่ปรับจุดศูนย์กลางการมองของผู้ใช้ใน DWindow3D
public class DWindow3D extends DWindow {
  ...
  public void onMouseDragged(DPoint p) {
    this.xc = p.getX();
    this.yc = p.getY();
  }
©2009 S.Prasitjutrakul