Preview

Prg421 Week 2 Ia

Satisfactory Essays
Open Document
Open Document
565 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Prg421 Week 2 Ia
import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.NumberFormat; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.SwingConstants;

/** * PRG 421 Week 2 * Retail Calculator Application * Greg W. Stuart */ public class RetailCalculator extends JFrame implements ActionListener {

//instance variables for GUI elements private JPanel jPanel1, jPanel2, jPanel3; private JLabel lbTitle, lbItemName, lbDepartment, lbOriginalPrice, lbDiscountRate, lbSalePrice; private JTextField tfItemName, tfOriginalPrice, tfDiscountRate; private JButton btCalculate, btExit, btReset; private JScrollPane jScrollPane; private JTextArea jTextArea; private JComboBox jComboBox; private String strResult; private NumberFormat numberFormat;

//constructor public RetailCalculator {

super("Retail Calculator"); setLayout(null); setSize(415, 440); setLocation(150, 100);

//panels jPanel1 = new JPanel(); jPanel1.setBounds(0, 0, 300, 30); jPanel1.setLayout(new FlowLayout());

jPanel2 = new JPanel(); jPanel2.setBounds(0, 31, 300, 120); jPanel2.setLayout(new GridLayout(6, 2));

jPanel3 = new JPanel(); jPanel3.setBounds(0, 151, 400, 250); jPanel3.setLayout(new GridLayout(1, 1));

//title for pane lbTitle = new JLabel("Retail Calculator");

//label and textfield for employee name lbItemName = new JLabel("Item name: "); lbItemName.setHorizontalAlignment(SwingConstants.RIGHT); tfItemName = new JTextField();

You May Also Find These Documents Helpful

  • Good Essays

    Proj586 Week 4

    • 660 Words
    • 3 Pages

    What is your total budget for this project? Was the project within the budget as set forth by the board of directors?…

    • 660 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Acc561 Week 5

    • 250 Words
    • 1 Page

    List the products and show for each quarter and for the 6 months, units, selling price, and total sales by product and in total.…

    • 250 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    CMGT 575 Week 2 Summary

    • 348 Words
    • 2 Pages

    This file includes CMGT 575 Week 2 Individual Assignment SR-rm-004 Project plan of HR Integration of Riordan Manufacturing…

    • 348 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ISSC362 Week 2

    • 645 Words
    • 3 Pages

    During the scanning step of the hacking attack process, you identified known software vulnerabilities in a Windows XP Professional Workstation. List the name and number of the critical Microsoft® vulnerabilities identified. What is vulnerability “MS08-067”?…

    • 645 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PM586 week 1

    • 534 Words
    • 2 Pages

    10/4/2014Why have Personal Navigation Devices become popular? What technologies are required to facilitate the success of PNDs? PND’s have become very popular in both handheld and vehicle models. These personal devices allow the users to not only determine where they need to go but also where they are and most have a memory which allows the user to save locations to their favorites. If they are connected to the internet they can be updated regularly with new locations to search for within their memory like restaurant’s, gas stations, and various other stores and community locations. PND’s work using GPS navigation satellites to gain their respective GSP coordinates. With these coordinates the internal system can place them on the map that have been installed within the PND and shows the user where they are in relation to other locations and can even give the best path from point A to point B. CITATION htt27 \l 1033 (htt27)Who are some of the leaders in PNDs? What are the likely factors that will contribute to winning in this marketplace? Among the top PND’s are Garmin, Tom Tom, Magellan, and Motorola. The PND that I have had personal experience with would be the Garmin. Garmin produces rugged hand held models that are perfect for camping, hunting and hiking. They normally come equipped with forest roads and other off the beaten track maps that the vehicle models do not contain. To win in this market the PND manufacturers need to be able to give simple but robust features along with a reasonable price structure that will enable the average user to be able to afford them. CITATION htt28 \l 1033 (htt28)…

    • 534 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    CMGT 445 Week 2 IA

    • 814 Words
    • 3 Pages

    Each organization should implement their set of technical standards for configuration management and control. There are established guideline templates for different sets of configuration management already on the market. One such set of industry standards…

    • 814 Words
    • 3 Pages
    Better Essays
  • Satisfactory Essays

    Week 9 Eng 101 Checkpoint

    • 326 Words
    • 2 Pages

    Enter the correct answer for each item by typing either a or b in the second column. Provide an explanation for each choice in the Rationale column. The boxes expand to accommodate your text.…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Prg/420 Week 5

    • 958 Words
    • 4 Pages

    This tutorial is designed to provide you with an understanding of the Java Calendar class, it’s backgrounds, purpose and uses. It is created in such a manner as to allow even beginning Java programmers an understanding and feel for the uses of the Java Calendar class. The Java Calendar class was added to the Java Development Kit in JDK 1.1. It is designed to permit the conversion between a specific instance in time and a set of Calendar fields. (Oracle, 2004, 2010) What exactly does this mean? The Calendar class uses a huge array of tables to keep track of time based on daylight savings time, timezones, and calendar history, the calendar class uses a system time to determine where whatever event is being tracked falls on in the internal calendar tables. Some confusion is caused by this as Java does keep track of specific location time, and the programmer needs to keep this in mind when using the Calendar class even when it isn’t relevant to the problem being addressed (Roedy Green, Canadian Mind Products, 1196-2011).…

    • 958 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    This work of GLG 220 Week 5 Environmental Sustainability Paper includes: Wind Power: Its Pros and Cons…

    • 370 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    POS 421 Week 1

    • 1116 Words
    • 5 Pages

    When it comes to installing Microsoft Windows Server 2008 R2, there are many different server roles that this software operating system has to offer. The first one is Active Directory Certificate Services and Active Directory Domain Services. Active Directory is a huge component when it comes to a server. This service has all the information about all of the users, the computers, and any other device that is connected to the network. The Active Directory assists IT professionals with being able to manage all of this information, and allows them to be able to facilitate any sharing that is going on between any end user in the company. Another role is the Active Directory Federation Services. This lets users have a web sign in capability, that lets users authenticate to different web applications by just logging in with one single user account. Another role that this has is the application server. This is a major role because the server can be used to hose and manage all of the critical business applications that the company needs to use. One major component also is the DHCP server, which the Windows Server does play a huge role in. The DHCP server is what assigns an IP address to any machine that is connecting to the network. This is critical because if the machine can’t get an IP address, then they won’t be able to communicate with the network. Along with the DHCP server, another role is the capability of being the fax server. This is self-explanatory, the fax server allows the company to send and receive faxes, and also allows IT personnel to be able to manage these jobs, or any settings or reports that are needed to be shown. Another major role is file services. The server basically holds all of the companies information, or software shares, so that when there is the need for a new install, or an employee needs a new piece…

    • 1116 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Mis562 Week 2

    • 2131 Words
    • 9 Pages

    2. SQL> --2. List employees name, job, and salary that is a manager and has a salary > $1,000…

    • 2131 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hrm 531 Week 1

    • 645 Words
    • 3 Pages

    Team C: Amanda Smith, Erika Roe, Torrey Weaver, Tierra Wilder, Tresa Wolford, and Wayne Manley…

    • 645 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    POS355 Week 1 Individual

    • 574 Words
    • 2 Pages

    Memory is essential to the operation of any computer system. Memory is comprised of a large collection of bytes, each with its own address. What is memory management? It is the method for controlling and coordinating the computer’s memory, assigns blocks to numerous programs that are running in order to enhance the systems overall performance. Memory management is located in the hardware, in the operating system, within programs and applications.…

    • 574 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    MGT 521 Week 4

    • 2242 Words
    • 23 Pages

    The material presented below is not meant to be a comprehensive list of all you need to know in the content area. Rather it is a starting point for building your knowledge and skills. Additional study materials are recommended in each area below to help you master the material.…

    • 2242 Words
    • 23 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hrm 531 Week 1

    • 419 Words
    • 2 Pages

    Identify which of the focus organizations you would most like to work for. Explain your reasoning.…

    • 419 Words
    • 2 Pages
    Satisfactory Essays