文本编辑器源文件(java语言)(30) int c1= 0;//记录行的数目 int c2= 0;//记录每行的字节数 int c3= 0; //最大列数 g.setFont(Ffont); g.setColor(Color.white); g.fillRect(3,2,sz.width,sz.height); g.setColor(Bcolor); paint_x= 3-(int)(sc.offsetx*cus.w); paint_y= fh-(int)(sc.offsety*fh); for(int i=0;i< totle;i++) { if(text[i]=='\n') { paint_x = 3-(int)(sc.offsetx*cus.w); paint_y+=cus.h; //i++; sc.length[c1]= c2+1; c1++; if(c2>c3) c3= c2; c2= 0; }else