Hi, im trying to create an interface, which has a button and 2 radio
buttons, which affect text which is outputted to a text area when the button
is pressed. The button works on its own, but I can not get it to work when
one of the radio buttons is selected. I can also get the radio buttons
working separetly, but I need the effect of the radiobutton to take place
only when the button is pressed.
Here is the code I am using for the event handling:
Object source = evt.getSource() ;
if(source == button)
{
if(source == rButton1)
{
//manipulate and display text
}
}
Also, does anyone know of any good java reference websites other than
java.sun.com?
Thanks,
Jon.
buttons, which affect text which is outputted to a text area when the button
is pressed. The button works on its own, but I can not get it to work when
one of the radio buttons is selected. I can also get the radio buttons
working separetly, but I need the effect of the radiobutton to take place
only when the button is pressed.
Here is the code I am using for the event handling:
Object source = evt.getSource() ;
if(source == button)
{
if(source == rButton1)
{
//manipulate and display text
}
}
Also, does anyone know of any good java reference websites other than
java.sun.com?
Thanks,
Jon.
Comment