Search:

Type: Posts; User: JamEngulfer221

Page 1 of 2 1 2

Search: Search took 0.24 seconds.

  1. Replies
    3
    Views
    592

    Re: Insert != null check issues

    No... No... There's no way I could have done that... Wow. I can't believe the absolute stupidity of what I did. I just can't believe it. Well, great. Thanks for the help though!
  2. Replies
    3
    Views
    592

    Insert != null check issues

    I am making something that turns a string into an Integer if it is an Integer, or keeps it as a String if it is a String. I have that bit working fine, it is just when I try and check to see what the...
  3. Replies
    2
    Views
    697

    Re: Main-Class manifest attribute

    Ok. I was using Eclipse to do this and it turns out I didn't actually select runnable Jar file, just ordinary jar file. That was why it wasn't working. Thanks for the help though!
  4. Replies
    2
    Views
    697

    Main-Class manifest attribute

    So, I was trying to run a Jar I compiled and this "Failed to load Main-Class manifest attribute from
    text.jar" Came up. I looked up the issue and tried to fix the Manifest, however whatever I try...
  5. Re: ActionListener not working when button is clicked.

    By the way, that code was in addition to the mainClass class code I posted earlier.
  6. 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...
  7. 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.
  8. 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();
  9. Re: ActionListener not working when button is clicked.

    Hopefully only one
  10. 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();
  11. Re: ActionListener not working when button is clicked.

    Edited my post whilst you were replying. It should be there.
  12. 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...
  13. 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.
  14. 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...
  15. Replies
    0
    Views
    823

    2D Fluid water simulation

    How tricky would it be to have, in Java, a 2D 'blob' of water that warped any images/background behind it and was resizable/grew and shrunk.

    This seems quite complicated to do to me, I was...
  16. Re: Something weird with Graphics and drawString...

    I read the article, and I am still confused. I had a look around the code, changed some of mine and still nothing. I simply can't figure out how I get it to work. Is there something hugely obvious I...
  17. Replies
    6
    Views
    777

    Re: String won't display in my window

    I added a println, and it wasn't being called.

    How would you suggest I call it, I am new to stuff like this :)
  18. Replies
    6
    Views
    777

    Re: String won't display in my window

    Oh, ok. Sorry. Posting code now.
  19. Replies
    6
    Views
    777

    Re: String won't display in my window

    any help would be appreciated
  20. Replies
    6
    Views
    777

    String won't display in my window

    I don't know what is causing this, but what happens, is that my window appears, but my drawString(); doesn't appear and show the text. No errors or anything.


    import java.awt.Graphics;
    import...
  21. Re: Something weird with Graphics and drawString...

    So, in that case, what do I actually do to get my paint() to work then?
  22. Re: Something weird with Graphics and drawString...

    So, in that case, what do I actually do to get my paint() to run/work?
  23. Re: Something weird with Graphics and drawString...

    I changed it so that it uses paint(Graphics g){
    }
  24. Re: Something weird with Graphics and drawString...

    No, It still throws up the NullPointerException. And I don't know what to do to solve it.
  25. Re: Something weird with Graphics and drawString...

    Ah, yes. That was on purpose, it was the only thing I could do that didn't make Eclipse throw out an error. (in the form of a red line)
Results 1 to 25 of 37
Page 1 of 2 1 2