import java.awt.*; public class line2 extends java.applet.Applet { public void paint(Graphics screen) { int x2=4,y2=4; for (int i=0; i<80; i++) { screen.drawString("+", x2,150); x2=x2+5; } for(int i=0;i<60;i++) { screen.drawString("+", 198,y2); y2=y2+5; } x2=199; y2=0; for (int j=0; j<26; j++) { screen.setColor(new Color(255,0,0)); //RGB screen.drawLine(200, y2, x2,145); x2=x2+8; y2=y2+6; } //************************************************ x2=200; y2=0; for (int j=0; j<24; j++) { screen.setColor(new Color(0,255,0)); //RGB screen.drawLine(200, y2, x2,145); x2=x2-8; y2=y2+6; } //************************************************ x2=200; y2=299; for (int j=0; j<26; j++) { screen.setColor(new Color(255,0,0)); //RGB screen.drawLine(200, y2, x2,145); x2=x2-8; y2=y2-6; } //************************************************ x2=199; y2=299; for (int j=0; j<26; j++) { screen.setColor(new Color(0,0,255)); //RGB screen.drawLine(200, y2, x2,145); x2=x2+8; y2=y2-6; } } }