public void build(){
if(dp!= null) {
dp.removeAll():
remove(dp);
}
dp = new DrawPanel();
dp.repaint();
add(dp);
dp.setVisible(true);
setVisible( true );
update(dp.getGraphics());
}
if(dp!= null) {
dp.removeAll():
remove(dp);
}
dp = new DrawPanel();
dp.repaint();
add(dp);
dp.setVisible(true);
setVisible( true );
update(dp.getGraphics());
}