I have a program and i need a button that will show the lyrics to a song and the other button to clear those words from the text area and right now the way the program is set up is that when i click either of the buttons it shows the lyrics. How can i fix this?
Hi Kinzur, sorry but don't understand why you are able to compile it. The if(ActionEvent == "Clear") statement should not work. Try actionEvent.getActionCommand() in the if statement. Additional you need an else part. Otherwise you will clear the text box and fill it with lyrics again. Regards Torsten
ok it works now but the output looks very funny on the applet. Like the text area over runs it or something and my buttons disappear once i click them.