Why graphics not shown?

I am runinng a programe in Forte. The code has graphics(gif) located in the same directory as the class file and refered in the code with just the graphic name. The graphics are not shown when the code is excured.
I have set the classpath with ".", but it does not help. Do I have to code a hard path for the graphics?
Thanks

Try something like:
    imageLabel = new JLabel();
    javax.swing.ImageIcon icon = new javax.swing.ImageIcon(
        getClass().getResource("d_sun.gif")
    if( icon != null ) {
      imageLabel.setIcon( icon );
    }If your class is in a package (and the gif is in the package too) you will want the relative path as well.
        getClass().getResource("/com/GumBTech/GumUtil/d_sun.jpg")

Similar Messages

  • External-graphic not shown in PDF with Tomcat / Cocoon / Ubuntu

    Hi,
    this weekend I set up a virtualbox with Ubuntu 8.04 OS; APEX 3.12 @ Oracle 10gXE; Tomcat 6.014; Cocoon 2.1.11; fop_post sitemap file according to Carl Backstrom blogpost ([http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]); to experiment with APEX & PDF printing.
    Tomcat is configured to listen to port 8888; APEX to 8080.
    I have setup APEX according to Carl's blogpost. All is working fine; I can generate PDF reports using the standard templates. I'm new to XSL, but decided to go wild. I decided to include a JPG graphic.
    I followed the example in Scott & Spendolini, Pro Oracle Application Express, page 399. However the image is not shown in the PDF, nor is there an error message produced. What is wrong?
    This is the relevant section of source code I have used:
    <fo:static-content flow-name="region-footer">
    <fo:block xsl:use-attribute-sets="text footer">
    <fo:inline xsl:use-attribute-sets="body-font page-number">
    <fo:external-graphics width="50px" height="50px" src='url("http://www.fiat128.nl/images/fiat128.jpg")'/>
    <fo:page-number/>
    </fo:inline>
    </fo:block>
    <fo:block xsl:use-attribute-sets="text text_2 #PAGE_FOOTER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-footer">#PAGE_FOOTER#</fo:inline>
    </fo:block>
    </fo:static-content>
    all help is appreciated. Is there a problem with Cocoon and Linux?
    many regards,
    Ronald van Dijk
    Edited by: user614694 on Oct 6, 2008 3:09 AM
    Edited by: Ronald van Dijk on Oct 6, 2008 3:10 AM

    Hello Ronald,
    Your code looks fine to me. Although xsl-fo is not very friendly for a slight change...
    This is an example I use during my PDF printing presentation:
    <fo:static-content flow-name="region-header">
    <fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
    </fo:block>
    <fo:block border="0.5pt solid silver"
    background-image="url('http://o11g1.apex-evangelists.com:7779/i/htmldb/apex_logo.gif')"
    padding="12pt"
    text-align="center">Apex Evangelists
    </fo:block>
    </fo:static-content>
    Does that work for you?
    (change o11g1.apex-evangelists.com:7779 to your hostname:port - and see that you get the image by using the url)
    I've sometimes seen problems displaying certain pictures or specifying the width.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Why JComboBox not shown?

    I use a JPanel, and tried to show a JComboBox on it.
    But somehow the JComboBox is not shown. Need
    help here. Thank you.

    Just for fun, I wrote a small test program that included the following lines:
    modeType.addItem("Phi");
    modeType.addItem("Pump_probe delay");
    modeType.setSelectedIndex(0);
    modeType.setEnabled(true);
    modeType.setBounds(40, 150, 120, 30);
    add(modeType, null);As you can see, those lines are identical to the code you posted. modeType is a JComboBox that I'm adding to a JPanel that has no layout manager. In my program the combobox shows up perfectly.
    This tells us that the problem with your code is not those 6 lines, but something else. And without seeing the rest of your code it's awfully difficult to guess what it can be.

  • Safari is not working. Many (not all) graphics not shown, won't play video, says Flash is missing, will not respond to login or query submissions. Firefox seems OK. Help?

    This seemed to happen as I was working today. Pages are not fully loading (spinning wheel on tab never stops) and most graphics don't show. Videos are not playing and game sites say I need Adobe Flash. I tried downloading Flash, but that just didn't happen either. At the same time Firefox seems fine, including loading the same games, playing video, logging in and queries.
    It seems like a bug, but ProtectMac Antivirus has screened several times today with no threats found. (Also says its software is up to date as of today.)
    I don't want to remove Flash if its really installed and working.
    Should I uninstall and reinstall Safari?

    Hi Jonthan ...
    ProtectMac Antivirus
    First, uninstall the ProtectMac Antivirus >   http://www.protectmac.com/support/faq.html#qt18
    If you want to have a/v software installed on a Mac either ClamXav or Sophos Anti-Virus for Mac  Edition are far more compatible with Apple native applications such as Safari and both are free.
    Then try troubleshooting Flash. The plugin you have installed now may be corrupted.
    Uninstall then reinstall a new Flash plugin >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall the currently installed plugin first.
    Now relaunch Safari. From the Safari menu bar top of your screen click Safari > Empty Cache
    Now try a video and see if pages load as they should.
    And go to:   HD/Library/Internet-Plug-Ins
    If you have ClickToFlash installed, that can prevent Flash content from loading.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info.
    If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.
    And check to make sure there's enough free space on the startup disk.   Right or control click the MacintoshHD icon on your Desktop.
    Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    edited by:  cs

  • Stock for 0STOCKTYPE value # not shown

    Hi experts,
    I've got a little problem with showing stock with dimension stocktype.
    I've created a query with the free dimension stocktype. When adding this to the rows all stocktypes but the empty ('#') are shown. The total shows the value including '#' data:
                                            Stock (Value)
         Plant      Stock Type                          EUR
         1101     Frei verwendbar               -25.190.984,26
                 Gesperrt                 7.423.054,97
                 Kundenkonsi frei ver          -181.952,48
                 Transit                    34.243.952,30
         Total                                  23.680.941,04
    Does anybody has an idea why # ist not shown?
    Kindest,
    Ralf

    Hi,
    Enable the Key and Text type for stock type and check if you get any values. Doesn't seem like you have given any restriction otherwise total will not addup.
    Still you can check if you have put any global filter or any specific filter to Stock type if it is RKF?
    Regards,
    Durgesh.

  • Thanks Neil. Though I have purchased Mountain Lion from Mac App stores before HD crash, this is not shown in the list of purchases.why?

    Thanks Neil. Though I have purchased Mountain Lion from Mac App stores before HD crash, this is not shown in the list of purchases.why?
    regards,
    [email protected]

    If you go to System Preferences > Network do you see other networks listed on the left panel?  Is the lock in the lower left corner closed?  If not, highlight your network, then close the lock so you block other networks.

  • Why photos are not shown in pdf

    in some pdf's the pictures and photos are not shown, do you know why

    Refer this article
    The Microsoft.SharePoint.SPFieldCollection.AddFieldAsXml method
    http://blogs.msdn.com/b/sharepointdev/archive/2011/01/20/why-do-my-new-list-fields-not-appear-on-the-new-edit-or-display-forms.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Why is the 9860 not shown on UK site? am I buying a dud?

    The daughter wants to upgrade from her 9300. Shes decided she wants a tocuh phone back, so looked at options. 9380 (too small screen), 9810 (maybe, but bulky), and the 9860.
    However I'm in UK and the 9860 isnt even listed on the smartphone list of phones. Am I buying a dud here? is it not supported anymore? why is it not shown, was it that bad?
    I will have to buy this SIM free or PAYG, as shes mid contract.
    anyone please? and comments on the actual phone?
    cheers

    Not sure why its not listed, but you can purchase SIM free from Play.com at least
    http://www.play.com/Mobiles/Mobile/4-/22144649/BlackBerry-Torch-9860-SIM-Free-Unlocked-Mobile-Phone/...

  • HT5620 hi , why the rest security question not shown in my browser to press on it and rest my forgotten answers ?? hellllp plzzzz

    hi , why the rest security question not shown in my browser to press on it and rest my forgotten answers ?? hellllp plzzzz

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • Why are the DNG Thumbnails of my Sony DRC RX100 not shown in the File Finder of my Mac?

    When I first import the original RAWs from my Sony DRC RX100, I can see the thumbnails in the File Finder (so my Mac with OSX 10.9.1. is perfectly fine), but after reworking them with Lightroom and exporting them as DNG files, the pictures are not shown any more as thumbnails in the file finder, but as empty white boxes. The curious thing is that the RAW pictures shooted with my Nikon D5200 do not have any visualization problem after exporting them from Lightroom.  The problem is very disgusting, as I can not search for pictures in the file finder. And Adobe did just close my open request on this issue (case #0180632682) without my consent and without any solution! Who else has got this problem and knows if there is any help to this stupid phenomenon? Does anyone at Adobe take care at all?
    Thanks!
    Tinero

    I think that this is a Lightroom problem because the original Raw files from the camera card are shown as thumbnails in the file finder, but after importing them into Lightroom as dng, retouching them and exporting them with Lightroom, the files are not shown any more. Obviously my sony RX100 camera is not the problem, at least not for my Mac. As Lightroom always needs to work together with a windows PC or a Mac, Adobe should ensure the compatibility of the functions with the host system. I think that is what all consumers logically expect from Lightroom. And a photography SW should be able to show fotos and export visible foto files...
    The very same Dng files from my other camera (a Nikon d5200) do not have this problem at all, although I export them in the very same format as the pics from my Sony, which is not at all an exotic camera. This is very confusing.
    I export dng files because this is the Lightroom own raw format that keeps the original quality of my raws. TIFF files are too large, and jpegs sensibly reduce the quality. So there is no option. I need to stay in Raw. Do I have any other quality options?

  • Why Arabic charactes in PDF are not shown ?

    I have Microsoft IIS , oracle report server , Acrobat writer 5 and report builder 6
    in Windows2000 with Arabic language enabled.
    In live previewer and HTML format Arabic characters are shown correctly in my report
    also when i print my report by Acrobat distiller printer, but when i generate to file PDF ,
    arabic characters are not shown correctly (they are not shown as question marks )
    this meanes that my reports in IE5 as PDF do not show arabic characters.
    How Can I define my Acrobat distiller printer as default printer used by web CGI (rwcgi60) ?
    I have found this statment in developer documents:
         "PDF does not support multi-byte character sets."
    wether it meanes that i can not have reports with arabic characters as PDF?
    thanks for your help.

    Jalal,
    BiDi was not supported in PDF output in reports 6/6i. It is supported in reports 9i.
    Thanks
    The Oracle Reports team

  • Modified versions from external editor are not shown in browser, why?

    After I modify an image in Silver Efex and save it , the image is not shown in it's modified form in the browser. When I open the image it shows as modified.

    Remember when you return an image from an external editor/plugin the returned image is made into a new master. Are you sure you're looking at the correct image in Aperture?
    If that's not it post back describing the exact steps you are taking from sending the image to the plugin until you're back in Aperture.
    regards

  • Why is some text not shown after merging multiple documents

    One of my clients is using Adobe Acrobat XI and they are merging multiple PDF documents (up to 1000 single PDF's!) to create one big PDF document.
    But somehow just some parts of the text are not shown after the merging (it is actually still there because you can copy and paste it in to Word and you will see it again)?
    Any suggestions?

    Hi Wunold van Drunen,
    Since you have identified the problematic pages, have you checked if the issue occurs with the same pdf when merged with a smaller number may be 10 pdfs.
    How are these pdfs created? It might be possible that the said document's pdf structure is incorrect.
    You may want to sanitize the said pdf's before combining and check.
    Regards,
    Rave

  • Why the distant objects are not shown ?

    Hi , everyone .
    The distant objects are not shown unless moving the view closer to them in Java3D .
    How to change or set to show the distant objects without moving the view ?
    Anyone on any information or advice would be helpful.
    3QS !!!
    PS: using the defualt virtual universe : SimpleUniverse

    When you are creating the View Object do something like this:
    // Set up the Front Clipping Distance - in Virtual Eye Coordinates
    myView.setFrontClipPolicy( View.VIRTUAL_EYE );
    myView.setFrontClipDistance( FRONT_CLIP_DISTANCE );
    // Set up the Back Clipping Distance - In Virtual Eye Coordinates
    myView.setBackClipPolicy( View.VIRTUAL_EYE );
    myView.setBackClipDistance( BACK_CLIP_DISTANCE );
    The VIRTUAL_EYE can be replaced by PHYSICAL_EYE and a few others(check javadocs for View for more info)
    and the FRONT_CLIP_DISTANCE and BACK_CLIP_DISTANCE are just :
    public static final double FRONT_CLIP_DISTANCE = 0.1; // 0.1 Virtual Meters
    public static final double BACK_CLIP_DISTANCE = 100; // 100 Virtual Meters
    so to get your objects in the distance to render at a greater distance from them, then just increase the BACK_CLIP_DISTANCE to 1000 or something like that
    NOTE: the larger the BACK_CLIP_DISTANCE, the longer and slower it will take to render you scene each frame. YOU WILL PAY FOR THIS (in CPU time)
    Hope this helps
    -- Rob

  • Apple tv my tv programmes are not playing in widescreen even though rented movies are. Aditionally my photos on my iPhone 4 are also shown only in the middle of the screen? Why are not all films/programmes / photos filling the whole screen?

    Just purchased Apple TV 2 &amp; music videos purchased and films rented from iTunes play in 16:9 ratio and fill my 6 year old Samsung TV screen completely. However my photos and videos played by AirPlay play in the centre of the screen along with TV series purchased and played from iTunes. Why are not all played media filling the TV screen even though they are playing in 16:9 on the TV?

    if the original material is not in widescreen appletv will not play it in widescreen
    if it did it would mean that it had to cut off some of the image

Maybe you are looking for

  • Open Billing doc.in VF05

    Hi, We have created some Invoices in period 01/05/2011 to 10/05/2011 for acoounting document has not been cleared for payer X. When we are taking the report for open billing document in VF05 for that payer for that period system is not showing any va

  • Exclude a version from the calculation

    Hello, In our model we have a version used uniquely to upload data. When the system starts to calculate, it includes this version.  We have tried to lock the version,but it still included in the calculation. We would like to know if is possible to ex

  • ORA-30951 when registering TPoX schemas

    Hello, I am trying to register the schemas for TPoX benchmark of XMLType Object Relational storage. BEGIN DBMS_XMLSCHEMA.registerSchema( SCHEMAURL => 'http://www.fixprotocol.org/FIXML-4-4 fixml-fields-base-4-4.xsd', SCHEMADOC => bfilename('XML_FILES_

  • Package com.sun.media

    Where do i find the API documentation of the package com.sun.media.

  • E-Recruiting Popup warning released profile

    Hi Experts, I have a request from a client. The client would like to see the popup warning at the end of an application removed, step "Send application". The popup warning appears when the candidate has not checked "Release profile". I have looked in