STILL Can't make buttons WORK!!

wxdqz

New Member
Yeah, I can find this kind of info. I can find classes, and how to make instantiate,and all that...but just now how to make it DO SOMETHING.b.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){//button code here}});Where this code says button code here...that's what I need.I know, it depends on what you want it to do.....I just want it to do ANYTHING.If I can get the button to do anything, I can figure out how to make itdo more complex things eventually...but all I can find are complex actions.I just want, "If button is pushed change the text."OR"If button is pushed replace the button."I appreciate all of the help!!!
 
Back
Top