JRadio Menu buttons - JAVA

Posted by user337465 on Stack Overflow See other posts from Stack Overflow or by user337465
Published on 2010-05-24T19:17:13Z Indexed on 2010/05/24 19:21 UTC
Read the original article Hit count: 254

Filed under:
|
|

I have a relatively easy question. I have to create a java GUI to do math based calculations. I have to have a menu item that will double the variable that I am doing calculations with. For example

variable = 1
if radio button = selected{
variable = variable * 2
}

So, how would I achieve the if statement there? thankyou

© Stack Overflow or respective owner

Related posts about java

Related posts about homework