当前位置:Gxlcms > mysql > jsp页面调用applet实现人民币的大小写转换(二)_MySQL

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

时间:2021-07-01 10:21:17 帮助过:9人阅读

人民币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

人气教程排行