Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: ActionListener not working when button is clicked.

    I see that the code will create 2 instances of the mainGui class. Why not just create and use one instance?
  2. Re: ActionListener not working when button is clicked.

    Why do you create a new MainGui object in the MainGui class's constructor?

    The code you posted will not execute. It does not have a main() method.
  3. Re: ActionListener not working when button is clicked.

    Have you stepped through the code to see what it is doing and in what order?
    The code has several small methods that do a little bit here and a little bit there making it hard to see what the code...
  4. Re: ActionListener not working when button is clicked.

    It should only be called once.
  5. Re: ActionListener not working when button is clicked.

    Time to play computer with your program. You need to manually step through the code and see when each statement is executed and what the code is doing.

    As an aid you can use the println statement...
  6. Re: ActionListener not working when button is clicked.

    How many instances of the mainGui class do you create?
  7. Re: ActionListener not working when button is clicked.

    Please post the code in the forum. Not a link
  8. Re: ActionListener not working when button is clicked.

    To do a test, I need a small program that compiles, executes and shows the problem.
    Not the whole program, a special small testing program that shows the problem.
  9. Re: ActionListener not working when button is clicked.

    Can you post a small simple program that compiles, executes and shows the problem?
    What you posted won't compile or execute.
  10. Re: ActionListener not working when button is clicked.

    Is the action listener method being called when you click on the button? To see, add a println statement to print a message that shows if it is being called.
Results 1 to 10 of 10