How to change the top left corner icon of a Frame?

I have created jpg and would like to replace the default java top left corner icon of a JFrame and JInternalFrame, how to change it??
thx very much

ImageIcon customImageIcon = new ImageIcon("your-jpg-file.jpg");
Image customImage = customImageIcon.getImage();
yourFrame.setIconImage(customImage);
yourInterfanFrame.setFrameIcon(customImageIcon);That's it

Similar Messages

  • How to populate the top left corner of a pivot table

    Can anybody tell me in a pivot table of ADF DVT, whether it is possible to fill any content into the top left corner of the title row, which is the leftmost cell to the left of the column edge?
    I did not see any demo samples which can populate any content into this cell, but leave it blank instead.
    Thank you.
    XF

    Can anybody tell me in a pivot table of ADF DVT, whether it is possible to fill any content into the top left corner of the title row, which is the leftmost cell to the left of the column edge?
    I did not see any demo samples which can populate any content into this cell, but leave it blank instead.
    Thank you.
    XF

  • How to set different icons for different windows which is seen in the top left corner?

    Hi
    How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
    Is there any way to set icon by calling any dlls.
    Thanks & Regards
    Samuel J
    [email protected]

    Hi Sam,
    no problem. See the attachment.
    Mike
    Attachments:
    TestIcon_LV85.zip ‏44 KB

  • You know how when your ipod touch 4th gen is turned on and on the top left corner it says ipod can you change that

    You know how when your ipod touch 4th gen is turned on and on the top left corner it says ipod can you change that'

    No.

  • How can i get ipod nano to get the lock icon off the top left corner?

    Hey, my moms ipod nano won`t sync to her computer. Now it has a lock icon in the top left corner and i can`t get it to go away. Can anyone help me?

    I assume you have made sure the hold switch along the top of the Nano is set to Off?
    If none of the 5 R's are able to resolve the issue, it's likely a hardware issue, meaning you'll need to have the iPod serviced/replaced either by Apple or a third party service.
    http://www.apple.com/support/ipod/five_rs/nano2gen/
    B-rock

  • I've lost the orange firefox tab with the arrow, that was in the top left corner: how do I get it back?

    I've lost the orange firefox tab with the arrow, that was in the top left corner: how do I get it back?

    In current Firefox releases (29 and later), that have have the Australis user interface, the orange Firefox menu button has been replaced by the three-bar Firefox Menu button at the far right end of the Navigation Toolbar and this button is always visible, whether you have the menu bar visible or hidden<br>A consequence of this location is that you no longer can hide the Navigation Toolbar
    *There is a star like button to the right end of the search bar on the Navigation Toolbar to bookmark the current web page and a "Show your bookmarks" button next to it to open the Bookmarks in a drop down menu.<br>You can find "Show All Bookmarks" to open the Bookmarks Manager (Library) at the bottom of this drop-down list
    *It is still possible to have the menu bar visible via the right-click context menu on the toolbars to have menus like the Bookmarks menu
    *<br>*If you bookmark a page then "Bookmark This Page" in the Bookmarks menu changes to "Edit This Bookmark"
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    I'm locking this thread. If you still have questions then please create a new thread.

  • I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I

    I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I remove this link ?

    Hi,
    Thanks for your help. I will try that approach.
    Regards
    Colin
    Date: Tue, 22 Oct 2013 09:28:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        Re: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        created by dj_paige in Photoshop Elements - View the full discussion
    It's not a link, its an icon that indicates the photo cannot be found in the location where PSE expects it. This happens because you either renamed, moved or deleted the photos outside of PSE. To fix the problem, use File->Reconnect (you will have to find the actual file in one of your folders), and in the future, no more moving, renaming or deleting photos outside of PSE; if you MUST rename or move photos, do so from within PSE.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5779318#5779318
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5779318#5779318
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5779318#5779318. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Change the java cup picture in the top left corner

    Does any one knows how to change the java cup picture in the top left corner of the frames and applets
    Thanks in advance

    Hi,
    I have the following code added and get this error:
    non-static method setIconImage(java.awt.Image) cannot be referenced from a static context
    private static void SetUpGUIApplication(){
            //This must be invoked before
            //creating the JFrame.  Native look and feels will be set here
            // Comment this out to see the differences
           FrmMain.setDefaultLookAndFeelDecorated(true);
            ImageIcon appIcon = new ImageIcon(getClass().getResource("resources/FLGCAN.ICO"));
            if (appIcon != null)
                    setIconImage(appIcon.getImage());
        }What does this mean when adding static verses non static?
    Thanks

  • I can't edit my donwloads.  The organizer photos have an orange icon at the top left corner and the find offline volumem - edit pops up when I try to edit the pictures.  Also, the downloaded pictures don't show up in "My Pictures" document.

    I can't edit my donwloads.  The organizer photos have an orange icon at the top left corner and the find offline volumem - edit pops up when I try to edit the pictures.  Also, the downloaded pictures don't show up in "My Pictures" document.  How can I fix this problem

    Did you recently reconfigure the drives attached to your computer or move to another computer?
    To help with troubleshooting this, download and run the utility psedbtool:
    http://www.johnrellis.com/psedbtool/#_Downloading,_Installing,_and
    Copy and paste the output here (using the Web, not email).

  • HT4095 What happens if the genre box goes missing on the top left corner on your iPad? How do I get it back?

    What happens if the genre box goes missing on the top left corner on your iPad?How do I get it back please help me.

    Try quitting iTunes and restart your iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You can also try a reset if quitting the app doesn't work.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • HT4993 my iphone4 says searching in the top left corner how do i get it to stop and get my service back?

    my iphone4 says searching in the top left corner and i can not make calls or get calls how do i fix it so i have my service back

    you can try a reset, hold down the home/sleep button until you see the apple logo and then release, then wait fro the phone to boot back up.
    if that doesn't work contact your cell provider

  • How do I get the orange firefox button to show up on the top left corner of my page?

    So, I've installed, and reinstalled the new Firefox 4. It seems like only half the features have shown up. For example, I don't have the orange firefox button in the top left corner. I also don't have the button for bookmarks. On every other machine that I've installed firefox 4 on has not had issues like this. I don't know why I'm having issues on my laptop. If there's a way to fix it, I would appreciate it. I don't mind how it is right now, but I do like the cleaner look and the orange firefox button, instead of the buttons that show up now that are labeled: "File, Edit, View, History, Bookmarks, etc."

    * You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).
    * If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.

  • How do I get my Sony ebook Reader to show up ("be recognized") in the top left corner??

    How do I get my Sony ebook reader to show up ("be recognized") in the top left corner of the window.  It never shows up and I cannot transfer books from my Mac computer to ADE.  I am using Sony Reader Library but it is developing problems!!  Can anyone assist??

    No solution yet.  One would think that Adobe would recognize that several complaints  have been reported on this problem.  Obviously, nobody knows how to fix it!!  Sorry I can't be helpful!!

  • On my iPhone when I go on phone to view my contacts on the top left corner there is a circle with a arrow ( like a refresh icon ), just want to know what is it?

    On my iPhone when I go on phone to view my contacts on the top left corner there is a circle with a arrow ( like a refresh icon ), just want to know what is it?

    That's exactly what it does, refresh your contacts. As an example if you add a contact on your Mac or iPad and you use iCloud to sync them altogether, then this can be used to refresh the contacts on your iPhone. 

  • I was logged onto FB and on one of my friends wall. I cannot back out of it, the notifications header that is usually in the top left corner is not there anymore. Anyone know how to retrieve this or get me logged of FB? HELP

    I am logged into facebook on my iphone...I am on a friends status and I am not being able to back out of his status because the "notification" header that should be in the top left corner to back me out of his status is not there. Anyone ever experience this before? I have tried soft reset, shaking the phone and syncing again with my computer.

    Facebook is a webpage but also have several Apps when you ask facebook questions stateing how you access facebook would be beneficial for people IN order to HELP you

Maybe you are looking for

  • Safari won't open anything.  help!!!?

    Hi there. My name is Shelli. My husband and I recently went from dial-up to slow dsl. When we did, Safari would no longer open any pages, no matter what. It will not even open the apple store. Can anyone help me? I have emptied the cache, and I have

  • ITunes for Windows Vista 64-bit editions

    Simple question: when will iTunes support 64-bit Vista? No useless "64-bit shouldn't be used by anyone"-style answers, please. Assume I know exactly what I'm doing   Windows Vista   Ultimate 64-bit Edition

  • Auth user in ORIG_MAIL_ACCESS or ORIG_SEND_ACCESS?

    The FROM_ACCESS table provides the authenticated user address, but I want to construct a mapping (for metermaid throttling) that applies to the RCPT TO stage of the SMTP transaction. Is there a way to expose the authenticated user address to the ORIG

  • On Pressing Button,System Exit

    Hi Freinds, I have Created One button in My Oracle forms 6i ,and Used 3-line Code Which is :cursor_check := to_number(:system.cursor_record); go_block('cardex_block'); show_window('window_cardex');Now When The User is Pressing this Button at the Run

  • Buy Back Purchase order.

    Dear How can we create the Buy-Back PO in my client company he wants to purchase a welding machine in buy back option how could be show in purchase order. regds dev...!