How to replace the cup image in the frame with my own image

How can i change the default cup image in the top left corner of a frame to the image that i wanted in JDeveloper ?

Here is a one line piece of code that will do the same.
setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon File]")));
Note:
There is a way to create a resource bundle ( preferrable on large projects ) and add image files, then you can just use the properties editor to select a particular icon image for your frame.

Similar Messages

  • How to replace the '&' character with '&' in xi

    Hi,
    i need to replace the '&' character with ' &'.but i f i am converting it is displaying as '&' because internally '&' = '&'.
    beacuse of this it is not converting.
    is there any possiblity to change the  standard conversion in xi.

    Graphical mapping does not support special character like & , <,> to be mapped.
    You can encode & as and in UTF-8 only.
    if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    How to Work with Character Encodings in Process Integration (NW7.0)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to replace the arrow with a custom graphic on a TitledPane?

    The TitledPane has an arrow that changes state (rotates) to show whether the pane is collapsed or expanded. Is there a way to replace this arrow with a custom graphic for each state?

    Most definitely. Everything in the controls is style-able from CSS. The region you are attempting to style can be addressed via:
    .titled-pane > .title > .arrow-buttonSo you could specify images here for example, or you can just change the arrow path by adding another > .arrow on the end. Below I've posted the entire CSS style that is built in for TitledPane so you can see how the whole thing is styled. You can create your own stylesheet, copy/paste this in there, and then start tweaking things and see how it affects the look of the TitledPane.
    Cheers
    Richard
    * TitledPane                                                                  *
    .titled-pane {
        -fx-skin: "com.sun.javafx.scene.control.skin.TitledPaneSkin";
    .titled-pane > .title {
        -fx-background-color: -fx-box-border, -fx-inner-border, -fx-body-color;
        -fx-background-insets: 0, 1, 2;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */
    .titled-pane > .title > .arrow-button {
        -fx-background-color: null;
        -fx-background-insets: 0;
        -fx-background-radius: 0;
        -fx-padding: 0.0em 0.25em 0.0em 0.0em; /* 0 3 0 0 */
    .titled-pane > .title > .arrow-button .arrow {
        -fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
        -fx-background-insets: 1 0 -1 0, 0;
        -fx-padding: 0.25em 0.3125em 0.25em 0.3125em; /* 3 3.75 3 3.75 */
        -fx-shape: "M 0 0 h 7 l -3.5 4 z";
    .titled-pane:collapsed > .title > .arrow-button .arrow {
        -fx-rotate: -90;
    .titled-pane > *.content {
        -fx-background-color:
            -fx-box-border,
            linear-gradient(to bottom, derive(-fx-color,-02%), derive(-fx-color,65%) 12%, derive(-fx-color,23%) 88%, derive(-fx-color,50%) 99%, -fx-box-border);
        -fx-background-insets: 0, 0 1 1 1;
        -fx-padding: 0.167em;
    .titled-pane:focused > .title {
        -fx-color: -fx-focus-color;
    .titled-pane:focused > .title > .text {
        -fx-text-fill: white;
    .titled-pane:focused > .title > .arrow-button .arrow {
        -fx-background-color: white;
    }

  • Replace the wait with java embedding thread.sleep() function

    Hi,
    How to replace the wait with java embedding thread.sleep() function. Can anyone help.
    Thanks.

    drag and drop the java embedding component
    include the following code in it.
    try{ 
    Thread.sleep(60000);
    }catch(Exception e)
    --Prasanna                                                                                                                                                                                                                                                                                                                           

  • How to replace the root tag in ABAP Mapping

    how to replace the root tag with the certain string in ABAP Mapping
    just like
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <name>Lawrence</name>
    </root>
    into
    <?xml version="1.0" encoding="UTF-8"?>
    <myRootElement>
         <name>Lawrence</name>
    </myRootElement>
    i don't want to implement it in message mapping
    please give me the sample code
    thanks in advance

    Use below code
    odocument = ixmlfactory->create_document( ).
    msgtype = odocument->create_simple_element(
    name = 'myRootElement'
    parent = odocument ).
    Thanks
    Praveen

  • How do I replace the organiser with a new one

    How do I replace the organiser with a new one

    The problem is to understand your question (or your two questions : do you both mean the same thing ?)
    An answer to Hatstead question would help.
    1 - Do you really mean using another software to organize your workflow ?
    2 - Do you mean using other softwares based on folders rather than databases ?
    3 - Or do you mean working with different catalogs ?
    If you don't want to use the Organizer, it's not possible to 'delete' it, but it is simple not to use it.
    Most other organizing solutions include the choice of selecting PSE editor as the external editor
    There are various solutions depending on your platform : Windows, Mac, Linux...
    It's important to know if you prefer the folders or database organization to suggest possible solutions.

  • Qosmio G50-10J: How to replace the Optical Disc Drive (ODD)?

    Hello there,
    the optical drive of my Qosmio G 50 is not working properly anymore, it reads only some movie-DVDs, but sadly no videogameDVDs at all, so I cannot instal any games.
    The warranty has already expired too. So I wanted to ask if it is possible to change the drive myself, if it is then how should I do it, and if by doing it would the laptop be in
    serious risk of getting damaged?
    I would be very thankful for every tip and every help you guys can give me!!!
    Best regards,
    a.z.

    Hi
    In different cases the ODD replacement is not very tricky.
    If you want you can check this forum category.
    Here you can find some videos how to replace the ODD on different notebook models:
    http://forums.computers.toshiba-europe.com/forums/forum.jspa?forumID=115
    Here is also a nice Youtube channel which provides the instructions how to replace the ODD:
    http://www.youtube.com/user/toshibaeuropesupport
    But maybe the ODD laser lens is dirty. In my case I could solve similar issue cleaning the laser lens using a cotton-wool tip and alcohol.
    But be careful doing this!

  • Satallite A100: How to replace the keycaps?

    Is there a manual on how to replace the keycaps after they come off?
    My Satallite A100, one year old, lost two keycaps a few weeks ago, and I am unable to replace them, although I have all the (little) parts. It got even worse when some more came loose recently when my little son peeled some off, using the room created by the already missing keycaps.
    Thanks!

    Hello Mike
    Reading your posting I can not understand exactly what is wrong with your keyboard but removing and putting in place keycaps (plastic with written symbol) is not problematic. You must just put it right in place and gently press it down. You will hear click and the keycap will be in the place again.
    Under this keycap is placed small plastic mechanism. It contains two small plastic parts. If they are removed from the bottom you can put them inside again. To see how it looks like remove keycap from any other key and see how is it placed.
    I have done the same now and with a little bit patience you can put it in the right position again.

  • How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    In Editor, go to the expert tab.
    Open picture B, the one you wish to select the "replacement" face from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the face. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position the face from picture B to cover the face on A
    In the layers palette you should see picture A as the background layer, and face B on a separate layer

  • How to replace the certificate of Cisco 2106 wireless LAN controller for CAPWAP ?

    I have interested in CAPWAP feature and I download the open capwap project to make Access Controller (AC) and Wireless Terminal Point (WTP). I had built the AC which used PC and WTP which used Atheros AP. The CAPWAP feature work well when I enabled the CAPWAP that used my own AC  and WTP. When I got the Cisco 2106 wireless LAN controller (Cisco WLC), I configured the Cisco WLC to instead my own AC but I got the authorize fail in Cisco WLC side. It seem the Cisco WLC could not recognize the CAPWAP message which sent form my own WTP. I think this issue just need to synchronize the certificate between Cisco WLC and WTP.So I need to replace the Cisco WLC's certificate manually. Does anyone know how to replace the certificate manually with Cisco WLC ?
    Best Regards,
    Alan

    Unfortunately this Support Community is for Cisco Small Business & Small Business Pro product offerings.  The WLC2106 is a traditional Cisco product.  You can find this type of support on the Cisco NetPro Forum for all traditional Cisco products.
    Best Regards,
    Glenn

  • How can I replace the Portal with completely new Flash website?

    Can I replace the Portal with completely new Flash website? My customer do not want the JSP UI. Instead, he wants a completely new designed Flash site. Is it possible to do it? How can I deploy a new portal to cover the current one?

    If you have a look at some of the code examples which do the equivalent of site maps, you could in theory replace the whole portal desktop with some sort of Flash framework which reads the user's role structure at run time.
    I think it is useful to remember that the SAP portal is primarily a business application launchpad. It does that very well. Trying to make it into a Flash launchpad will be challenging.

  • How to replace the char values into numeric in my string?

    Hi Friends,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    I mean How to replace the char values into numeric in my string?
    Thanks,
    Sridhar

    Hi Sridhar,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    So, if i understand you correctly, you want to replace all characters in a string with 9 as in the above example, irrespective of position of the character, if so try with the below code.
    DATA: l_str TYPE string.
    l_str = 'ASKHSIUDNSBDKJSDH124312431243124saasdfsf'.
    REPLACE ALL OCCURRENCES OF REGEX '\D' IN l_str WITH '9'.
    IF sy-subrc EQ 0.
      WRITE: l_str. "Result will be 9999999999999999912431243124312499999999
    ENDIF.
    Regards,
    Chen
    Edited by: Chen K V on Jun 13, 2011 12:36 PM

  • Hp 7 voice tab screen broken unfortunately. tab is under warrenty.. how to replace the screen

    hp 7 voice tab screen broken unfortunately. tab is under warrenty.. how to replace the screen 

    Hp india have bad service ever. I hv order three notebooks ' hp 15-ac026tx' before five days for firm. Distributior open the boxes. But at the time of installation not single driver supporting to 2gb graphics card. As distributor made with Hp support they replied the engineer will come to ur place soon. But still no one has come. And im going to cancel this order and will prefer other compony.

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • HT1343 how to use the options with F10, F11, F11 for turning the sound up or down or mute?

    Hi, I'm Hannah. I'm using a Mac. Can you show me how to use the options with F10, F11, F12 for turning the sound up, or down or mute? Thank you very much

    Normally simply pressing them should do what you want, F10 to mute; F11 to decrease volume; F12 to increase volume. However, it's possible that you have a box ticked in Keyboard preferences which modifies the behaviour of the keys, requiring you to also hold down the Fn key (bottom left key on the keyboard) to enable the function.
    Check System Preferences>Keyboard to makes sure the box indicated in the image isn't ticked.

Maybe you are looking for