Layer layer = getAppropriateLayer(); layer.paint(g);
getAppropriateLayer().paint(g);
    public void paint(Graphics g) {	Layer layer = getAppropriateLayer();	layer.paint(g);	fireStatusUpdate(LayerStatusEvent.FINISH_WORKING);    }