Compounding Calculator-Pair 2.0

Source: Internet
Author: User

Pair item: Compound Interest Calculation

Partner: 30 Cai Jing Air http://www.cnblogs.com/cjh123/

Github:https://github.com/alfredzhu/teamwork

Customers under the guidance of the people have more ideas:

    1. I often fill in this data ..... Would you please fill it in beforehand? ......
    2. Make the interface simple and beautiful.
    3. Can you help me to turn into an app, I put on the mobile phone is more convenient?
    4. I think this is very useful, many people may need these features, to do my public number it?
    5. Could you please not let me fill out the form, let me wind the news, or say a word to the phone?

Our group chooses 1 and 22 directions to improve

Estimated time to 3H

Actual Time 2.5H

New parameters

1 String x = ""; 2 String y = ""; 3 String z = "";

Pre-fill function

1 Private voidJbutton11actionperformed (java.awt.Event. ActionEvent evt) {2         //Pre-fill data3Object[] Obj2 = {"principal","Interest Rate","years" };4string s = (string) Joptionpane.showinputdialog (NULL,"Please select the data you need to pre-populate: \ n",5                 "Pre-fill", Joptionpane.plain_message,NewImageIcon ("Icon.png"),6Obj2,"Interest Rate");7         if(s = ="principal") {8             if(Action = =0|| Action = =1|| Action = =2|| Action = =49|| Action = =5|| Action = =6|| Action = =7|| Action = =8) {Tenx = (String) joptionpane.showinputdialog (NULL,"Please enter the pre-filled principal: \ n", One                         "pre-filled values", Joptionpane.plain_message,NULL,NULL,"in this input"); AJtextfield1.settext (""+x); -             } -         } the         if(s = ="Interest Rate") { -             if(Action = =0|| Action = =1|| Action = =2|| Action = =3 -|| Action = =4|| Action = =6|| Action = =7|| Action = =8) { -y = (String) joptionpane.showinputdialog (NULL,"Please enter the pre-fill rate: \ n", +                         "pre-filled values", Joptionpane.plain_message,NULL,NULL,"in this input"); -Jtextfield2.settext (""+y); +             } A         } at         if(s = ="years") { -             if(Action = =0|| Action = =1|| Action = =2|| Action = =3 -|| Action = =4|| Action = =6|| Action = =7|| Action = =8) { -z = (String) joptionpane.showinputdialog (NULL,"Please enter a pre-filled life: \ n", -                         "pre-filled values", Joptionpane.plain_message,NULL,NULL,"in this input"); -Jtextfield3.settext (""+z); in             } -             if(Action = =5) { toz = (String) joptionpane.showinputdialog (NULL,"Please enter a pre-filled life: \ n", +                         "pre-filled values", Joptionpane.plain_message,NULL,NULL,"in this input"); -Jtextfield2.settext (""+z); the             } *         } $}

Add background

1     //plot the background map on the bottom-Layeredpane of the second -to-last JFrame2JLabel Piclabel =NewJLabel ();3Piclabel.seticon (NewImageIcon ("under.jpg")); 4            This. Getlayeredpane (). Add (Piclabel,NewInteger (Integer.min_value));5Piclabel.setbounds (0,0, +,705);6          7         //Add the button on the top contentpane of the JFrame and set the ContentPane to transparent. 8JPanel content =NewJPanel ();9Content=(JPanel) Getcontentpane (); TenContent.setopaque (false); One         //Content.add (MONTHORWEEKPLANBTN);

Run effect

Results can be pre-filled under various functions

Summary: In writing code although will encounter difficulties, but still have to think a lot to solve the problem with this, small partners to share his ideas in time with me, I am very gratified, so also completed quite fast, can improve a lot of efficiency, coupled with the division of labor, so the efficiency of more than one times.

Furthermore, for the customer's needs, but also to facilitate our own another way, and our procedures more perfect, such as pre-filling function, we know the exact interest rate, we often have to fill, so pre-filling, customers can steal a little lazy, they can steal some lazy, why not.

Compounding Calculator-Pair 2.0

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.