OK, let's say I have this Image:
ImageIcon imageBack = new ImageIcon(System.getenv("APPDATA") + "\.my_game\bg.png");
and I have a JPanel that I can toggle on and off. How do I get that JPanel to use the custom ImageIcon?
Depending on your requirement you can use one of the solutions from Background Panel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With