A good answer might be:These two lines (might) count as the "application code:"
(Although it could be argued that there is no application code because
all the code deals with the GUI.)
| |
Application Code in its own MethodIn a typical application with a graphical interface, about 40% of the code manages the user interface. The rest of the code is for the application---the reason the program was written. Usually the application code is kept separate from the code that manages the interface. In a big application it would be confusing to mix the two together. (Scattering user interface code throughout application code is sometimes called "code sprinkling".) Here is our tiny application with a separate method for the application code:
In large applications the application code and the GUI code are kept in many separate files. | |
QUESTION 11:(Try it out: ) Run the program. When you enter text into the top TextField and hit enter, the text is copied to the lower TextField. What happends if you enter text into the lower TextField and hit enter? Click Here after you have answered the question |