import javax.microedition.lcdui.*; public class Line extends Canvas{ public myLine() public void paint(Graphics g){ g.setColor(128, 50, 100); g.fillRect(0, 0, 240, 320); g.setColor(0, 0, 40); g.drawLine(10, 50, 230, 50); g.drawLine(10, 50, 10, 100); g.drawLine(10, 100, 230, 100); g.drawLine(230, 100, 230, 50);}}