Can't display an image with SWT using J9

Hello,
I'm programming a user interface using SWT and J9 as JVM under Window Mobile 5.0
Everything seems to work more or less fine with SWT widgets, but I can't display any Image.
I've tried the following codes :
Image image = new Image(display,getClass().getResourceAsStream("image.bmp"));when placing image.bmp in the same jar that my main class, or in the same folder when not using a jar file.
and
Image image = new Image(display,"\\image.bmp");(when placing image.bmp in the root folder)
I've tried with a gif file, it doesn't work neither.
Both codes work fine in my normal computer (replacing "//image.bmp" by "C://image.bmp" for instance)
Any help would be highly appreciated ;-)
Message was edited by:
cOsi

Here is a basic example to display image and make it flicker. Use it and try to improve to get the exact frame rate you want.
Remember this is not the actual solution, its just to give you an idea.
The best solution is the one you find it by yourself
Attachments:
Flicker.vi ‏8 KB

Similar Messages

  • How can I Display a Image with tiff format in Jpanel?

    How can I Display a CMYK Image with tiff format in Jpanel ? Not in ScrollingImagePanel? Thank you in advance.

    Why nobody can help me?I am very anxious!help me,please!

  • Display the images in excel using jsp

    Hi
    I am unable to display the images in excel using jsp. I can display the data. but cannot display the images. It is simply showing the icon without the image. Is there any way to display the images. Pls give some sample code to display the images in excel.
    Thanks in advance.

    Presumably whoever created the images in that Excel document just put links to somewhere on their hard drive. Those links don't mean anything when you put the document on somebody else's computer, which is what you are doing. At least, that is my guess.
    You could spend some time looking at the Excel file to see how the images were put in there. Or you could ask the person who put the images in there.

  • How can i display a image file which is placed in the applications server

    Hi all,
    Can any one help me how can I display a image file which is present in the application server.
    With regards,
    M.Ramana Murthy

    hi,
    *& Form TOP_OF_PAGE
    * text
    FORM F_TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LISTHEADER
    i_logo = Logo name
    * I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    rgds
    Anver

  • Displaying a image on mobile using canvas

    hi all...
    im new to j2ME and i need help on how to display an image on mobile using canvas. I've tried using the following codes.. however when i tried to run on my toolkit, i hit this error:
    Unable to create MIDlet MyCanvasDrawings
    java.lang.IllegalAccessException
         at com.sun.midp.midlet.MIDletState.createMIDlet(+19)
         at com.sun.midp.midlet.Selector.run(+22)
    Im not too sure of wads is the problem with my codes. Here's my codes:
    import javax.microedition.lcdui.*;
    public class MyCanvasDrawings extends Canvas
    private Display display;
    public MyCanvasDrawings(Display display)
         this.display = display;
    public void paint(Graphics g)     
    {//paint
         Image img = Image.createImage("testImage.png");
         g.drawImage(img,getWidth()/2, getHeight(), g.HCENTER|g.VCENTER);
    }//paint     
    }

    import java.io.IOException;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Font;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    public class MyCanvasDrawings extends Canvas
         public MyCanvasDrawings()
         public void paint(Graphics g)
         {//paint
              Image img1 = null;
                   try {
                        img1 = Image.createImage("/ProcureprofitLogo1.jpg");
                   //     img1 = Image.createImage("/welcomeText3.jpg");
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              g.drawImage(img1,getWidth()/2, 130, g.HCENTER|g.VCENTER);
         }//paint
    But i dont know how to add command

  • I can't download any images with Lightroom from any of my cameras, NIkon NEF, or Canon IMG, or Sony

    I can't download any images with Lightroom 4.4 from any of my cameras, NIkon NEF, or Canon IMG, or Sony DSC images...please advise...I used to download all my images with the previous versions...3.0   I have Mac 10.7.5
    mark

    Sounds like a hardware problem to me.
    Card reader or cable gone bad; or as Victoria said, permissions

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • First Script: Need some basic skill help? Can you add an image with a click?

    Hello, Im working on a project were you can replace people heads in a photo. Its for a project so its not supposed to be perfect. So far heres what i think the best steps to take are, but im not sure how to take the first scripting steps. How can i add an image with a script? How can i store a x y coordinates?
    1. I would create four variables and than store the XY cords of the the high point of the head, the bottom of the chin, amd the farthest right and left of the face.
    2. I would than add the image of the head that I would already have.
    3. If the x coordinates of the top and bottom are off kilter, I would rotate new head until = old face dimensions..
    4. I would also see if the width is too big or small and resize accordingly
    5. I would than resize the head so that the eyes would match up.
    Thanks for any help you can provide!

    Is that script for a browser html. Its not for Photoshop and like Photoshop would fine UiApp undefined so does Microsoft.  Is that a Chrome script or Android script? Why post it here?
    Atiqur Sumon wrote:
    function doGet() {
       var app = UiApp.createApplication();
       // The very first Google Doodle!
       app.add(app.createImage("http://www.google.com/logos/googleburn.jpg"));
       // Just the man in the middle
       app.add(app.createImage("http://www.google.com/logos/googleburn.jpg", 118, 0, 50, 106));
       return app;

  • How can I view all images with Safari on my mac?

    how can I view all images with Safari on my mac? When I go to pinterest or any stock photo site I can only see some of the images on my mac.

    Please link to an example of a page you're having problems with. It should be accessible without a login.

  • I have a work iphone (4) and my personal iphone (5). Can I possibly get by with just using one phone or do I need both phones?

    I have a work iphone (4) and my personal iphone (5). Can I possibly get by with just using one phone or do I need both phones?

    Both.

  • Can't open CS2 image with photoshop

    I had this camera, Canon 50d, for little more than two years.
    Now it is time to start working with Raw image and can't open the image with Photoshop.
    But I could open with EOS utility but want to work with Photoshop.
    thanks for reading and advice pleae

    Photoshop CS2 will never directly open a Canon EOS-50D raw file.  The raw files from every camera are different and your camera was designed after the Photoshop CS2 Camera Raw application stopped receiving updates.
    This list is pertinent:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    That said, there is a free solution that will allow you to open your images indirectly.
    Download and install the latest version of the free Adobe DNG Converter:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5388 (Mac)
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5389 (PC)
    Whenever you have a folder full of raw 50D images run the DNG Converter on the folder to convert all the files to DNG format.  You will have to select the proper compatibility setting.
    You can now open the DNG files with Photoshop CS2's Camera Raw converter.
    Just as an aside, the Camera Raw converter from the latest version of Photoshop delivers images of higher quality, so you may want to consider moving up to Photoshop CS6.  Unfortunately you will have to pay full price; there's no Photoshop CS2 -> CS6 upgrade discount.
    -Noel

  • I updated to Photoshop cc 2014 and now can't resize the images like I used to.

    I updated to Photoshop cc 2014 and now can't resize the images like I used to. 
    I used to click on the image and then go to the corner hold down shift and resize it.  Now it won't do it.
    How do I do it now? 
    I have a project deadline and need to do this asap.  Panicking that I won't meet my deadline.

    Did you turn off the "show transform controls" option in the move tool?
    It sounds like you were using that previously.
    And you can always transform by using the Free Transform command (command/control T).

  • Can we do poduct costing with out using cost sheet  and overhead rates

    Hi,
    can we do product costing with out using cost sheets and overhead rates.
    In that cast , how the cost estimation happens ?

    Hi,
    a costing sheet is used to calculate (on a base) overhead values. If you dont need / want to use this functionality just create/use a costing variant where not costing sheet is assigned.
    Use this costing variant in CK11N or KKPAN, depending if ou have a quantity structure or not.
    best regards, Christian

  • Can't pair my Ipad2 with Iphone6 using personal hotspot with IOS 8.0.2.  Is this no longer possible?

    Can't pair my Ipad2 with Iphone6 using personal hotspot with IOS 8.0.2.  Is this no longer possible?

    Hi MEH19,
    I have an article for you that will help you address this issue that you seem to be experiencing with your personal hotspots:
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/ts2756
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • How can I blur a image with two variables : degree and radius?

    how can I blur a image with two variables : degree and radius?
    a lot of thanks !

    What are the values of these variables supposed to represent?

Maybe you are looking for

  • Re-named NEF & jpg files in CS4 Bridge & they turned into "exec" files!?!? SOS

    SOS!!! I just re-named NEF & jpg files in CS4 Bridge & they turned into "exec" files (& the WEDDING GIG images disappeared!) HELP PLEASE, anyone who knows the solution. I'm desperate.

  • How to automatically complete an SD Contract when not all quantity is used

    Hi, I have a situation where it often happens that not all the quantity in an SD Quantity Contract is used in Sales Orders. When this happens, currently the business users have to go into the Contract, and amend the quantity in order to complete it.

  • Virtual Machine on Solaris 10

    I am a new user of Solaris 10 on SPARC processor. My requirement is to run Ubuntu inside a virual machine on top of Solaris 10 platform. Already tried out Oracle VM VirtualBox. Though it comes with a distribution for Solaris on x86, it does not have

  • Snippets in Flash Builder ?

    Will there be an option to save snippets in Flash Builder ? My experience is that I spend WAY more time looking up code than creating stuff in Flex. Snippets would be a colossal timesaver...

  • PRINT IN BLK WHITE

    How can I turn off my color printing?  I only want to print in blk/white.