BlackGazer's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
7 (0.01 per day)
Joined:
09-July 11
Profile Views:
467
Last Active:
User is offline Jul 20 2011 07:04 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   BlackGazer has not set their status

Posts I've Made

  1. In Topic: Problem with Scientific Calculator

    Posted 9 Jul 2011

    It doesn't display the result in the text field. If I entered 9 and pressed the square root button the text field still has 9 in it.
  2. In Topic: Problem with Scientific Calculator

    Posted 9 Jul 2011

    We did arrays before gui but the sample that he showed us is like that for declaring buttons. I've seen codes for calculators and declaration for buttons is in array form. I would really want to do that but maybe after I submit this to him.
    By the way I finally solved the problem that I posted. But I got another problem I added a few lines of codes but it doesn't perform the sqrt function. I really need help for this, I'm not really good in programming but I'm trying to learn things little by little. Hope you can help me with this.
    Here's the line that I added:
    else if(e.getSource() == bSqrt)
    			{
    			result = Math.sqrt(Double.parseDouble(tf1.getText()));
    			tf1.setText(new Double(result).toString());
    			secondNum = false;
    			}
    
  3. In Topic: Problem with Scientific Calculator

    Posted 9 Jul 2011

    True it would really trim down lines of code, but I wanted to stick with what my professor taught me since I don't want to start a discussion of "not being the author of my code."

    But after I submit this calculator, I would change it into an array :)
  4. In Topic: Problem with Scientific Calculator

    Posted 9 Jul 2011

    It didn't work but I got an idea on how to do it. :)) Thank you, for welcoming me here!
  5. In Topic: Problem with Scientific Calculator

    Posted 9 Jul 2011

    There's an option in my code for multiple times of pressing equal sign and for pressing it once. But
    if I press a number button the text field should reset and place the value of the number button that I pressed. In my code the latter thing doesn't happens.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

BlackGazer has no profile comments yet. Why not say hello?