![]() |
![]() |
![]() |
![]() |
Test the Transaction Dialog
The Transaction Dialog is now finished, but let's add another line of code to test it.
- Press the Code Sourcerer button and choose 'Java System Operations'. Press Next.
- Choose 'Write text to the standard output...'. Press Next.
- Choose the third option, 'The following variable expression' and enter
You can now test the Dialog by entering a number in the amountField and pressing the 'Command' button. The dialog should vanish and a message should appear in the Java console. Choose 'Initialize Class' from the Program menu to reset the dialog.
When you are finished testing the Dialog, comment-out the last line by putting two slashes in front of it. The code should read
You can now save and exit the Dialog Composer. All of the code you have just created is written to 'TransactionDialog.java'. You should compile this file now. (If you are using the demo version of Simplicity for Java, this file will not be created. You can use the 'FinishedTransactionDialog.java' instead for the rest of the tutorial.)
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |