- 积分
- 55965
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
发表于 2016-11-17 08:33:56
|
显示全部楼层
那个方法已经删除了,可以用下面的代码:
private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {
// TODO add your handling code here:
int selIndex = this.jTabbedPane1.getSelectedIndex();
switch (selIndex) {
case 0: //MapView
this.mapLayout1.setLockViewUpdate(true);
this.mapView1.zoomToExtent(this.mapView1.getViewExtent());
break;
case 1: //MapLayout
this.mapLayout1.setLockViewUpdate(false);
this.mapLayout1.paintGraphics();
break;
}
} |
|