Why does my Java application load images so slowly?

Hi all,
I am new here and know very little about Java. I am a meteorologist and have to load all kinds of weather model images in Java applications. On some computers (like my wife's laptop) the Java application opens and loads up the 40+ images and then loops them for viewing....taking about 30 seconds....no problem. But on most of the computers I have to use it takes up to 5 minutes or more! Here is a link of a typical sequence of images I would look at....
[http://www.nco.ncep.noaa.gov/pmb/nwprod/analysis/namer/gfs/12/index_slp_su_loop.shtml]
The ISP and bandwidth can be exactly the same, but something...a setting or a platform is different on the computer that causes it to slow WAY down. It is very aggravating because I have looked high and low across the Internet looking for a reason.
Does anyone have a possible reason and/or solution to this problem?
Thanks,
Eddie44

deviance wrote:
Ive create class extends JFrame I'm betting that extending JPanel would have been a much better idea. You didn't add anything to JFrame from your new class.
and its takes 4 seconds to create new object...(and there somthing like 4 loops...)4? Oh, my. A prime number would be faster.
how can i make it run faster?Give it some HGH or steroids. It worked for Barry Bonds and Roger Clemens and Marion Jones; maybe it'll work for your code.
%

Similar Messages

  • Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?

    iPLANET ISSUE
    Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?
    CODE
    ServletContext context = mpiCfg.getServletConfig().getServletContext();
    // Debugging
    out.print(context.getServerInfo());     // Get server info
    out.print(“getRealPath = ” + context.getRealPath("WEB-INF/xsl/RedirectToAcs.xsl"));
    String strXslName = "RedirectToAcs.xsl";
    InputStream is = context.getResourceAsStream("WEB-INF/xsl/"+ strXslName);
    TRACE FROM THE LOG
    [26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]getServerInfo() = iPlanet-WebServer-Enterprise/6.0, getRealPath() = C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl\RedirectToAcs.xsl
    [26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]strXslName = RedirectToAcs.xsl, is = null
    [26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][16]ResourceAsStream is null
    [26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][30]Problem reading XSL file.
    DIRECTORY DUMP
    C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl>dir
    Volume in drive C has no label.
    Volume Serial Number is 9457-EBF4
    Directory of C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl
    07/22/2002 05:54p <DIR> .
    07/22/2002 05:54p <DIR> ..
    07/22/2002 05:54p 3,086 RedirectToAcs.xsl
    07/22/2002 05:54p 3,088 Response.xsl
    2 File(s) 6,174 bytes
    2 Dir(s) 1,797,405,696 bytes free

    I think there's supposed to be a forward slash before WEB-INF.
    InputStream is = context.getResourceAsStream("/WEB-INF/xsl/"+ strXslName);

  • Why after ccleaner mozilla not load images in some websites. How fix it?

    Why after ccleaner mozilla not load images in some websites. How fix it?

    You can use these steps to block images from a specific domain:
    * Open the web page that has the images in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If you want to block images then place check-mark in the box "<i>Block Images from...</i>" to block the images from that domain.
    You can set the permissions for the domain in the current tab in Tools > Page Info > Permissions

  • Why does the Java API use int instead of short or byte?

    Why does the Java API use int if short or even byte would be sufficient?
    Example: The DAY_OF_WEEK field in Calendar uses int.

    One of the point is, on the benchmark tests on Java performance, int does far better than short and byte data types.
    Please follow the below blog talks about the same.
    Java Primative Speed
    -K

  • Why does message say application components are missing when trying to open Photoshop?

    why does message say application components are missing when trying to open Photoshop?

    The probable causes are:
    A bad, or incomplete install
    Inability of the program to access the location of those components
    Deleted files, that are required for those components
    What is the exact text of the error message?
    Good luck,
    Hunt

  • Application: Loading images

    How do I find the directory where the application is running from? With applets I use getDocumentBase(), but how do I do it with an application? I need it for loading images and other files to use within the application.
    Audun Steinholm

    private String iName = ".\\spr\\Dark.gif";
    this points to the file name dark.gif, which resides in the sub directory Spr, which resides in the directory from which the application was run.
    for instance, if i ran the executable jar from C:\programs\java
    it would look like
    c:\programs\java\program.jar
    C:\programs\java\spr\dark.gif
    does that make sense?

  • Why does my Photos application show all of my pictures as blurry?

    The built in Photos app just recently started to display every one of my photos as blurry. Why does it do this? I have tried closing out all other applications, restarted the Ipad itself, and then opened the Photos app again. However, the pictures still appear blurry.
    T

    Normally in most cases such as yours, reindexing Spotlight will correct the problem.  Try it again.
    http://support.apple.com/en-us/HT201716
    This seems to be a common problem with Yosemite.
    If that does not correct the problem, you may try SMC and PRAM resets:
    http://support.apple.com/en-us/HT201295
    http://web.archive.org/web/20140711222006/http://support.apple.com/kb/ht1379
    (This is a guess on my part.  No harm can come to the MBP performing these resets.)
    The last option is a reinstall of the OSX.
    May I assume that the overall amount of data is correct?  If not, then we will have to look at OmniDiskSweeper and Grand Perspective.
    Ciao.

  • Why does ppi matter for web images?

    Hello
    When placing an image in my (web/pixel) project the resolution is dependent from the set ppi.
    When I create a new document for web, then logically only the pixels matter. Nonetheless there's a ppi field, why? And depending what value it has, placed pictures (file > place or drag&drop from Windows' explorer) get resized instead of the wanted 1:1 resolution.
    1 pixel should remain 1 pixel when working with in pixels.
    Try it out:
    Create a new document with Full HD resolution (1920x1080 pixels), set ppi to 10.
    Import a Full HD picture (Blu-Ray screenshot whatever) and it's mini-sized.
    My screen resolution is 59 ppi (I use my 39" TV as monitor) and this is set in the Photoshop preferences (in case I do some print stuff that I get a 1:1 view if wanted). If there was any logic behind the pixel-ppi-placing thing, then this set standard monitor ppi should bring me a 100% sized picture... but it doesn't. Only when the ppi is set to the fantasy value of 72 I get a 100% sized placing.
    This can be disturbing and is very annoying when starting a new project by opening an image that does not come with 72 ppi by default (my Canon camera makes 180 ppi JPEG photos)  and placing new pictures in this project. They get opened in wrong sizes, in my case largely upscaled, with no way to correct it but guess-scaling it down.
    Bug?
    Pls pls fix it.
    Ppi has nothing lost in pixels-only projects.
    The only way that works is to open all single images in Photoshop as tabs, and then drag&drop from within Ps. -.-
    Regards
    Mopsi
    Example screenshot: http://www.m-i-u.de/images-i83580bxvogj.jpg
    The yellow framed layer is a image from my camera, opened in Photoshop CS6 extended. 3264x2448 pixels (180 ppi).
    The green framed layer is a screenshot from a movie, drag&drop from the explorer. 1920x1080 (normally) unwanted upscaled here.
    The red framed layer is a screensot as well, but drag&dropped from a tab within Photoshop. It remains in its original resolution of 1920x1080.

    I'm wrong and your right. I just did some testing and Photoshop does indeed interpolate the lower resolution 600x400 72DPI image is  up size to match the higher resolution document document size during the place process. I just assumed Photoshop would preserve image quality and not interpolate the image.    As you have shown it does interpolate the image which greatly lowers the image quality of re-sized low resolution image.
    This shows you should not use Photoshop to merge images into a composite if they have greatly different resolutions.  I don't have a problem there for I never use "save for web" to save images to be displayed on displays from the web or my machine.  I use Fit Image and save as, or a Image Processor script that uses Fit Image to re-size and uses save as.  The leave all my images files resolution setting unchanged.   For some reason Save for Web changes all jpeg files it saves resolution  setting to 72 DPI even if they are 8MP images for high resolution displays..
    During testing I also tried using Photoshop's script Load Files into Stack instead of using Place.  That script works the way I assumed Photoshop Place would work.  Images layer are not interpolated they remain the correct number of pixels and the image quality is not is not changed.. The image layer are normal layers but can be converted to smart object layers however the object would be normal layer not an image file.
    When you use Place you get
    It also possible to undo Photoshop's Place scaling with a simple calculation.  Divide the image layer's original dpi by the document's dpi here there are three layer that did not start at 300dpi. two started out as 74dpi image file the other a 500dpi image file.  72/300=.24 = 24% the other 500/300=1.66666 = 166.66%
    all you need do is change the associated layer's image transform width and height scale from 100% to the calculated percents
    The only time I set document to 72DPI resolution is in Photoshop Scripts so I can calculate a font size  for a charter sting so it will fit the canvas size.  Photoshop Text Tools seem to be tied to 72DPI resolution.  Once I add the text layer I restore the document DPI resolution back to its original setting.
    So when it comes to Photoshop all files use in a project should have identical DPI resolution for best result when making composites.    My image files are either RAW files which have no DPI for they are not RGB image files. Or RGB Image files that have a high DPI resolution. I process images for print. Image files DPI resolution is meaningless when if comes to Display Screens.  All that matters is the number of pixels a display can display and the number of pixels in the image. Even images I re-size for display screens DPI are high for I do not use "Save for Web". I see no good reason to strip metadata and change resolution to 72DPI.  I tend not to interpolate image except the ones I save to be displayed on a display.  I change Print size by changing the DPI setting without resample.  My Epson 4800 inkjet printer has no problem printing high resolution pixel I see no reason resample my camera 16MP image down in size just to print at 300dpi.  If I want to a single 6"x4" print I see nothing wrong printing it at 816DPI.  My eyes can not resolve down there the printer can.  However when Printing on Roll Paper many 6"x4"  the composite document I create via a script has a 300DPI resolution and the image layers are resized to be 6" x 4".

  • Why does CS6 no longer export images out at their boundary/artboard size? Am I missing something?

    I recently upgraded to Illustrator CS6, and suddenly clients have been remarking that the file sizes are wrong or there's "a ton of white space around the logo." I checked it out, and sure enough, it appears that whenever I export a file, it does not crop it to the image boundary like it used to, even if I had manually adjusted the artboard to fit closely around it. After a bit of trial and error, I discovered that I have to click "Use Artboards" on the Export dialog each time. The super annoying part is that it doesn't STAY checked, AND it adds a number to the end of the file name. So I often forget to check it (not used to the extra step in workflow), and if I make a modification to the file, I can't just export over the previous version. It requires me to export it, go find it in finder, and manually delete the extra number off the file name. Ugh! The extra steps are adding way too much time when I'm saving out many files. I'm about ready to go back to my previous version just from this alone.  
    Help! Am I totally missing something? Is there an easier way to do this? It seems like the addition of this feature would only cause extra problems...

    I did a quick test of this, and my CS6 Ai does indeed export to the exact size of the artboard, even if there are elements outside this boundary. Imo, this is an improvement over earlier versions: if you had some art hanging over the artboard edge in CS5, the export size would be larger than the artboard, to include even hidden paths. But CS6 is an improvement in this regard. Yes, it would be nice if your choice of "use artboard" was remembered or a choice in the prefs, but this is a small inconvenience, imo. Regarding the addition of -01, etc. to each successive export, why not just send the latest export to your client? You can delete the earlier versions later.
    Another plus: if you run in 64-bit, CS5 is slow on opening each file, which is thankfully not so with CS6.
    DS

  • Why does my high res photoshop image appear blurry when placed in InDesign and Exported as PDF?

    Hi there,
    I have a problem I've been trying to solve for days but just can't find the answer anywhere on the internet.
    I have a large, good quality photoshop file (2268 x 979 pixels, resolution 300 pixels per inch). When I place it into InDesign, the image appears OK (I've changed my display settings to HIGH) - I then resize it in InDesign to 10% and the file still looks great! Then, when I export it as PDF (high quality print) it looks blurry.
    Does anybody know why? The strangest thing is, I've placed other photoshop images in the same InDesign file and they look crystal clear. It is just this one I am having trouble with. I've saved it in the same folder as the other pictures, I've tried placing it as psd. , jpg. , photoshop pdf, png. everything...
    The image looks great in both photoshop and indesign, only when exported as pdf it looks awful.
    Any help will be greatly appreciated,
    Many thanks in advance!
    Weronika

    It's probably the extreme reduction -- you're throwing away 90% of the image pixels and interpolating, and then using jpeg compression on top.

  • Why does Photo Booth provide 'mirror' images?

    I took a number of pictures of my friends with Photo Booth and realised that something was wrong. When I looked closer I noticed that all the photos had been reversed and were in fact mirror images of the actual person. Why is this? I had to use the "Flip Photo" command to make them normal. I would suppose this is how the original iSight works as well although I have never tried it.
    Then I noticed that there is an "Auto flip all photos" command, which of course is what I choose. But it is beyond me why this is not the default in the first place.
    When you use a camera with a timer on it to take your picture, it does not give you a mirror image, it provides you with the true image. iSight should also IMHO.
    Griff

    It's because it's more natural for people to see themselves in a mirror while getting ready for the picture. Thus if they lift their right hand the hand on the right side of the screen would appear to rise. If the picture suddenly flipped after taking the picture, this could be confusing, which is why it isn't the default, but simply an option.

  • Why does my iPhone randomly resize images?

    Suddenly I'll have a string of photos that are only 640x480. The only thing I've down is download all of my images via Image Capture but it's random and does not resize all of them. Then I try to redownload them only to find they are small on my iphone too. I only use the apple camera to take these photos and they have not been sent, edited, or opened with any other app.
    I have an iPhone 4s but this has happened on my older phones as well.

    It could be that someone is using FaceTime to call you!  Open the phone application, click on "Recents" on the bottom, and see if that's the case.

  • Why does not java support raw sockets?

    Java does not have support for raw sockets, that means it cannot receive the packet header, just the payload data.
    But the header data of an ICMP packet consists of 20 bytes, and you can still write single bytes in Java, so why isn´t is possible to write a header for an ICMP packet in Java?
    Can someone explain how it all works?
    Thanks!

    You can do raw sockets with third party libraries. They won't be pure java - but you didn't really expect to do raw sockets on your cell phone or TV set top box, or spy and spoof someone's network using an applet.
    The FAQ for one such library hints what kind of a mess raw sockets are due to differences in common operating systems; see http://www.savarese.com/software/rocksaw/

  • Why does this spam site load every time I open a new tab?

    Every time I open a new tab in Firefox, it loads this specific search engine. This has never been my Home Page, and my preferences are set to show a blank page when I open a new window or tab.
    Why is this happening? What can I do to fix this?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Why does Sun Java 1.4.2 not run in IE (Windows XP)?

    Hi. I hope someone can help me. I have installed Windows XP SP1a and straight away, I removed MSJVM from my system using Microsoft's own Java Removal Tool (1.0a?), as it does the most thorugh job of removing the dated technology from the system.
    However installing Sun Java into the system becomes a problem. It installs fine, with no errors, the ActiveX modules are installed into IE and the Sun Java option is present under Advanced Internet Options, however any Java applets embedded in HTML (eg www.jpilot.com/chat.html) will not load at all. I will just get the white box with a cross, the standard placeholder from IE when it can't run the embedded object. Is Sun Java dependant on a certain old MSJava file/component being installed?

    I am unable to resolve this. The error shown by java console is:-
    Java Plug-in 1.6.0_02
    Using JRE version 1.6.0_02 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\955995
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class apXPDropDown.class not found.
    java.lang.ClassNotFoundException: apXPDropDown.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Plz help.
    Some other applets are running fine but one particular fails while loading.

Maybe you are looking for

  • Unable to descripe the table and unable to drop the table

    Hi, I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script. Some how while I am trying to drop the table manu

  • OC4J JSP Debugging not working for all the jsps

    Hi, Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes: 1) global-web-application.xml is modified Changed the attribute development="true" in orion-web-app Added the below in

  • IMessage: Can not verify phone number

    I can login to iMessage using my AppleID, but not my phone number. It keeps saying "Waiting for activation". I have tried these without any luck: 1. Hard reset : home + power button 2. Reset the network configuration 3. Turn off and on again iMessage

  • How  to transfer data using Lsmw with Recording...

    hi, Please let me know .How to use Lsmw to transfer data using recording. Thanks, Lawrence.

  • Mac Mini won't go to sleep anymore

    Had my Mac mini for a while now..and its never had a problem automatically going to sleep (after 15 mins). Within the last few weeks it never sleeps on its own. I can manually cause it to sleep, which works fine. Recent things done to this mac includ