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

2019-05-27 09:39:46于丽

    }

    int middel =(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);

  }

  public void init() {

    try {

      back_color = this.getParameter("RGB_Back", "241|247|251");

       }catch(Exception e) {e.printStackTrace();}

   try {

     fore_color = this.getParameter("RGB_Fore", "255|0|0");

     }catch(Exception e) {e.printStackTrace();}

   try {

     wigth = this.getParameter("WIGTH", "0");

     }catch(Exception e) {e.printStackTrace();}

   try {

     jbInit();