• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

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

mysql 搞代码 4年前 (2022-01-09) 26次浏览 已收录 0个评论

人民币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 {
<P false;
<P RMBConversion();

<P "";
<P ;
<P ;

private String back_color;

private String fore_color;


public String getParameter(String key, String def) {

return isStandalone ? System.getProperty(key, def) :
<P null ? getParameter(key) : def);

}

public void paint(Graphics g) {

if(wigth.equals(“0”)){
<P "560";

}
<P Integer.parseInt(wigth);


if(checkNum(var0)){

if(var0.endsWith(“本文来源gao($daima.com搞@代@#码(网.”)){
<P var0.substring(0,var0.length()-1);

}
<P rmb.RMB(var0);

}else{
<P 输入错误:"+var0;

}
<P (i – re_rmb.length()*12)/2;

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);
<P ;

}

if(breakBoolean) break;

}

if(breakBoolean){

return false;

}else{

if(str.startsWith(“.”)){

return false;

}else{

return true;

}

}

}

public String[][] getParameterInfo() {
<P

{

{“RGB_Back”, “String”, “”},

{“RGB_Fore”, “String”, “”},

{“WIGTH”, “String”, “”},

};

return pinfo;

}

private int[] getColor(String rgb){
<P new int[3];
<P ;

-1){
<P (rgb.substring(nextIndex,index));
<P +1;

len++;

}
<P (rgb.substring(nextIndex));

return rgb_return;

}

private int getInt(String str){

try{

return Integer.parseInt(str);

}catch(Exception e){

return 0;

}

}

}

2.java包,欢迎索取[email protected]


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:jsp页面调用applet实现人民币的大小写转换 (二)_MySQL
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址