You Are Here:

Community: Developer Discussion Boards

#1 Old Loading GIFs (on NetBeans) - 2006-05-23, 16:19

Join Date: Feb 2006
Posts: 34
Poldie
Offline
Registered User
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 17:44.
Reply With Quote

#2 Old Re: Loading GIFs (on NetBeans) - 2006-05-23, 18:53

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
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
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
integration Carbide.j 1.0 and Netbeans 5.0 ovjo12 Mobile Java Tools & SDKs 0 2006-02-16 08:48
INVALID MANIFEST message and Netbeans 4.1 swc43@blueyonder.co.uk Mobile Java Tools & SDKs 5 2006-02-10 01:40
NetBeans 4.1 Early Access Release Now Available rdemmer Mobile Java General 0 2004-10-22 15:52
Enhanced support for J2ME application development with NetBeans 4.0 Beta 1 rdemmer Mobile Java General 0 2004-08-25 12:42
Loading images - bug or no bug ? mcmcdonald Mobile Java General 2 2003-04-22 10:05

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia