Why is Javascript called Javascript, if it has nothing to do with Java?

Use a button in Javascript to change text?

  • I have made a javascript GUI in the program netbeans. It has a title, "Hello World" and a button. What I want to happen is, when you press the button, the text in the title changes to "Welcome to the wonderful world of programming" (This is for a school project) This is the code I am currently using for the button private void buttonActionPerformed(java.awt.event.Act... evt) { hello.setText("welcome to the wonderful world of programming"); } But when I run the program and press the button, nothing at all happens. FYI the heading variable is hello, and the program has matched them and is says everything in the code makes sense. Am I using the wrong command? If so, what do I use?

  • Answer:

    Make sure your button variables are correctly set.

James at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Make sure your button variables are correctly set.

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.