Microsoft HomeProductsSearchSupportShopWrite Usspacer.gif Microsoft Home
AFC Samples
 In this topic

*Description

*Sources

 

AFC Samples   PreviousAFC SamplesNext
    Previous AFC
Samples
Next

 


Loan Calculator Sample Applet

The LoanCalc sample demonstrates how an applet or application can accept user input with a wizard and return a complex result.

Description

The loan parameters entered at every wizard step are validated before proceeding to the next step. When the data is invalid, a message box is displayed, indicating the error in the entered parameter. When the wizard is finished, a column viewer is displayed, showing the payment schedule for the loan. The loan parameters are displayed to the left of the column viewer. The parameters displayed in black (Interest Rate & Payment Frequency) must have a value (cannot be calculated), the remaining loan parameters are either displayed in blue (indicating the parameter was entered) or in red (indicating that the parameter was calculated). The Modify Parameters push button is used to invoke the wizard to modify the loan parameters.

The LoanCalc application and applet demonstrates the use of wizards (UIWizard, UIWizardStep), message boxes (UIMessageBox), column viewers (UIColumnViewer, UIList, UIRow), and various other UI controls and classes (UIApplet, UIFrame, UIPanel, UIGroup, UIText, UIGraphic, UIDrawText, UIEditChoice, UIEdit, UIChoice, UIRadioGroup, UIRadioButton, UIPushButton, UIButtonBar, UIBorderLayout, UISplitLayout, UIVerticalFlowLayout).

Sources

This sample applet consists of the following sources:
LCCallbacks.java
LCConsts.java
LCCtrlPnl.java
LCDataPnl.java
LCImages.java
LCInfoPnl.java
LCInsetPanel.java
LCParams.java
LCWizard.java
LoanCalc.java
WZFinal.java
WZInterest.java
WZIntro.java
WZNumPeriods.java
WZPayment.java
WZValue.java

Top