Add a icon to jframe titlebar

Hi all,
I want to add an icon near the minimize, maximise, close icons in a JFrame titleBar.
The new icon should be the one for "minimize application to tray" (so the icon with the dot)
Any ideas? Thx very much!

    setIconImage (new ImageIcon ("location of your icon.jpg").getImage ());

Similar Messages

  • Icon in the titlebar of a JDialog

    Hey,
    I'd like to put a small .gif Icon into the titlebar of a JDialog - is this possible?
    Normally I use this with a JFrame - how's that with a JDialog?
    this.setIconImage(new ImageIcon("myPackage/a-small-happy-face.gif").getImage());

    I tried both possibilities now - unfortunately it didn't work out for me.
    Perhaps I should have told you that I derived JDialog. My dialog class
    is called DialogOptionSettings and it needs two other parameters (l and o).
    I simply tried to forward "frame" and "true" in DialogOptionSettings ctor
    to the base classes ctor.
    It now works without problem, alas but also without icon...
              JFrame frame = new JFrame();
              frame.setIconImage(new ImageIcon("transform/face-icon-small-happy.gif").getImage());
              //Image img = Toolkit.getDefaultToolkit().getImage("transform/face-icon-small-happy.gif");
              //frame.setIconImage(img);
              dlgOptions = new DialogOptionSettings(frame,true, l, o); //true false for modal and frame is parent.

  • Can't open another window in firefox and add-on icons won't show

    I had to do a system restore after downloading malware which avast stopped from activating. I downloaded Spybot and scanned/fixed various things it had identified but then my laptop wouldn't start in anything but safe mode. After I did the system restore, the malware and Spybot were gone, but Firefox crashed every time I tried to open it, so I had to use Internet Explorer to get online and download Firefox. Since then I have 2 problems: Firefox will only open in one window (it will let me open multiple tabs but only in one window) and my add-on icons (the Personas fox, the Greasemonkey monkey, the Boost for facebook infinity symbol, etc) won't appear on the bottom toolbar or browser bar as they always have, nor are they in the Tools drop-down menu as they always were. I can't get into Personas favorites at all either, despite having reinstalled the Personas Plus account twice. I assume that something causing these things happened when I did the system restore, as anything Spybot "fixed" should have been undone by the system restore? I have Vista 32-bit on a Dell Inspiron 1545 laptop. Please help!

    Hi narik121,
    So the build that you downloaded for CentOS 6.4, where did you download it from?
    There are some versions of Firefox that may have been compiled by third party providers for specific Linux builds. Mozilla does not host these builds. [[Install Firefox on Linux]] is the reference to the official code for Linux.

  • Acrobat xi - RE: Add sound icon- skin displayed is a 'blank white box' until it is clicked to activate it- can you lock skin to display before its activated so that in a print run the skin shows up (ie the controls-or any kind of greyed out rectangle, lik

    Hi,
    Acrobat xi - RE: Add sound icon- skin displayed is a 'blank white box' until it is clicked to activate it- can you lock skin to display before its activated so that in a print run the skin shows up (ie the controls-or any kind of greyed out rectangle, like video controls before 1st activation) and not the blank white box- if no, I guess I have to activate all sound icons before doing a print run?thanks)).

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Add change Icon in the Table Control tool bar.

    Hi Abapers,
    I need to add "change" icon in the table control. I added it but when I click on it is not working.
    My requirement is that when I run my custom report, all the fields should be shown is in display mode. Then when I click on the "change" icon, all fields should be enabled for change.
    I have already referred to the standard progs BCALV_* but it does not have the "change" icon.
    plz give me any reference prg or sample code.
    Thanks
    Nani.

    Hi Nani,
    Track the function code of change icon in user command. if it is clicked then put a flag eq X.
    check that flag in PBO, if it is eq X then screen-input = 1 or vice versa.
    try this code:
    in PBO:
    LOOP AT SCREEN
    IF WS_EDIT = 'X'
    SCREEN-INPUT = 1
    ELSE
    SCREEN-INPUT = 0
    ENDIF
    MODIFY SCREEN
    ENDLOOP
    Hope it will work fine
    Regards
    Krishnendu

  • How to add an icon to a node in network graphics?

    Hi all,
      Do you know how to add an icon (any SAP' icon) to a node in network graphics?
    Just like a tree can have a leaf with icon (for example, a person icon, a plant icon), can a node in network graphics have an icon also?  and how to implement in network graphics?
      I already studied t-code gral: NETZOCX1
    NETZOCX2
    NETZ_BO1
    NETZ_BO2
    NETZ_BO3
    But no actual output.
    It seems using node type in network graphics can help to determine different icons, could you give some suggestion or examples?
    Thanks a lot!!

    Hi,
      Thanks for you link about SAP Graphics Framework. It seems not very useful in our case.
      Since we are using Control Framework now, there is Tree and Networks in it. Can a node in a network have an icon (such as person icon, plant icon)? I know a leaf in a tree in Control Framework can have an icon.
      Anybody has comments or suggestion?
      Thanks!

  • How to add an Icon to a parent menu item in Command Center?

    Hi guys,
    does anybody know how to add an icon to a parent maenu item in Command Center? BTW, I'm using SBO 6.5
    Cheers,
    Oki

    The SDK doesn't provide any features for adding icons to the command center in SBO6.5.
    Version 2004 has a new image property for menu items that can be used.
    John.

  • How to add URL Icon for each responsibility

    Hi all,
    I have a requirement where i need to add URL Icon to my custom application, i,e when i click on responsibity it will open the application so to make user to know he is in this application we need to add ICON to URL. This is possible in normal HTML just we need to include these two lines in head tab.
    <link rel="icon" type="image/ico" href="favicon.ico"></link>
    <link rel="shortcut icon" href="favicon.ico"></link>
    How can we achieve the same in the OAF?
    Thanks
    Babu

    Hi Josephine
    Please proceed as below:
    1. SE51.
    2. Change the layout.
    3. Add 2 pushbuttons at your desired location.
    4. Double click on each button for Attributes.
    5. In the attributes, give the Name, Text.
    6. Select the Icon Name from the list: Eg: ICON_OKAY and ICON_CANCEL.
    7. Go back to layout.
    8. Save & Activate
    9. Now you can test the screen to check the icons displayed in the screen.
    Hope this helps.
    Kind Regards
    Eswar

  • Add a Button in JFrame Title Bar

    How can I add a button in JFrame Title Bar. I want to put on more button for docking after the closing button in the title bar.

    if you use JFrame.setDefaultLookAndFeelDecorated(true) then you can do it by extending the JRootPaneUI class of the L&F (the default is the metal L&F). that is not a easy task but if you want take a look at BasicRootPaneUI, there you will have to point it to a new TitlePane which you will have to create. to load all this you must use the UIManager class. if you need more explaination try reading on look and feel and customizing it.

  • Error when installing OpsMgr reporting (Attempted to add warning icon to item OMREPORTING but since this was as NONVITALFAILURE case, we added an Error icon instead.)

    Hi
    I have the following scenario:
    Two Management Server, the first
    Management Server has the following functions:
    - Management Server
    - Operations Console
    - Web Console
    My second Management Server has the following
    functions:
    - Management Server
    - Operations Console
    A SQL Server with the
    OperationsManager and OperationsManagerDW
    bases.
    My second Management Server, I installed the
    service report server SQL,
    created the foundation in my remote SQL
    Server (ReportServerOpsMgr and
    ReportServerOpsMgrTempDB). By adding the
    feature of Reporting Server
    it starts the installation process, but
    at a certain point it gives me the following error message
    in the Reporting Server log: Attempted
    to add warning icon to
    OMREPORTING item but since
    this was the NONVITALFAILURE
    case, we added an Error
    icon instead.
    Has anyone been through
    this problem and can help me?
    Thanks a lot!
    Wilsterman Fernandes

    Seems this is either a permissions issue or the it is a restriction configured for running external stored procedures
    I suggest you remove the Reporting portion from the server, then remove the Reporting Service completely. After doing this, reboot the SQL and Management server=>install Reporting again.
    Juke Chou
    TechNet Community Support

  • Can't find print window to set my printer when I click on the printer add on icon

    My Epson printer is set as default printer. I am unable to find the print window to add my printer to firefox when trying to print from the add on icon.

    '''{ Ctrl + P }''' then select that printer from the Print - Name dialog drop-down. Then print the page.
    "last used" is the default for Firefox - doesn't go by the system default. setting in the operating system

  • What happened to the Add Bookmark icon

    In Safari 6 under ML, the Add Bookmark Icon, is missing. I know I can use Command D, but sometimes using the + was quicker. Is there someone to turn that feature back on?

    Yes. Go to Safari>View>Customize Toolbar.

  • Since downloading 5.0, my add-ons icons no longer show at bottom of page.

    The icons for my add-ons no longer appear at the bottom of the page. This happened when I downloaded Firefox 5.0.
    How do I correct this so that the icons show. '''bold text'''

    Many thanks John99.
    I got around to disabling FAVICON PICKER 2 version 0.6.2.15 and the tab icons came flooding back - perfect. I will still be able to use the FAVICON add-on when I would like to add an icon to a bookmark and the disable it again so I have the best of both worlds.
    Many thanks again.
    devonian

  • I'm having trouble dragging add-on icons to the add-on bar

    I just installed Firefox 4 on my Ubuntu (10.04) and am attempting to customize my toolbars. Specifically, I want to have all my add-on icons located on the add-on bar. However, nothing happens when I try dragging them to that bar. The only thing I was able to add to the bar were a few separators. Any ideas on how to fix this?

    The add-ons I installed are for weather, screenshots and Better Privacy, all of which have icons. The icons were added automatically to the address bar and I wanted to drag them down to the add-on bar on the bottom of the screen. The only one that moved was Better Privacy. I would really prefer to have all my add-ons available to me from the bottom of the screen.

  • Add an icon to an extension

    Hi,
    I'd like to add an icon (that will appear in the Download Manager) to an extension which doesn't have one.
    The Chrome folder is packed in a jar file, and adding the "<em:iconURL>chrome:" line to the Install file doesn't work.
    Thanks

    SOLVED!!
    ===========
    When creating an adobe extension project in Adobe extension Builder with Flash Builder 4.6, a folder ".stage-extension" is created but not listed in the directory in the Package Explorer Tab. However the manifest.xml file in the bin-debug folder is shown giving the impression that it could be edited.
    To edit the manifest.xml file, locate the location of your project and find: YourPorjectName>.stage-extension>CSXS>manifest.xml
    Edit this manifest.xml for the changes to apply.

Maybe you are looking for

  • While playing a game the touchpad arrow does not align correctly

    The arrow will be shown in one area and the placement will be in another area. I want the aroow and the palcement to be in the same palce. I have gone to the control panel to see if I could adjust he settings but no go. What can I do

  • Please assist in converting a pdf document to word

    I bought the adobe acrobat x standard software. When I try to convert a pdf document to ms word I am advised taht I have no free trial left and am requested to upgrade. Please assist.

  • My iPod 5g is lagging

    It's lagging with hardly any music and apps and its not broad band and only a week old

  • Discoverer 10.1.2.1 Formatting is SLOW

    Hello, When I try to format or edit headings or data, it takes FOREVER for it to come back. Is their a fix for this. Any info would be greatly appreciated. We are running the appserver on a pair of 4 processor 3.2 GHZ Intel boxes with 12 GB of memory

  • My phone is unusable

    I was updating my phone and i get an "app error 200" RESET. I reboot and the same thing happens...HELP