![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]()
|
|
|||||||||||||
Loan Calculator Sample AppletThe LoanCalc sample demonstrates how an applet or application can accept user input with a wizard and return a complex result.
DescriptionThe 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). SourcesThis sample applet consists of the following sources:
|
![]() |