Search:

Type: Posts; User: Sizzlewump

Search: Search took 0.09 seconds.

  1. Thread: Hi Everyone

    by Sizzlewump
    Replies
    2
    Views
    722

    Re: Hi Everyone

    https://www.romexsoft.com/blog/java-8-vs-java-9/

    Here are some recent changes to start with. Welcome back!
  2. Re: What Are My First Steps to a First Job with Java Programming?

    Perhaps you could research local help desk positions to get your feet wet? I have a similar background and I did a short internship in college for a help desk. It's not Java, but it will get you...
  3. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Ok, got it!



    /*Created by John Thrush 06/25/18
    WizMapMaker is a video game supplement
    that works as a drawing tool. The application creates
    an array of buttons which the user can...
  4. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Hi Norm, thanks again for all of your help! It took me some time to process your suggestions but I have been able to get the code down to 203 lines with your help. I'm very happy with the results!
    ...
  5. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Yes, that's where I would like to go with it. I wanted to get you the working version and go from there. When I was testing, I just commented out lines 119-622.
  6. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Yes, ok that's a good possibility. Here is the entire working code. I commented out the possible solution we were collaborating on for now. Thanks again for looking at this. Good help is hard to...
  7. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    No, the for loop never executes. I put any print statement in the loop and nothing outputs.

    What is the concept I'm missing - inheritance? Do you see the problem anywhere? I'm sorry, I'm a little...
  8. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    It looks like all of the oButtonNames[] elements have null values at 104. I put a few System.out.println(oButtonNames[1]); statements outside of the loop, replacing the 1 with other array indexes....
  9. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Thanks, I had to reorganize my resource files. The .java file was in a different folder than the .pngs by mistake. I reran and got a similar error:



    Exception in thread "main"...
  10. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Yes, the way the previewLabel works in the long code (an actionListener coded separately for each of the oButtons) is it's like a little thumbnail preview of the last .png button which was clicked...
  11. Re: Trying to loop actionListeners together for 56 JButton objects to reduce code size

    WizMapMakerEdit.java:110: error: local variables referenced from an inner class must be final or effectively final
    previewLabel.setIcon(new...
  12. Trying to loop actionListeners together for 56 JButton objects to reduce code size

    Hi, can someone help me understand what I need to do to reduce my code size so I won't need 56 separate methods to add all of my actionListeners for a JButton array? I'll just include smaller chunks...
  13. Replies
    4
    Views
    1,107

    Re: How to get better at java?

    Get yourself familiar with the Java terminology and build from there. Start by googling key words you know of and add 'Java' to the search. Just like any language, you need to expand your vocabulary...
  14. Thread: New hello

    by Sizzlewump
    Replies
    0
    Views
    803

    New hello

    Hi All,

    I'm just seeing these forums for the first time. I write my own Java apps as a hobby, but I'm looking for best practices and ways to enhance my code. I just started working in IT 2 years...
Results 1 to 14 of 14