954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Square root function in calculator

I am trying to make a simple GUI based calculator for my homework.
my +,-,*, and sqr functions work fine. i have to implement sqrt function for one of my JButton.

am trying but have no clue what to put in event handler here

else if(event.getSource() == sqrt) {
.......
}

can someone enlighten me please.

nemo

nemo
Newbie Poster
24 posts since Feb 2006
Reputation Points: 10
Solved Threads: 0
 
peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You