I'm Building a Swing Application and 开发者_Go百科I need to know how to set an Icon for my JFrames through Netbeans 7.0 if it is possible. Thank you for your cooperation. Best Regards.
This might help you: YouTube: Change the Icon in Java Frame. It's from 2009, so it's not the latest, but it is still likely applicable.
Note that JFrame has a method, setIconImage
that will do this for you and is easy to use.
精彩评论