Jsp page calls the applet to convert the case sensitivity of RMB (2) _ MySQL

Source: Internet
Author: User
Tags getcolor
Appendix 1. applet code: packagelqh. RMB. applicate; importjava. awt. *; importjava. awt. event. *; importjava. applet. *; importlqh. RMB. *; publicclassRmbextendsApplet {privateStringback_color; privateStringfore_color; publicStringgetParameter (St RMB applet

Appendix

1. applet code:


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 (wightth. 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 ",""},

{"Wightth", "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 package, please ask for lqhboy@163.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.