Results 1 to 4 of 4

Thread: Calculator

  1. #1
    Join Date
    Feb 2007
    Posts
    4,170
    Rep Power
    0

    Default Calculator

    Any one have done a GUI java program of this (as stated in title)?

    Been searching through google, but none seems to be working.

    Just need a basic calculator that looks close to the link below

    http://upload.wikimedia.org/wikipedi...lator_Icon.png

    [If u can PM a working one, I'd appreciate that]
    Sony Vaio Laptop
    Windows 8 Pro 64-Bit
    320Gb Hard Drive, 4Gb RAM, BluRay DVD Drive

  2. #2
    Join Date
    Nov 2002
    Posts
    5,713
    Rep Power
    0

    Default

    I did one about a year ago, not sure if I can find it. What exactly do you need help with?
    .:] ^ [:.
    .:] Game IDs: xfire_ropy | BC:BC2_ropy | BC: 2142_ropy29 | BF3_ | steam_ropy09 | LoL_ropy09 | Origin_ropy29 [:.

  3. #3
    Join Date
    Feb 2007
    Posts
    4,170
    Rep Power
    0

    Default

    Basically how to design the calculator...It should resemble the one on computer or near to. Been trying to research on what are the necessary stuff I'd have to type. In my mind I know I have to create a box, using Jpanel and some other object (or am I confusing myself...is it object, data type or variable?)
    Sony Vaio Laptop
    Windows 8 Pro 64-Bit
    320Gb Hard Drive, 4Gb RAM, BluRay DVD Drive

  4. #4
    Join Date
    Nov 2002
    Posts
    5,713
    Rep Power
    0

    Default

    Here's what I'd do:
    • Add JButtons and a JTextField to a JPanel. The JTextField should be locked.
    • Declare the necessary variables, especially 1 for MS button which will store the current content of the JTextField. The MR button should recall what u stored using MS to the JTextField.
    • The numerical and computational buttons should add their respective character to a temporary variable and the JTextArea.


    Take a few minutes and do a psuedocode for this app and you'll see how easy it is to create.
    .:] ^ [:.
    .:] Game IDs: xfire_ropy | BC:BC2_ropy | BC: 2142_ropy29 | BF3_ | steam_ropy09 | LoL_ropy09 | Origin_ropy29 [:.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •