Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Diana's Gicles Eile Help Clear Print Form Quit Ivoice Number Gicle Customer Name: Diana's Gicles 6398 Clear Quantity Calculate Quit 2 0 1 .
Diana's Gicles Eile Help Clear Print Form Quit Ivoice Number Gicle Customer Name: Diana's Gicles 6398 Clear Quantity Calculate Quit 2 0 1 . 3 - Price Date: 06/30/2020 $550.00 $180.00 $315.00 Kahte Lamb Subtotal: X Extended Price Tax: Total: $1,100.00 $315.00 $1,415.00 $138.67 $1,553.67 Diana's Gicles Eile Help About Ivoice Number Gicle Customer Name: Diana's Gicles 7864 Clear Quantity Calculate 5 Quit 1 Price $550.00 Date: 06/30/2020 $180.00 0 Kahte Lamb $180.00 Ark for Zebra on the Moonlight, unframed, $180, quantity 10 3 $315.00 $945.00 Subtotal: Tax: X Total: Extended Price $2,750.00 $3,875.00 $379.75 $4,254.75 Information should flow either vertically or horizontally, with the most important information always located in the upper-left corner of the screen. Maintain a consistent margin of two or three dots from the edge of the window. Related controls should be grouped together using either white space or a JPanel. Position related controls with equal spacing. Buttons should either be centered along the bottom of the screen or stacked in either the upper-right or lower-right corner. If the buttons are centered along the bottom of the screen, then each button should be the same height; their widths, however, may vary. If the buttons are stacked in either the upper-right or lower-right corner of the screen, then each button should be the same height and the same width. Use no more than six buttons on a form. The most commonly used button should be placed first and should be set as a default (the Enter key should fire it). Button captions should: be meaningful be from one to three words appear on one line be entered using book title capitalization contain mnemonic settings "hot" keys activation Use labels to identify the controls in the interface. Identifying lobola should. e. The output field may be read-only JTextFields or JLabels. f. Pressing the enter key should fire the calculate button (default) which displays the subtotal, tax and total charges (the JSpinners dynamically recalculate the extended totals only). g. As the form loads, the current date should be displayed in a disabled JTextField or a JLabel. The form should be centered as well and it should not be resizable. It should contain an appropriate icon and a logo image to be used also in the About form. h. The user should be allowed to enter the customer's name and a 4-digit invoice number. I recommend you use a JFormatted TextField instead of a plain JTextField because it allows validation for range and type much easier. Set the custom format to #### for its formatterFactory. i. The JMenuBar is required. It should include at least JMenus for File (with JMenuItems for Clear, Print, and Exit), and Help (with JMenuItem for the About form). They should have accelerator ("hot") key assigned to them (set Mnemonic property to appropriate letter) in order to use the keyboard's ALT key with the appropriate letter assigned. b. Avoid excessive global or class (static) variables. c. No magic numbers-use finals for all constants. d. Upper/lowercase naming convention (ClassName, functionName, variableName, CONSTANT_NAME). e. White space and indentation ({} line up horizontally or vertically). 4. Make sure that your name, project number, and due date appear as comments in your code (preferably on top). Use Javadocs for this purpose. 5. Use Javadocs extensively--read the document named Javadocs and follow the example therein. Specifically, a. Each class and method must have documentation that includes description, purpose and appropriate tags. b. Each methods must have comments for each parameter (if they have any). c. Each methods must have comments for return value (unless it is void).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started