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

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

WBOY
WBOYOriginal
2016-06-01 14:06:531154browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn