The compiler will tell you if there are syntax errors in the program.
What is the contents of the command prompt window for when the program is executed?
Can you copy the full contents of the...
Type: Posts; User: Norm
The compiler will tell you if there are syntax errors in the program.
What is the contents of the command prompt window for when the program is executed?
Can you copy the full contents of the...
The contents of the command prompt does not show the exit from the appletviewer.
Is that the name of the html file you are using: TheHtmlThatExecutesTheApplet.html
You need to use the name of...
Please copy the full contents of the command prompt window and paste it here.
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select...
To keep the console open, get out of BLuej.
open a command prompt console, issues commands to change to the folder with the html file that executes the applet and enter:
appletviewer...
Please explain in detail what you do to open the console.
Please explain in detail what you do to "run the applet".
How do you execute the program you use to execute the applet?
Why does the "screen of the console, it opens and closes instantly"?
Please explain what you do step by step.
You need to change the way you are testing so that the console screen remains open so you can see the debug output.
How are you executing the program?
I use appletviewer for testing and get this output:
What is printed on the console when you execute the applet?
Your println in the listener will only be called if the if statement is true. You are assuming you have coded the if correctly.
Add a println statement first thing in the listener method without...
Please post the current version of the code.
I added println statements to all the mouse listener methods.
When I executed the program and moved the mouse over the window, the above messages were printed out.
Do you see any of the messages...
There should be something printed out when the mouse was clicked.
What about all the other mouse listener methods? Did you add printlns there?
Where did you look to see what was printed?
Here...
Where did you put the println() statement? In what methods? Where did move and click the mouse?
Yes you should use ActionListeners with buttons.
Is the listener called when you click on the button? Add a call to println() in the listener method to print out a message when the listener is called. Then if the message is printed you'll know...
Please explain what happens when you execute the program.
What do you do and what does the program do in response?
What do you want the program to do differently?
Please copy and paste here...