Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  2. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  3. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  4. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  5. Replies
    29
    Views
    2,304

    Re: Help with elections program

    Please explain in detail what you do to open the console.


    Please explain in detail what you do to "run the applet".
  6. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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.
  7. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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?
  8. Replies
    29
    Views
    2,304

    Re: Help with elections program

    I use appletviewer for testing and get this output:

    What is printed on the console when you execute the applet?
  9. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  10. Replies
    29
    Views
    2,304

    Re: Help with elections program

    Please post the current version of the code.
  11. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  12. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  13. Replies
    29
    Views
    2,304

    Re: Help with elections program

    Where did you put the println() statement? In what methods? Where did move and click the mouse?

    Yes you should use ActionListeners with buttons.
  14. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
  15. Replies
    29
    Views
    2,304

    Re: Help with elections program

    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...
Results 1 to 15 of 15