Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Developing a graphical user interface in programming is paramount to being succe

ID: 3762759 • Letter: D

Question

Developing a graphical user interface in programming is paramount to being successful in the business industry. This project incorporates GUI techniques with other tools that you have learned about in this class. Here is your assignment: You work for a flooring company. They have asked you to be a part of their team because they need a computer programmer, analyst, and designer to aid them in tracking customer orders. Your skills will be needed in creating a GUI program that calculates the flooring cost and stores the order in the database. Your application must include at least three tabs. The user will choose wood flooring or carpet, enter the length and width of the floor, as well as the customer name and address. The application will compute the area of the floor and the cost of the flooring considering that wood floor is $20 per square foot and carpet is $10 per square foot. A summary should be displayed, either in a tab or another window, listing the customer name and address, floor selection, area, and cost. This information should also be stored in the MySQL database table. The program should validate that all information is entered and that the length and width are numeric values. Any numeric or currency values must be formatted appropriately when output. Recommendations for the components used for input are radio buttonsflooring type (wood or carpet); text fieldscustomer name, customer address, floor length, and floor width; and buttonscalculate area, calculate cost, submit order, display order summary, display order list. The MySQL database table is called flooring and has the following description. Field Type CustomerName varchar(30) CustomerAddress varchar(50) FlooringType varchar(10) FloorArea double FloorCost double In addition to entering new customer orders, your application should list all customer orders stored in the database. These will be viewed as a list, in a text area, and will not be updated by the user. You will use the guidelines described above and the grading rubric below to complete this document. You will create the following items. 1. Request for new application = Done 2. Problem analysis = Done 3. List and description of the requirements = Done 4. Interface storyboard or drawing = Done 5. Design flowchart or pseudocode - Needing assistance. 6. Create code in JAVA

Explanation / Answer

import java.awt.EventQueue; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import java.awt.BorderLayout; import javax.swing.JTabbedPane; import org.eclipse.wb.swing.FocusTraversalOnArray; import java.awt.Component; import javax.swing.JLabel; public class Flooring { private JFrame frame; private JTextField textField; private JTextField textField_1; private JTextField textField_2; private JTextField textField_3; /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Flooring window = new Flooring(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the application. */ public Flooring() { initialize(); } /** * Initialize the contents of the frame. */ private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); tabbedPane.setBounds(0, 0, 434, 262); frame.getContentPane().add(tabbedPane); JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP); tabbedPane.addTab("FlooringOrder", null, tabbedPane_1, null); JTabbedPane tabbedPane_2 = new JTabbedPane(JTabbedPane.TOP); tabbedPane.addTab("FloorOrderDetails", null, tabbedPane_2, null); JLabel lblNewLabel = new JLabel("Width"); lblNewLabel.setBounds(102, 46, 46, 14); tabbedPane_1.add(lblNewLabel); JRadioButton rdbtnNewRadioButton = new JRadioButton("wood"); rdbtnNewRadioButton.setBounds(102, 7, 92, 23); tabbedPane_1.add(rdbtnNewRadioButton); JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("Carpet"); rdbtnNewRadioButton_1.setBounds(213, 7, 109, 23); tabbedPane_1.add(rdbtnNewRadioButton_1); JLabel lblNewLabel_1 = new JLabel("Length"); lblNewLabel_1.setBounds(102, 71, 46, 14); tabbedPane_1.add(lblNewLabel_1); textField = new JTextField(); textField.setBounds(213, 43, 86, 20); tabbedPane_1.add(textField); textField.setColumns(10); textField_1 = new JTextField(); textField_1.setBounds(213, 68, 86, 20); tabbedPane_1.add(textField_1); textField_1.setColumns(10); JLabel lblNewLabel_2 = new JLabel("CustomerName"); lblNewLabel_2.setBounds(80, 105, 86, 14); tabbedPane_1.add(lblNewLabel_2); textField_2 = new JTextField(); textField_2.setBounds(213, 99, 86, 20); tabbedPane_1.add(textField_2); textField_2.setColumns(10); JLabel lblCustomeraddr = new JLabel("Customer?Addr"); lblCustomeraddr.setBounds(80, 133, 86, 14); tabbedPane_1.add(lblCustomeraddr); textField_3 = new JTextField(); textField_3.setBounds(213, 130, 86, 20); tabbedPane_1.add(textField_3); textField_3.setColumns(10); JButton btnSubmit = new JButton("submit"); btnSubmit.setBounds(149, 174, 89, 23); tabbedPane_1.add(btnSubmit); } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote