Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-01 14:06:53
Original
1128 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template