I believe I have finally fixed it. Thank you so much for your help.
Type: Posts; User: Wakko45
I believe I have finally fixed it. Thank you so much for your help.
I'm sorry, I'm kind of new to this but I'm not sure I quite understand what you mean by a component and how would I know if it's visible?
I just updated the original post with my current code.
I understand that the createImage() args are a specified width and height. I'm thinking now that getWidth(), getHeight() get the height...
It says:
So i'm guessing the component is not displayable but I'm not exactly sure how to fix that. Any suggestions to point me in the right direction?
I went through with the debugger and it is null. But I thought
dbImage = createImage(getWidth(), getHeight());
would give it a valid value, no? Which means for some reason that line isn't giving...
I forgot to mention that only one duck will ever be alive at one point.
So should I put a repaint() at the bottom of the move method in the Duck class, and how would I make one thread for all ducks....
So I have been watching some videos and reading some articles recently on Double Buffering and Threads and I tried to incorporate them into my program. My program is to make Duck Hunt. I have most...