import javax.microedition.lcdui.*; class Louend2 extends Canvas{ protected void paint(Graphics g){ g.setColor(255, 255, 255); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(0, 0, 0); g.fillArc(10, 10, getWidth()-20, 50, 0, 180); //vasakult, ülalt, laius, kõrgus, algnurk, kaarenurk g.setStrokeStyle(Graphics.DOTTED); g.drawLine(10, 30, 10, getHeight()); g.drawLine(getWidth()-10, 30, getWidth()-10, getHeight()); g.drawString("Tervitus", getWidth()/2, getHeight()/2, Graphics.BOTTOM | Graphics.HCENTER); } }