Displayable current = ma.getDisplayAccess().getCurrent();
DisplayAccess da = ma.getDisplayAccess(); if (da == null) { return; } Displayable current = da.getCurrent();
	public void paintDisplayable(SwtGraphics g, int x, int y, int width, int height) 	{		MIDletAccess ma = MIDletBridge.getMIDletAccess();		if (ma == null) {			return;		}		Displayable current = ma.getDisplayAccess().getCurrent();		if (current == null) {			return;		}		g.setForeground(g.getColor(new RGB(				foregroundColor.getRed(), 				foregroundColor.getGreen(), 				foregroundColor.getBlue())));		org.eclipse.swt.graphics.Rectangle oldclip = g.getClipping();		if (!(current instanceof Canvas) 				|| ((Canvas) current).getWidth() != displayRectangle.width				|| ((Canvas) current).getHeight() != displayRectangle.height) {			g.translate(displayPaintable.x, displayPaintable.y);		}		g.setClipping(new org.eclipse.swt.graphics.Rectangle(x, y, width, height));		Font oldf = g.getFont();		ma.getDisplayAccess().paint(new SwtDisplayGraphics(g, getDisplayImage()));		g.setFont(oldf);				if (!(current instanceof Canvas) 				|| ((Canvas) current).getWidth() != displayRectangle.width				|| ((Canvas) current).getHeight() != displayRectangle.height) {			g.translate(-displayPaintable.x, -displayPaintable.y);		}		g.setClipping(oldclip);	}