×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    34

    Loading GIFs (on NetBeans)

    I have a problem loading some GIFs into my code. I've tried saving from Paint and Paint Shop Pro and sometimes the result is a file I can't read. If I play around with the image a little while I suddenly can load it. Perhaps there are some attributes which are stored as part of the file format (other than as visible pixels, I mean) which confuse the Sun Wireless Toolkit emulator? For a while I thought it was the location the files were stored, or my image loader, but I've sorted all that out now - the files are stored with my source, and loaded with "/file.gif", and my image loader works fine with another 8 or so files in the same format in the same directory.

    Has anyone any experience with this? It's making me mental.

    Cheers.

    -------

    Oddly, filenames seem to be case sensitive, so perhaps that is part of it. But I still have trouble with some files.

    -----
    (later still).

    There's definately something funny about files. Sometimes a file won't work, but it will work a minute or so later. But a file doesn't seem to stop working, once it's started. I'm wondering if it's NetBeans specific, and/or perhaps there's a timing issue here. I can see files from my hard drive in the window in the top left corner of the screen. If I add a file to my SRC directory it appears in that window shortly after. Perhaps if I add a file to my directory it takes a little while before it becomes available to the project? Not always, because I just tested that and it seemed to be quick, but maybe there are some circumstances where it's the case.

    Does anyone know what the hell I'm on about?
    Last edited by Poldie; 2006-05-23 at 16:44.

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Loading GIFs (on NetBeans)

    Hi Poldie,

    Please check whether any exceptions are thrown while loading the pictures.
    Please also check ur painting code. Sometimes the images may be created but it may not be painting properly.
    Please post a sample cope
    what happens when the image files are put in the "res" folder??

    Wang

Similar Threads

  1. integration Carbide.j 1.0 and Netbeans 5.0
    By ovjo12 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-02-16, 07:48
  2. INVALID MANIFEST message and Netbeans 4.1
    By swc43@blueyonder.co.uk in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-02-10, 00:40
  3. NetBeans 4.1 Early Access Release Now Available
    By rdemmer in forum Mobile Java General
    Replies: 0
    Last Post: 2004-10-22, 14:52
  4. Replies: 0
    Last Post: 2004-08-25, 11:42
  5. Loading images - bug or no bug ?
    By mcmcdonald in forum Mobile Java General
    Replies: 2
    Last Post: 2003-04-22, 09:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •