Standard Swing Icons

Hi,
I'm doing a sort of a progress dialog showing the phases progress to the user.
Are there any standard icons/images in Swing?
in particular, I'm looking for images that show:
"Done" - might be something like a checked CheckBox
"Error" - Something like a red "X" image
"Processed now" - Something like an arrow "<-"
Thanks!

I Think you could use dialogs with JOptionPane and JProgressBar.
Have a look at:
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html
and
http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
-Puce

Similar Messages

  • Where can i download the standard swing icon and images!

    I remember that sun has provided a lot of resources for swing gui, who can tell me the link
    Many thanks!

    You're talking about this?
    http://developer.java.sun.com/developer/techDocs/hi/repository/

  • How to change The Standard JOptionPane Icon?

    in this simple code
    i want to change the Standard JOptionPane icon to a different icon
    how could it be?
    thank you
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import javax.sound.sampled.*;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.Icon;
    import java.awt.event.*;
      public class MyFrame extends JFrame 
    JLabel label=new JLabel("Hello");
      MyInner inner;
          MyFrame ()
            setupGUI();
        private void setupGUI()
           JFrame f =new JFrame();
        //   f.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
           f.setTitle("Window Event");
            f.setSize(550,350);
            f.setResizable(false);
            f.setLayout(new BorderLayout());
            f.add("Center",label);
            f.show(true);
             inner=new  MyInner();
             f.addWindowListener(inner);
                   class MyInner extends WindowAdapter
           public void windowClosing(WindowEvent ee)
                         Toolkit tool = Toolkit.getDefaultToolkit();
                  tool.beep();
                      JOptionPane.showMessageDialog(null, "Nice Work! " );
                      System.exit(0);
          public  static void main(String[]args)
             MyFrame frame=new MyFrame ();
    }

    For instance:
        class MyInner extends WindowAdapter
            public void windowClosing(WindowEvent ee)
                Toolkit tool = Toolkit.getDefaultToolkit();
                tool.beep();
                JOptionPane.showMessageDialog(null, "Nice Work! ");
                ImageIcon myImageIcon = new ImageIcon("myPic.jpg"); // needs proper path here
                JOptionPane.showMessageDialog(null, "Better Work!", "Dang, I'm smart!", JOptionPane.ERROR_MESSAGE, myImageIcon);
                System.exit(0);
        }

  • How to display standard SAP icons in WebDynpro?

    Hi everybody,
    in my web dynpro app I'm using several web icons for display. Works very well so far with this notation: `~Icon/Failure` e.g.
    Now I need an icon which I can't find in the web icons library: the standard sap icon ICON_PRESENCE.
    I have tried this method: http://www.sapgeek.net/2009/10/web-dynpro-use-icons/  but it doesn't work; it seems that the system searches for the gif name as a web icon and can't find it.
    Is there any other way to diaplay standard sap icons in web dynpro, or does someone know if there is a web icon showing a burning light bulb??
    Thank you in advance for any advice!

    Hi,
       Suppose you need to display a standard SAP icon then take a image UI element and in the property SOURCE
       of image element click on the small F4 icon, a window opens with different tabstrips, select SAP ICONS tab
       and choose the relevent icon.
       If you dont find the icon, then you can upload the icon onto the application server and use it in your component.
      For this rightclick on your component and create a mime object and import the image from PC to SAP and you can
      now use this and will find it in the component usage tab in that F4 window of SOURCE property.

  • BP Cockpit. Standard sap icon (e.g. ICON_OKAY) within a cell of XML table?

    Hello all,
    I have programmed a custom bp cockpit.
    I am able to build up the xml to show the data, but only with texts.
    Does anybody know how could I be able to insert an image (an standard SAP icon like "ICON_OKAY") in any of the table cells?
    Thank you very much in advance.
    Gonzalo Milla Millá

    Hello all again,
    finally, I found the way...
    The problem was that the standard XSLT conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' ignores the tag 'img' so... there's no way to insert images (at least within a table cell).
    I try to explain the solution:
    FIRST: Create own XSLT conversion program
    a. Go to transaction XSLT_TOOL
    b. Copy the standard conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' to a customer one... let's call it 'Z_CCKPT_CFS_SERVICE'.
    c. Modify this Z_CCKPT_CFS_SERVICE adding following lines:
    <xsl:when test="child::img=true()">
      <td class="table7" width="{@width}" nowrap="x">
        <img src="{child::img/@src}"/>
      </td>
    </xsl:when>
    insert this lines just before, and at the same level that
    <xsl:when test="@colspan=true()">
    Here we are telling to the conversion program how to translate XML code for images to HTML code (only when they are found between "td" tags)
    SECOND: Find icon path and insert it within XML code
    a. Go to your Z class for your infoblock (let's say Z_CL_INFOBLOCK) that inherits from CL_CRM_CCKPT_IOS and modify the GET_REPORT method
    b. Get the icon path:
    DATA:
      lc_icono TYPE string.
      lc_icono = cl_bsp_mimes=>sap_icon( 'ICON_OKAY' ).
    This way, we get the physical path to the icon.
    c. insert icon in xml code:
    DATA:
      lv_string TYPE string.
    CONCATENATE '<img src="' lc_icono '"/>'
      INTO lv_string.
    CALL METHOD crmcl_cckpt_templatesplitter=>fill_template
      EXPORTING
        iv_tagname  = 'S1'
        iv_string   = lv_string
      CHANGING
        cv_template = ls_template.
    Here, we are filling contents of tab 'S1' in the XML template LS_TEMPLATE with the line
    <img src="physical/path/of/your/icon.gif"/>
    , that will be "translated" with your Z XSLT conversion program Z_CCKPT_CFS_SERVICE
    THIRD: link Z conversion program ('Z_CCKPT_CFS_SERVICE') to your XML.
    a. Also within the GET_REPORT method, after the creation of the XML code, insert following line as the first one in the XML table (export parameter of the method):
    DATA:
      lw_meta TYPE string.
      lw_meta = '<meta:metadata xmlns:meta="urn:sap-com:document:sap:crm_cckpt:metadata" STYLESHEET="Z_CCKPT_CFS_SERVICE"/>'.
      INSERT lw_meta INTO lt_xml_temp INDEX 1.
      _et_xml_out[] = lt_xml_temp[].
      CLEAR et_xml_out.
      LOOP AT _et_xml_out INTO _ls_xml_out.
        CONCATENATE et_xml_out lv_newline _ls_xml_out INTO
                    et_xml_out.
      ENDLOOP.
    FOURTH: Finally, it works!!!
    You have your icon included as the content of a table cell...
    Hope this helps
    Best Regards
    Gonzalo Milla Millá

  • Once I put the Firefox Icon in Apps, it shows up as a white circle/slash (as in "no" or "stop") NOT the standard Firefox Icon. I checked plug-ins."Shockwave Flash" shows up Vulnerable. When I update, I get download warnings. (more below)

    Downloaded Firefox and put it into my Apps folder as instructed. Its Icon in my Apps folder is not the Fox/Globe but a white icon of papers with a white circle&diagonal slash (like a white "stop" or do-not-enter sign). When I pulled that to my dock, it transferred there as the Fox/Globe; but I'm concerned about opening Firefox because that Icon in my Apps isn't right. I assumed the circle/slash icon telling me something's wrong with the App. So I checked the PlugIns.
    The PlugIn tells me "Shockwave Flash" is "Vulnerable, Update Now." But there are warnings about that download. When I check that, showing I'm a Mac, it gives me warnings for Windows!- but no warnings for Macs. What's going on?!
    Why am I not getting the standard Firefox Icon in my Apps folder?
    I don't want to corrupt my HD by opening Firefox if that Icon is telling me somethings wrong... (which seems the point of its circle/slash).
    This is all so unclear!

    What is your current Flash Player version: http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html ?
    What is your display adapter, driver version & date?  See http://forums.adobe.com/thread/945765

  • What are the official names of the standard iOS icons?

    I'm tearing my hair out and cursing. Not good.
    All I want is a list of the proper, official names of the icons/buttons that are standard in iOS.
    Specifically what set off the hunt was not knowing the name of the square with the curvy arrow pointing out to the upper right, but would be nice to find a complete list.
    I'm trying to coach a friend with a new iPad and it's frustrating not to know. Even the iOS pdf's I've looked at don't give the name of the icons, they just show them in line "tap [icon image] to...".
    Arrrgghh! I've Binged and Googled for nearly an hour now, been all over the net, various Apple sites but my keywords are not generating sought list!
    Help! Thanks!
    dn

    gdgmacguy;
    thanks for the quick reply and idea.
    That's the pdf I'm referring to. It's 163 pages, so I scrolled through the intro part, looked in the Safari part, scrolled to the end to look for an index or glossary or table and didn't find anything. Training-wise, it makes sense that they put the icon inline with the text, but I'm just hitting keyword block and giving up for the night, thought to float the search to others who may have clearer heads.
    First reference I see to this particular icon is page 14, where it appears inline, unnamed. The home button is named and further referred to as [a square icon with rounded corners]. Other icons are either named or unnamed in the UG text.

  • PDF Desktop Icons - Content Icon Vs. Standard PDF Icon

    Hi...
    I tried getting an answer to this in the READER forum, but to no avail, so someone suggested I try here...
    On my desktop, for any PDF file, currently all icons are the standard Adobe/PDF style.  From time to time, and I don't know what causes this, but these icons change and show as the first page of content in a little image.  This is how I would like them to be all the time, but they always revert back to the standard Adobe / PDF icons.  I don't know what changes these or how I can go about making this change permanent.
    Anybody have insight to this?  All replies would be greatly appreciated!  It's not anything major, but it's bugging the hell out of me.
    Thanks!
    Andy

    a)  Yes, I know the desktop resides in the Docs and Settings folder.
    b)  I haven't a clue as to what this question means, other than I know what a JPEG image is.
    c)  There are no differences in my various PDF files - most are downloads, others are saved copies, still others are converted to PDF via PrimoPDF Free - makes no difference - currently, all PDF icons on my desktop look like this:
    Funny thing, though...when I went to upload the above image, and the image upload set up a browse for the image file, I saw IN THAT VIEW the PDF icons as CONTENT icons, the way I would like all to be shown on my desktop as well - so you are onto something...
    d)  No differences.
    e)  Windows 7 64-bit Home Premium.
    Essentially, I want all my DESKTOP PDF icons to NOT look at they do now, but to look as they do (first page content image) in the second image above.
    Thanks...
    Andy

  • Ipod touch 5th gen no standard apps icons

    how to restore access to standard apple apps icons - no mail, apps store... I have checked restrictions and restrictions are turned off

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.   
    - Go to Settings > General > Reset Screen Layout
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • IMPORTING STANDARD SAP ICONS

    Hi
    I have an WD4A app and I would like to import sap's standard icons such as s_b_okay.gif to be displayed in my app
    based on some condition. My question is how do I call these icons and attach them to image UI elements I have
    created?
    Thanks for yr help
    Yuval Peery

    HI Perry ,
    You can bind the image sourse property of your UI with the attribute type string and programatically you can change the value for the image source based on your condition
    Sample code :
    DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_image TYPE wd_this->Element_context-image.
    *   get element via lead selection
        lo_el_context = wd_context->get_element( ).
    if condition = 1.  " here you can change icon based on your condition
       lv_image = '~Icon/Add'.  " or you can get the value from table - ICON  & copy the text , Eg : @00@  lv_image = ' @00@'.
    else.
       lv_image = '~Icon/AddRow'.
    endif.
    *   set single attribute
        lo_el_context->set_attribute(
          name =  `IMAGE`
          value = lv_image ).
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jul 6, 2010 4:14 PM

  • Office 2011 Standard Toolbar icons

    I had a problem with Office 2011 whereby there were no Themes available.  I reinstalled Office over the top of the current installation and all the colout themes were there.  However the standard toolbar displays fine but the icons do not match the labels.  So for example the Save label is accompanied by the Cut (scissors) symbol.  A couple are OK, such as Print but most are completely wrong.  Have tried re-installing again to no avail.  Any suggestions?

    I'm not quite understanding what you're asking - in the default Home ribbon, Themes are to the far right:
    You may want to try and clarify what you're asking and post in the MS Office 2011 for Mac forums - http://answers.microsoft.com/en-us/mac.
    Clinton

  • With FF 23.0.1, I can no longer replace the standard Firefox icon in Snow Leopard to match the rest of my icon scheme -- why not?

    Hi. I use a custom icon scheme in Snow Leopard 10.6.8 on my Mac Pro. Normally, when Firefox updates itself, its icon is reset to the default. I then change it back to my custom icon by the normal method: go to Get Info, unlock the access settings, paste the custom icon over the highlighted default icon in the top left corner of the Get Info box, reset the access and lock it, and then close the Get Info box. After that, the custom icon reappears the first time I launch Firefox.
    I can no longer change the icon by this method, so I'm assuming that it's something in FF 23.0.1 that's been changed to prevent the icon swap, especially as the regular method is working with all my other applications. I'm fussy about appearance/presentation stuff like this, so I'll keep messing around to see if I can find another method of changing the icon. If I can't modify the stock icon, I guess it will back to Chrome. I'd REALLY rather not have to switch, so if there's a simple fix I'm missing, I'd love to know about it.

    This add-on will restore the keyword.URL preference which was removed in Firefox 23. <br />
    https://addons.mozilla.org/en-US/firefox/addon/keywordurl-hack/

  • Swing Icons

    Hello,
    in the book Java Look and Feel Design Guidelines, there's an iconset (page 19 and next) with icons representing jfc components.
    Are those icons available somewhere ? I developp an gui "wysiwyg" builder and want to use them.
    Thanks

    Is it what you're looking for ?
    http://java.sun.com/developer/techDocs/hi/repository/

  • Create a Custom Icon to Replace the Standard URL Icon in Dock

    I would like to change the "springy thing"/URL icon in my dock to a custom picture showing the logo for the webpage for that particular "springy thing." Is it possible to change the spring to a custom icon? If so, how can I do this? Your help is greatly appreciated! Thanks.
    iBook G4   Mac OS X (10.4.8)  

    Generic urls dragged directly to the "Dock" will use that default icon (or whatever icon is substituted), but every url will use that same icon.
    If the goal is to have separate urls in the "Dock", each with its own custom icon, try dragging a url to the "Desktop" first, which should result in the creation of a ".webloc" file. The file can be given a custom icon the usual way via "Get Info", and added to the "Dock", but note that this requires that the ".webloc" file be stored somewhere for that "Dock" shortcut to remain valid.

  • Need help in Standard toolbar icon - FIND

    Hi all,
    I am using Menu Painter (SE41) and i want to use Function like BACK, CANCEL , FIND and FIND NEXT..
    I know code of BACK and CANCEL but i dont know code of FIND and FIND NEXT ..
    Can anyone please help me what is the code for these?
    Its bit urgent.
    Thanks in advance

    Hi,
    Make one button on application toolbar 'FND'.
    in user command write like,
    MODULE user_command_1000 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
        WHEN 'FND'.
          CALL SCREEN 1001 STARTING AT 37 5 ENDING AT 87 22.
      ENDCASE.
    ENDMODULE.                 " user_command_1000  INPUT
    on screen 1001 make one ok button and in user command(PAI) of that screen write,
    MODULE user_command_1001 INPUT.
      CASE sy-ucomm.
        WHEN 'OK'.
          CALL SCREEN 1000.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1001  INPUT
    and in screen 1000, u have one module (in PBO) where u fetching all data , write there like
    MODULE fetch_data OUTPUT.
      SELECT matnr matkl INTO CORRESPONDING FIELDS OF TABLE itab
      FROM mara
      WHERE matnr BETWEEN '000000000000000101' AND '000000000000000115'.
    <b>code for FIND Option</b>
    <b> IF strin IS NOT INITIAL.
        wa_itab-mark = 'X'.
        LOOP AT itab.
          IF itab-matnr = strin.
            line1 = sy-tabix.
            EXIT.
          ENDIF.
        ENDLOOP.
        IF line1 <> 0.
          MODIFY itab INDEX line1 FROM wa_itab TRANSPORTING mark.
          SET CURSOR LINE line1.
          tab1-top_line = line1.
        ENDIF.
      ENDIF.</b>
    ENDMODULE.                 " fetch_data  OUTPUT
    strin is a input/output field name in which u giving search term and its on screen 1001.

Maybe you are looking for

  • Save as PDF option missing in Safari 6.0?

    I have a PDF open in Safari and want to 'Save PDF to Evernote' as I have been doing in Chrome. But on Mountain Lion in Safari 6.0, when I select... 1. Cmd-P - I get blank page to 'print' (and only one) despite there being two PDF pages 2. Print icon

  • Problem with Informix drivers

    Informix drivers appear to not work with some components. Please refer to: http://swforum.sun.com/jive/thread.jspa?threadID=46728

  • Create transaction is slow in DIAPI

    HI All, When SAP DIAPI initiate a new connection untill complete a transaction (new document). It took around 13 seconds. Is this normal speed or we can improve again? Because we host the WCF REST API and there will be many calls in. This definitely

  • Key sorting

    Respected sir, I need to sort a structure in ascending order. I have already done integer data sorting using set_bt_compare function. structure sorting is not properly working. eg:- 10 10 10 10 20 10 20 20 30 00 00 00 sample program is.. structure is

  • Itunes 10.6.1.7 - HP Mediasmart server access issues in itunes

    Have just updated itunes to version 10.6.1.7 and having problems with accessing my HP Mediasmart Homeserver. Itunes can see the server on the shared tab, however when I click on the server you get "Loading "HP Mediasmart Server" at the top of the scr