public void update(Observable o, Object arg) {
YardZoneComboxHandler yzch=(YardZoneComboxHandler)o;
Map map=yzch.map;
if(null!=map &&map.size()>1){
lrlist=map;
Rectangle bor = yardZoneCob.getBounds();
searchPanel.remove(yardZoneCob);
leftList=(List)lrlist.get("leftYard");
rightList=(List)lrlist.get("rightYard");
yardZoneCob = YardZoneJComboBoxBO.getInstance().getJComboBox(leftList, (List)lrlist.get("rightYard"));
yardZoneCob.setBounds(bor);
yardZoneCob.addActionListener(new CommandAction());
Graphics g=this.getGraphics();
paintComponents(g);
searchPanel.repaint();
this.repaint();
}
//覆盖
public void paintComponents (Graphics g){
yardZoneCob.setVisible(true);
searchPanel.add(yardZoneCob,new GBC(1,1).setInsets(8, 10, 5, 0).setAnchor(GBC.WEST));
super.paintComponents(g);//使页面正常显示
}