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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.