欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

jsp页面调用applet实现人民币的大小写转换 (二)_MySQL

程序员文章站 2022-05-14 12:34:07
...
人民币applet

附录

1.applet代码:


package lqh.rmb.Applicate;



import java.awt.*;


import java.awt.event.*;


import java.applet.*;


import lqh.rmb.*;



public class Rmb extends Applet {








private String back_color;


private String fore_color;



public String getParameter(String key, String def) {


return isStandalone ? System.getProperty(key, def) :



}


public void paint(Graphics g) {


if(wigth.equals("0")){



}




if(checkNum(var0)){


if(var0.endsWith(".")){



}



}else{



}



this.setBackground(new Color(getColor(back_color)[0], getColor(back_color)[1], getColor(back_color)[2]));


this.setForeground(new Color(getColor(fore_color)[0], getColor(fore_color)[1], getColor(fore_color)[2]));


g.drawString(re_rmb,middel,20);



}


if(breakBoolean) break;


}


if(breakBoolean){


return false;


}else{


if(str.startsWith(".")){


return false;


}else{


return true;


}


}


}


public String[][] getParameterInfo() {



{


{"RGB_Back", "String", ""},


{"RGB_Fore", "String", ""},


{"WIGTH", "String", ""},


};


return pinfo;


}


private int[] getColor(String rgb){




-1){




len++;


}



return rgb_return;


}


private int getInt(String str){


try{


return Integer.parseInt(str);


}catch(Exception e){


return 0;


}


}


}



2.java包,欢迎索取lqhboy@163.com