How to change the icon of the Frame(JFrame)

my doubt is,
how to change the by default icon(sun coffee cup) icon of a frame to a small user defined icon.
thank you,
Ranjith.M

Take a look at this method:
http://java.sun.com/j2se/1.4/docs/api/java/awt/Frame.html#setIconImage(java.awt.Image)

Similar Messages

  • How do I change the order of the icons on the top right hand corner?

    Hi,
    I was wondering how to change the order for the icons at the top of the screen. I selected the option of not showing the battery status bar in the energy saver section. However, when I decided to add it back to the top, the order changed. This may sound strange but is there any way to get it back in the correct order.
    Thanks

    1) Hold down the command key and drag them around.
    2) Open System Preferences/Accounts Login Items and change the order they load.

  • How to change the icon of the jar file w/o changing the windows setting

    I may be in wrong forum/area but I am not sure.
    I have created a windows executable jar file. Functionally it works fine. I can double click it to start my app. I want to change the icon of the jar file. I know I can change the icon for .jar extension in windows, but I want to be able to give a seperate icon for just this one file.
    All windows applications have thier own icon like Word, Excel etc. Is there any way I can do this for java apps? Also could this icon be kept consistent across platform say if I copy my app to linux? (Assuming it is not made for any particular os.)
    I am sure someone has come across this before.
    Thanks in advance.

    AFAIK you cannot specify an icon for a jar file. You can, however, specify an icon for a Frame using the setIconImage() method. This will have the effect of showing the icon in the taskbar for instance.

  • How to change the icon of the news in Portal?

    Do you know how to change the icon of the news in Portal?
    I use NewBrowser to Browser the news, but I think the Icon of the News is not good,I want change it ? what should I do?
    Thanks for your help!

    Hi,
    if you are talking about the NewsBrowser of Knowledge Management (Content Management -> Explorer -> News), you should see a button "Edit" on the right side of the news.
    Press this button and fill in a new URL in the input field "Image URL". After saving the new settings, the new image should be displayed.
    Kind regards,
    Ralf

  • How can i change the icon in the top left of a jdialog

    how can i change the icon in the top left of a jdialog.
    thnkx in advance

    You cannot directly. If you have a jFrame (e.g.) with your own icon you can use one of the JDialog costructors using (Component owner, ... ). Then the dialog will display the same icon.

  • I synced my Ipod to itunes now i can only double click the icons on the screen it seems that the swiping feature has been disabled, how do I get it back to normal? I've restored it but nothing has changed

    I synced my Ipod to itunes now I can only double tap the icons on the screen, it seems that the swipeing feature has somehow been disabled, Is there a way i could fix it or get it back to normal?

    Hi there,
    It sounds like you may have an accessibility feature called VoiceOver enabled. Take a look at the article below for more information on how to use VoiceOver as well as how to disable it.
    iPod nano (6th generation and later): How to use VoiceOver
    http://support.apple.com/kb/ht4317
    -Griff W.

  • How to modify the icon of the main frame in JavaHelp?

    I can modify the title of the main frame, but can I modify the icon of the main frame? Thanks a million.

    hi,
    look at the Frame's method setIconImage(Image anImage);
    ;)

  • How can I change the icon for the bookmarks menu button

    Using linux, the default icon for the bookmarks menu button is quite ugly. Is there a way to change the icon for the button with some code in userChrome.css ?

    After several intents, I found a solution.
    This is my userChrome.css file:
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    toolbarbutton[class="toolbarbutton-1"]#bookmarks-menu-button image[class="toolbarbutton-icon"] {
    list-style-image: url("bookmark_gray.png") !important;
    -moz-image-region: rect(0px, 0px, 0px, 24px) !important;}
    Probably it's messy but works.

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • Currently, I cannot copy and paste using the icons in the toolbar. How do I enable this?

    I am trying to make edits to a website for our company. Currently, I cannot copy and paste using the icons in the toolbar. Instead, I have to use control+c and control+v which doesn't always work. How do I enable the feature to be able to use the icons?

    Are those toolbar buttons grayed?
    Do the entries in the Edit menu look enabled if there is text selected or text on the clipboard?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Using OS 10-6-8. For no apparent reason, mail refused to open and the icon in the dock changed and the application has disappeared except in iWork. Under Iwork, the message says: "yoou tried to open Mail version 4.5 (1084/1085) in: /Applications/iWork '06

    Using OS 10-6-8. For no apparent reason, mail refused to open, the icon in the dock changed appearance and the application has disappeared except in iWork. Under Iwork, the message says: "you tried to open Mail version 4.5 (1084/1085) in: /Applications/iWork '06. Using OS 10-6-8. It can't be used on thius version of Mac OS X. Try opening the version of Mail located in the Applications folder..."  How do I get back to mail and retrieve my existing messages?

    You should consider downloading the 10.6.8 combo updater and applying it again.
    http://support.apple.com/kb/DL1399
    Pondini has a great page about upgrading.
    http://pondini.org/OSX/Combo.html

  • Change the icon and the word "open" at the left upper corner of file dialog

    i wanna to change the icon and the word "open" at the left upper corner of a Jfilechooser...
    can any expert tell me how to do so?
    thx and thx...

    yeah u can change the JFileChooser's title by calling the setDialogTitle(String) method. i'm not sure of the icon change, i think it can't be done.

  • Iphoto won't recognize my memory card anymore (since a month ish?) but the mac itself does and puts the icon on the desktop.  How do I get it to recognize it again?

    Iphoto won't recognize my memory card anymore (since a month ish?) but the mac itself does and puts the icon on the desktop.  How do I get it to recognize it again?

    Thank you so much for responding.  I will look for the other disks.
    One more question - I initially decided to do this because my Mac kept opening with the date changed to 2008, and I keep having to re - enter my Web key.  In addition, it was running much slower.  Since I 'cleaned' everything out, I thought all would work perfect.  This morning, the date changed to 2008; again AND it again asks for my Web key.  Does this mean my Mac has reached it's almost end or could I have a 'bug' on it?
    Again, thanks so much for your suggestions.

  • May sound silly, the icons at the bottom of the page can they be made bigger or smaller and how

    how do you change the icons at the bottom of the dock, make them bigger or smaller

    If you mean the items on the Dock, just click and drag up/down on the vertical dashed line that separates program icons from those for Documents, Applications, Downloads, and Trash.

  • Changing the icon in the title bar

    How can I go about changing the Icon in the title bar that goes next to the title?

    setIconImage(Image image) for JFrame.
    setFrameIcon(Icon icon) for JInternalFrame.
    Take a look at the API.

  • I was changing the appearance of the icons in the dock....

    I was changing the appearance of the icons in the dock.  And I decided to try doing the same thing to the icon in the sidebar in Finder.  I ended up making one icon into a grey square.  How do I restore the original sidebar icon?

    I found an easy solution (it doesn't require the operating system to be reinstalled). And here's what my finder sidebar looks like now:
    Just follow the simple instructions here: http://www.youtube.com/watch?v=bjiVTcCvMTI&feature=youtu.be

Maybe you are looking for