Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: STANDARD CALCULATOR

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post STANDARD CALCULATOR

    Hi I'm new to this lesson about GUI, I would like to ask for your help if you can... I don't know how to put the MC, MR, MS and M+ in my calculator, so that it would look like the standard calculator...
    standard-calculator.jpg
    my codes are here calculator.txt and almost all are done, the only thing lacking are these MC, MR, MS and M+... please help Thank you...
    And my output calculator looks like this:


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: STANDARD CALCULATOR

    How are you adding components to the GUI? What layout manager?
    I assume you want to add a column of buttons on the left of the "keyboard".

    What is your problem adding the column of components in the layout?

  3. The Following User Says Thank You to Norm For This Useful Post:

    asdfg (August 27th, 2010)

  4. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: STANDARD CALCULATOR

    @Norm
    yes your right!!..i want to add the MC,MR, MS and M+ with their functions in like the standard calculator

    i hope you could help me wit\h this...
    thanks for replying anyways...

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: STANDARD CALCULATOR

    The image you posted shows you have mastered the usage of a layout manager and now should be able to add another column of buttons to your GUI.
    Can you explain what your problem is?

  6. #5
    Junior Member
    Join Date
    Apr 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: STANDARD CALCULATOR

    the problem here is, i don't know the functions of these buttons MR, MS, MC, M+

  7. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: STANDARD CALCULATOR

    i don't know the functions of these buttons
    What do the letters stand for?
    I think the M stands for Memory.
    What about the R, S, C and +?

Similar Threads

  1. How to capture standard output from another program ?
    By ni4ni in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: March 3rd, 2010, 11:00 AM
  2. Calculator help.
    By Skinnyskinny in forum Java Theory & Questions
    Replies: 6
    Last Post: August 1st, 2009, 12:34 PM
  3. Help codiing calculator
    By FM010 in forum Exceptions
    Replies: 7
    Last Post: June 12th, 2009, 02:25 PM
  4. Calculator application using java
    By fabolous04 in forum Paid Java Projects
    Replies: 4
    Last Post: March 25th, 2009, 11:29 AM
  5. Problem of implementing mathematic logic in Java applet
    By AnithaBabu1 in forum Java Applets
    Replies: 0
    Last Post: August 15th, 2008, 11:42 PM