3.1 implement a Java programming solution based on a prepared design I have implemented the “Student Management System” based the design described above. Inheritance hierarchy is used wherever possible to implement classes
3.2 define relationships between objects to implement design requirements
3.3 implement object behaviours using control structures to meet the design algorithms
3.4 identify and implement opportunities for error handling and reporting
3.5 make efective use of an Integrated Development Environment (IDE) including code and screen templates The application is developed in NET Beans IDE because IDEs are helpful in code writing and managing the files more easily. It is helpful for us to create derived classes for the existing classes also. For example if i want to create a derive class from an existing class that java provided. It will automatically generate basic functionality for the class like the constructor. If i want to override a base class method then the basic structure of the function is generated.
In the application “Student Management System” I have used Net Beans and its code templates and screen templates are used to generate the application functionality. Invoking Code Completion Press Ctr-Space (or choose Source > Complete Code from the main menu) to open the code completion box. While you are typing, the list of suggestions shortens. The suggestions listed include those imported in your source file and symbols from the java.langpackage.
When the Auto Popup Completion Window checkbox is disabled, you need to press Ctr-Space each time you want to use code completion. Smart Suggestions at the Top In the NetBeans IDE, Java code completion is "smart," which means that the suggestions that are the most relevant for the context of your code are displayed at the top, above the black line in the code completion window. 16
In the example below, the editor suggests inserting the LinkedHashMapconstructor from the java.util package. If the "smart" suggestions are not the ones you want to use, press Ctr-Spaceagain to
see a complete list.
Completing Keywords Use code completion (Ctr-Space) to complete keywords in your code. The editor analyzes the context and suggests the most relevant keywords. In the example on the left, the ColorChooserDemoclass extends the JPanel class. You can quickly add the keyword extends from the suggested items.
Common Prefix Completion
You can use the Tab key to quickly fill in the most commonly used prefixes and single suggestions. To check out how this feature works, try typing the following: o Type System.out.p and wait for code completion to show all fields and methods that start with "p." All the suggestions will be related to "print." o Press the Tab key and the editor automatically fills in the "print". You can continue and type "l" and, after pressing Tab, the "println" will be added.
Using Code Templates Code templates are marked with the
icon in the code completion window.
We can do one of the following: o Select a template from the code completion window and press Enter or o Type the abbreviation for this template and press the key that expands this template (by default, Tab). In the expanded template, editable parts are displayed as blue boxes. Use the Tab key to go through the parts that you need to edit.
Adding code template
To customize Code Templates: 1. Choose Tools > Options > Editor > Code Templates. 2. From the Language drop down list, select Java (or whichever language you want to create a code template for). The list of abbreviations and associated templates is displayed. 3. Use the New and Remove buttons to add or remove templates in the list. To edit an existing template, select the template and edit the code in the Expanded Text field below the list. 4. Choose the key which will be used to expand the templates. The default key is Tab. Some evaluate questions about this application
Feedback Questions What do you think about the UI of this application? What do you think about the functions of this application?
This application is friendly using? What do you think about error handling of this application?