This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Customizing window icons... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Customizing window icons..." Watch "Customizing window icons..." New topic
Author

Customizing window icons...

Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
In the top left corner of each frame/window is an icon. Is there a way to customize/change this? Also is there a way to customise the background color/image on a frame?

-Tad
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Both these questions are pretty basic "I am learning Swing" questions and have been asked a lot of times. Often you can save yourself some time simply by searching this forum.

Here is but 1 thread found from searching for "Frame Icon". There were 200 results.


GenRocket - A Test Data Generation Platform
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Something else that is helpful is glancing through the methods for a particular component in the API.

I don't say this to discourage you from asking questions. I only bring up these points so that you aren't sitting around waiting for people to answer your questions.
Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
I did a few searches and came up with nothing... maybe I was being to specific. I've found setFrameIcon for internal frames but couldn't find anything for JFrames or just windows.

-Tad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Customizing window icons...
 
Similar Threads
Displaying an image without the title bare.
Container
JDialog
why won't my pop up window close?
Is there a way to find out color of whatever's behind my frame?