r/javahelp • u/tuckoguy • Dec 30 '14
Need some help with various aspects
I am adding sound into my program, and since I'm new to this, I watched a sound tutorial, (Heres my code http://pastebin.com/b3VJiaqf) but it still does not work... Also, currently using g.fillRect() to add a solid colored background. How can I change this to use an image instead? Next, I need to know how to change the Jframe icon (Also the program icon) from the default Java icon. Finally is this: I would like to add (As a beta test joke) an error window that will randomly pop up and crash the game every X times the game is opened. The window would pop up, and the program would stop responding. Thanks
0
Upvotes