Thursday, December 9, 2010
Calculator Part I
Nicole and I are creating a calculator in this lovely class. We are using the prgrams java and eclipse to complete said project. The calculator is made using coding and crazy words that mean specia things, such as JFrame, JPanel, JButton, and JTextField. These create what you see when you open the calculator. We created Jbuttons for the numbers 1-9 and plus, minus, divide, exponent, squareroot, clear, multiply, decimal, backspace, positive/negative, and equals. We also had to label what would be seen on each of the buttons, so we entered for multiply in quotations "x". The quotations told the program to look at the x as a string of text and to treat as nothing more than that. The function of the button was covered in a different way (see Part II). We also changed the color of the button and are in the process of figuring out how to change the font.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment