How to change the Control icon in window

hi to all
this is my first post to thiss forum and im using java swing for desktop application im facing a little problem is that how to change control icon on window created by java swing example is here
http://i108.photobucket.com/albums/n15/zerocool_007/window.jpg
how to change the red circuled icon any simple code tips will help mee
zero

myJFrame.setIconImage(img);
where img is an Image object.
The easiest way to create an Image is the following:
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image img = toolkit.getImage("myImage.jpg");
remember you need to import java.awt.Toolkit at the top of your class.
Good Luck,
Eugene

Similar Messages

  • How to change the application icon in 10g

    Dear all,
    how to change the application icon in forms 10g. i mean the icon which is located on the window it self.
    Best Regards,
    ShoooSh

    Hello,
    <p>Maybe you could find a solution in this article</p>
    Francois

  • How to change the web icon in the browser window

    i have created my site and cant find how to change the icon in the browser window (like they have done at the top of this page with the Adobe icon before the  Adobe Forums: text )would anyone be kind enough to give me some help??

    Do you mean the favicon?
    I only just recently learned about favicons myself - so if you google the word you'll get lots of resources for it. Bascially it's a little icon file that sits at the root directory of your site that the browsers find and display for you. As long as the file is there (*named favicon.ico*) it will show up automatically if I'm correct in what I've read.
    Is this the thing you're looking for? (edit: it also shows up in your bookmarks list in firefox - if this is the one you want that's the favicon file)

  • How to change the position of a window created in the script?

    Hello to all
    A window called from another window are the same size. How can change the position of the window relative to the caller call window?

    That is worked, but for abs.coord. How make releative coord.?
    When I include that in my script, window show without elements ! See attachments №2

  • [ dwm ] How to change the wallpaper and make windows transparent ?

    How do I change the wallpaper and make windows transparent ( ~ 20% ) ?
    Have been Googl'ing for a while now but still have no clue on how to achieve it

    zowki wrote:
    SemiBz wrote:Thank you! And how would I set terminals to be transparent by default ? xcompmgr can be started automatically but transset requires user input
    What terminal do you use? urxvt can set transparency in the Xdefaults file.
    revenant wrote:
    > What terminal do you use? urxvt can set transparency in the Xdefaults file.
    Or, if you don't like fiddling with Xdefaults file, you can simply make urxvt transparent by executing it like "urxvt -tr -sh 20", where the number represents the transparency level. However, this is only pseudo transparency, but I like it better than resource-consuming compositing.
    Will give it a try. I'm not against .Xdefaults - just haven't used it that much and know only the basics ( color schemes )

  • How to change the code page on windows 2008 r2 ?

    How do I configure a specific code page on windows 2008 r2 ?
    I understand that I can go into control panel and change regional settings but if  want to change the code page from one codege to say CP850 how do i do that ?.
    There is no option in the control panel to select  code page ?
    Thanks

    Hi,
    I have followed the below steps which did not cause any issue to my server. Have a full latest backup and then follow the below steps.
    Create a start up batch file that includes all the commands you want.
    Then edit the registry to point to your start up file.
    http://technet.microsoft.com/en-us/library/cc779439%28WS.10%29.aspx
    c:\startup.cmd
    @echo off
    chcp 437
    HKLM\SOFTWARE\Microsoft\Command Processor
    AUTORUN="C:\startup.cmd"
    Thanks,
    Umesh.S.K

  • Woundering how to change the "save as dialog / window" in Reader X ?

    Hi
    I am woundering if there is possible to change the "save as window" in Adobe Reader X. I want this to be the same as the "open window", where you get more browse options.
    Regards Frode - Netscenario.no

    You may use the forum for Adobe Reader.

  • How to change the order of maximized windows

    Whenever I minimize more than one window (it doesn't matter what program I am in) and then I go to maximize it on my screen, if i maximize more than 1 window, the order of the windows on my screen are messed up and for some reason, the last window I open (which should be the one I see) moves to the back and the first one I opened moves to the front. It is very frustrating.

    Hi Pravesh,
      When you open the Form (SE71), Enter the Language as 'DE' instead of 'EN'  then click on Change...it will allow you to change the layout. Then you change it & activate it.
    Reward points if it solves your problem.
    Regards,
    Shailesh Jadhav

  • I have the Answer on how to Change the House Icon name

    You go on to
    System Preferences > Acounts > Then unlock the security settings
    Right Click on your Account Name
    Click Advanced Options
    Then simply Change the Account Name there.
    Save it and you are done.
    An easy way to change the name of your Main Folder - the one that looks like a House!

    The problem with this, is some applications use the username to judge where they are installed.  For those, changing the account name may disable certain DRM for those applications.  This tip of yours would probably be best posted to the operating system you've tested it on forum, and not the iMac PPC forum, as that's just for one machine, and not every machine that has that operating system.

  • How to change the project icon in iMovie

    When creating a project in imovie 10.0.6 a picture appears as an icon in projects. How do I choose the picture I want as the icon?

    Hello,
    <p>Maybe you could find a solution in this article</p>
    Francois

  • How to change the default JAD Icon image in JStudio

    Dear friends,
    I have one dought,how to change the default icon JAD image in jstudio application.Its very important to me.And one find answer please tell .

    Dear friends,
    I developed one application in jstudio.And need to set an special icon for my application.While i download my application in to mobile. The icon should be displayed in the mobile.To show my application as unique from other applications.But i dont know how to set an icon for my application. If any one find answer please reply as soon as possible.
    Thank you

  • Is there a way to change the default icon for a sound file in KN2

    i have need to include dozens of sound files on each slide that will trigger as text builds. i can handle all the transitions fine but i cannot figure out how to change the standard icon for the sound file.
    i would prefer to have the text be the icon, if that is not possible to have a smaller icon for the file. as i build the page i am ending up with a huge mess, icons covering text, also there is not a intuitive way to tell which sound file is which with out click/playing each file.
    powerbook g4 Mac OS X (10.4.4)

    Did you try:
    OracleBI/web/app/res/s_.../popbin/
    EX:
    line.pcxml Look for <SeriesDefinition ...
    we modified the line width and a few other things. You'll have to modify all the pcxml files for all the chart types you want to customize.

  • How to change IDoc control record

    Hi all,
    How to change the control record of the ORDERS (purchase order) outbound IDoc? The partner type and partner number is always the logical system. I want to change it to other partner type, e.g. KU.
    Is there any user exits availalbe?
    Thanks!
    Regards,
    Hui

    Hi,
    <b>Option-1</b>
    User user-exit<b> EXIT_SAPLEINM_001</b> of <b>enhancement MM06E001</b> to change the control record.
    But make sure that whatever control record you put here, there should be a corresponding partner profile exist in partner profile ( WE20 ).
    <b>Option-2</b>
    You are saying that you are always getting 'LS'. This is  because the output type is only configured with partner function 'LS'. We are using Purchase order idoc and we generate our all idocs for partner type 'KU'.
    To do this, follow these steps.
    - go to transaction <b>NACT</b>
    - enter application 'EF' and select 'maintain'.
    - select the output type you are using in PO for EDI.
    - with this output type selected, select "partner functtions" from left hald side options.
    - Hit "new entries" button on the top
    - create an entry with, MEDIUN = 6 (EDI) ; Funct = VN ( vendor )
    - Save your settings and come out
    - Now on WE20, remove the partner profile you have created under partner type 'LS' and instead create a same partner profile for your vendor under partner type "KU".
    Now it is upto you to decide, either to user the user-exit i have mentioned to change the control records OR create a outout config and partner profile for "KU".
    Let me know if you have any question.
    Regards,
    RS

  • Using Custom Icons - Changing the Finder Icon

    So I know you can just do a simple copy and paste under "get info" in order to change icons for applications and folders, but how do you do this for Finder? I know this is possible, if not for the simplest reason that one of the downloads that Apple has featured on this site for icons has a Finder icon (bad logic I know, but it seems odd that Finder would be the only icon you couldn't change). The problem is, how do you "Get Info" on Finder? Where would you find finder (no pun intended)?
    Thanks in Advance

    Thanks for the help in finding the icon, the only problem is that it won't let me alter it. I even changed permissions on the bottom of the "get info" screen to allow the current user (also the administrator) to both read and write, but it wouldn't let me paste a different styled icon over it. Any suggestions on how to change the Finder icon to a custom one? And ya we were thinking about how we would change it back too, but realized its not really that big of an issue because all our friends and even we have multiple macs, so we could always just copy it back that way.

  • How do I change the taskbar icon to use the new icon?

    I created an icon (Visual Studio 2013) that I placed on the Windows 7 taskbar a month ago. 
    I have changed the icon.  The new icon displays correctly when I place a shortcut on my desktop. 
    When I unpin the old icon, and drag the new icon to the taskbar, it displays the old icon. 
    When I run the program from the taskbar, the program displays the new icon.  However, the old icon remains on the taskbar.
    How do I change the taskbar icon to use the new icon?
    bhs67

    It's because they're cached.
    The cache will usually be refreshed only when you reboot.
    You can, however, force a refresh.
    Choose run, type or paste in:
    ie4uinit.exe -ClearIconCache
    More info:
    http://superuser.com/questions/499078/refresh-icon-cache-without-rebooting
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

Maybe you are looking for

  • I have a site here in china that keeps taking over my opened web pages. i have blocked the cookies, the web page, images and it still keeps poping up. how do i get rid of it?

    I am an English Teacher here in China and I depend on my computer a lot. The site is 61.132.255.222 and I done everything I can to block it from taking over web sites. what can I do to get rid of it. it is a php application. here it is. PHP Logo PHP

  • Unable to install windows 8

               1.dvd drive is not responding                         i tried:                                   1.reset the SMC                                   2.cleaned the drive with a cd cleaning kit                                   3.burnt a dvd(s

  • VBA Code for Excel Add-in Menu Items

    Howdy. Every month my team needs to execute the same process on a couple hundred documents. It's time consuming and inefficient to say the least, so I'm looking for a means by which to call a couple of the menu items on the Excel BPC Add-Ins menu via

  • Invoice Split due to different incoterms 2

    Hello SD experts.. Kindly advise on the following situation. we are making supplemetary invoice with  ref of invoice which could be more than one sometimes. Further more in first invoice we have put incoterm 2 as a BY ROAD. In 2nd inovice we have put

  • Mail crashing on startup - sync services problem?

    A few days ago I updated my system to the most recent security update (2007-007). Since then, Mail has been crashing every time the program is opened, when it checks for new mail. I've gone back to Entourage to check my mail, and I'm getting an error