Search:

Type: Posts; User: JamEngulfer221

Search: Search took 0.10 seconds.

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

    By the way, that code was in addition to the mainClass class code I posted earlier.
  2. Re: ActionListener not working when button is clicked.

    I'll post the updated code that is in one large lump so it's easy to see. I have stepped through the code and as far as I can see, it is in the right order.

    Edited guiMain code:


    import...
  3. Re: ActionListener not working when button is clicked.

    I got it so that it only runs once, but now the buttons don't appear for some reason. I've had a look and the code is in the same order as before, just in one method for simplicity.
  4. Re: ActionListener not working when button is clicked.

    Well, everything seems to actually be loading. Something I noticed that may be something was that mainGui was actually being called twice. Once by mainClass and once in populateWindow();
  5. Re: ActionListener not working when button is clicked.

    Hopefully only one
  6. Re: ActionListener not working when button is clicked.

    Oh, ok. Sorry, I thought you wanted the compiled file xD.

    mainClass.java:



    public class mainClass {

    static mainGui mgui = new mainGui();
  7. Re: ActionListener not working when button is clicked.

    Edited my post whilst you were replying. It should be there.
  8. Re: ActionListener not working when button is clicked.

    Oh, did you want the actual program + source code? And I'm sorry, that isn't the entire source code, just the parts of it that were relevant to the problem.

    I'm posting a link to a .zip file that...
  9. Re: ActionListener not working when button is clicked.

    It doesn't appear to be called, so that is probably the problem. I'm wondering what code I need to add in, as I have looked on a few tutorials and my code appears to be no different.
  10. ActionListener not working when button is clicked.

    What I have is a basic window with 2 buttons on it: Get Values and Start. When the 'get values' button is clicked, I want the getInput(); method to run, causing 2 pop up windows to appear, asking for...
Results 1 to 10 of 10