Checking wether a JWindow has finished loading all widgets

Hi,
I'm writing a class that implements a splash screen. What I need to know is when the main app is fully loaded and ready to work so that I can close the splash. How can I check this? I use several Toolkit.getImage() calls, and as far as I found out I have no way of kmowing if the corresponding image has been loaded.
Has anyone done this ? Am I going about this the wrong way ?
thanks in ahead,
-Miguel

Thanks!! That solves the images problem!
But what about the rest of the widgets ? I may have a number of widgets without any images ... is there any way of knowing wether the widgets are loaded and running ?
-Miguel

Similar Messages

  • How to find out that sequence has finished loading?

    Hello,
    i have a custom C#-OPUI to load and execute testplans.
    I do this using these funtions:
    1. ApplicationManager.OpenSequencFile(filename)
    2. ???
    3.Command TestStart = axSequenceFileViewMgr.GetCommand(.......)
    TestStart.Execute(true)
    The question is now: How do i know that the OpenSequenceFile has finished doing everything?
    I need to know that is finished before i run the execute-command.
    Is there a specail final-event that i can check?
    Thanks for help
    Solved!
    Go to Solution.

    Hi jigg,
    Thanks for the info.
    In my sequence file, besides the main sequence, I also enabled "SequenceFileLoad" callback. In "SequenceFileLoad" sequence, I added some instruments initialization tests. The goal is to initialize the instruments only once when the sequence file is loaded. Therefore I need to know when the "SequenceFileLoad" is finished or when the sequence file has finished loading.
    My first idea is to use the event "axApplicationMgr_SequenceFileOpened", but I found that I will catch this event before the "SequenceFileLoad" execution finished.
    And then, I also found that together with the execution of sequence "SequenceFileLoad", there are 2 events in my C# code: "axApplicationMgr_StartExecution" and "axApplicationMgr_EndExecution" triggered. So I was thinking may be I can use "axApplicationMgr_EndExecution" to determine if the sequence file has finished loading. But the problem is every sequence execution will trigger these 2 events. The main sequence will also trigger these 2 events. So I needs to know the name/ID of the current executing sequence.
    So Is there a way to read current executing sequence name?
    Thanks and regards,
    0049

  • How can i check the unzip file has finished unzip process?

    i am using 7zip to unzip the file. java program can check the unzip file has finished unzip process?
    Edited by: rayray2008 on Feb 12, 2008 7:14 PM

    Downloading and burning Linux or Windows ISO images for example with a single flipped bit can cause system instability nearly impossible to track down, and not otherwise detectable. An MD5 checksum (OR SHA) check will quickly detect any such transmission errors. Not something anyone I know bothers to use unless it's important data. The temporary fix of changing the about:config setting, then expanding to full screen in downloads was working. But now, based on my interpretation of comments made on the authors Sourceforge page, Firefox has made updates that prevent the MD5 Reborned Hasher from working in Firefox at all. If that's true, I would really like to know the reason. With all this talk of NSA spying, I would think more people would be interested in making sure someone isn't tampering with their downloads. I have no idea. But I do believe the wonderful volunteers at Firefox need to figure out a way to make this valuable piece of security software whole again. Thank You.
    PS: For those needing to verify a file, you might want to try the "Microsoft File Checksum Integrity Verifier" kb841290 . It's old, but does large file MD5 from a command prompt.

  • Need to know when text has finished loading

    The following code loades text into a textfield the problem I'm having is the routine at the bottom runs before the text loads and the scrollbar disappears even when there's enough text to overflow the textfield.  How would I make sure the text has finished loading before running the code that enables/disables the scrollbar?
    mainText.htmlText = main[1];
    textFieldLength = mainText.text.length;
        if(mainText.length > textFieldLength){
            mainScroll._visible = true;
        }else{
            mainScroll._visible = false;

    I messed up the example.  All I really need to know is how can I determin when a dynamically textfield overflows.

  • Knowing when a page has finished loading

    Hi all,
    I've  produced  a small project that has  a  few tabs, each tab contains an IFrame UI, which loads a BW report.
    I've been asked to  add an indicator that should tell when the reports are finished loading.
    I have two problems:
    1. How  do I know when the frame has finished loading the url? I know I can use the OnLoad tag in html, but how can I edit the HTML WebDynpro produce?
    2. What kind of indicator can I use? I thought of two options - Putting the "Progress Clock" which WebDynpro uses when calling an RFC, and for that I need to know if it's even possible  to call that clock.
    The 2nd option I thought  of is using the ProgressIndicator UI, and just divide the 100% to the number of tabs, and change the percent value when each tab  has  finished loading the URL.
    I appreciate any help  that  you  could provide.
    Yaniv

    Armin Reichert -> I've tried what you suggested about the portal integration (I send parameter to an URL Iview, which changes the url), and it works great!
    Thanks.
    Noufal Kareem -> Because I use an IFrame UI which loads a BW report, I don't have an indication (The WD don't know / care if the page inside the frame was loaded.)

  • How to check  wether local system has blocked by firewall  from program.

    i am a user in my LAN area. i don't have admin rights. in our LAN few system has blocked by firewall others not blocked .
    how can i check wether local host is blocked or not by firewall from java network program ?.

    You can execute some kind of firewall util (if any) and parse output to receive configuration and check is address blocked or no. But if you have no admin rights - it will not help you.
    Actually there is no clear way to detect was packet blocked by FW or just lost somethere.

  • How can I tell when a JEditorPane has finished loading the document?

    Hi!,
    I've got a JEditorPane connected to a viewport and a couple of scrollbars, and I realy need to know when the JEditorPane has completed loading the document, so that I can decide whether to turn on or off the scrollbars.
    When I try to check the viewport.getView().getWIdth() right after calling setText() or setPage() the values come out wrong... is there an eventHandler that I can register ?
    thanks in advance
    -Miguel

    OK, I'm not an expert. But, why set the scrollbars manually? Would it not be easier to put the JEditPane in a JScrollPane with the scroll policy set to "as needed"?
    Ken

  • Slideshow movie has stopped loading all images and stalls

    I made a basic slideshow that loads and plays photos with comments from an xml file.  I've just uploaded some new photo's and edited the xml to include them but now flash stops while loading the series of photo's and just stalls.  Removing the files from the xml does not work either and now I have no movie.  Tried various was of uploading etc and nothing works, the movie runs fine in testing locally.  It's extremly anoying as it was designed to be very simple to update with new images via the xml.
    attached are all the relevant files

    Not sure but I think preloaded.  I have waited it stops halfway through. Take a look here www.nathanielmcmahon.com.
    here is the actionscript
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var _this = this;
    var blend:String = 'noBlend'; // disolve, fadeInFadeOut, noBlend
    var slideShowWidth:Number;
    var slideShowHeight:Number;
    var slides:Array = [];
    var speed:Number = 1;
    var slideContainer:MovieClip;
    var myShowXML = new XML();
    myShowXML.ignoreWhite = true;
    myShowXML.load("slideshow.xml");
    myShowXML.onLoad = function(success:Boolean) {
        if(success){
            _this.slideShowWidth = this.firstChild.attributes.width;
            _this.slideShowHeight = this.firstChild.attributes.height;
            _this.speed = this.firstChild.attributes.speed;
            _this.blend = this.firstChild.attributes.blendMode;
            for(var i:Number = 0; i < this.firstChild.childNodes.length; ++i ){
                var data:Array = [];
                data.url = this.firstChild.childNodes[i].attributes.url;
                data.title = this.firstChild.childNodes[i].attributes.title;
                slides.push(data);
            createContainer();
            loadImage(0);
        else{
            trace('ERROR (could not load slideshow.xml)');
    function createContainer() {
        _this.slideContainer = _this.createEmptyMovieClip("slideContainer", _this.getNextHighestDepth());
        _this.slideContainer._x =215;
        _this.slideContainer._y = 0;
    function loadImage(loadCounter) {
        var loader:MovieClipLoader = new MovieClipLoader();
        var listener = new Object();
        loader.addListener(listener);
        loadCounter = undefined == loadCounter
            ? 0
            : loadCounter;
        _root.myClips_array = [];
        listener.onLoadProgress = function(target) {
            _this.preloader.textfield.text = "Loading.. "+(loadCounter+1)+"/"+slides.length+" Completed";
        listener.onLoadComplete = function(target:MovieClip) {
            target._alpha = 0;
            _this.slides[loadCounter].mc = target;
            if(++loadCounter < _this.slides.length){
                loadImage(loadCounter);
            else{
                _this.preloader._visible = false;
                moveSlide(0);
        //trace('load: ' +_this.slides[loadCounter].url);
        var mc = _this.slideContainer.createEmptyMovieClip(loadCounter, _this.slideContainer.getNextHighestDepth());
        loader.loadClip(slides[loadCounter].url, mc);
    function moveSlide(slideCounter) {
        trace('slideCounter: ' +slideCounter+ ' blendMode: ' +blend);
        //debug.text += slideCounter+ ' - ' + slides[slideCounter].url +'\n';
        slideCounter = slideCounter < slides.length
            ? slideCounter
            : 0;
        var slide:MovieClip = slides[slideCounter].mc;
        var title:String = slides[slideCounter].title;
        var textfield = getTitleText();
        textfield.htmlText = slides[slideCounter].title;
        textfield._y = Stage.height -textfield._height - 5;
        //trace(textfield._height);
        if('noBlend' == blend){
            slide._alpha = 100;
        else if('fadeInFadeOut' == blend){
            new Tween(slide, "_alpha", Strong.easeOut, 0, 100, 1, true);
        else if('disolve' == blend){
            new Tween(slide, "_alpha", Strong.easeOut, 0, 100, 3, true);
        doLater(this.speed, function(){
            if('noBlend' == _this.blend){
                slide._alpha = 0;
            else if('fadeInFadeOut' ==  _this.blend){
                var fadeOut:Tween = new Tween(slide, "_alpha", Strong.easeOut, 100, 0, 1, true);
                doLater(0.5, function(){
                    _this.moveSlide(++slideCounter);
                fadeOut.onMotionFinished = function(){
                    //_this.moveSlide(++slideCounter);
                return;
            else if('disolve' ==  _this.blend){
                new Tween(slide, "_alpha", Strong.easeOut, 100, 0, 5, true);
            moveSlide(++slideCounter);
    function doLater(time:Number, delegate:Function):Number {
        var intervalId:Number;
        var _delegate:Function = function() {
            clearInterval(intervalId);
            delegate();
        intervalId = setInterval(
            _delegate,
            time * 1000
        return intervalId;
    function getTitleText():TextField {
        if(this['titleTextfield']){
            return this['titleTextfield'];
        var titleTextfield:TextField = createTextField ("titleTextfield",_root.getNextHighestDepth (),15,0,180,100);
        titleTextfield.autoSize = "left";
        titleTextfield.wordWrap = true;
        //titleTextfieldt.htmlText = "<a href='http://www.myspace.com/thomasjack'target='_blank'><font color=\"#a17d4f\">MySpace page</font></a>";
        titleTextfield.html = true;
        var tf:TextFormat = new TextFormat();
        tf.font = 'Arial';
        tf.align = 'left';
        tf.size = 10;
        tf.color = 0x999999;
        titleTextfield.setNewTextFormat(tf);
        return titleTextfield;

  • Determine when httpservice has finished loading

    Hi, I have a little dilema, I get the list of countries for a
    form I have, from a database, but I can't set the selectedindex
    because of it's delay loading the data, is there any way to know
    when the loading of data is complete and execute a function
    then?

    When you define your service request put a result handler in
    there. Flex will call your result handler when it's finished.

  • Determining when Loader is finished loading

    How can I determine when myLoader has finished loading all
    the thumbnail images loaded into it using XML. The
    contentLoaderInfo 'complete' event fires every time an image is
    loaded in. I need to know when all the images have completely
    finished loaded. Ultimately I need to trace the 'height' property
    of myLoader's parent container_mc. I keep getting '0' as a result.
    Thank you!

    What I would do - is build your array of elements (push) an
    element on the array for every Image you have to load. Then all of
    your Image Loader COMPLETE events should be directed at one
    function. This function should just increment a counter. In this
    function it should then say if counter >= array.length then all
    is loaded and we can resize the element(s) or find out their real
    dimensions.

  • Checking if Report has fully loaded in Java Project

    Morning All,
    I hope this isnt another one of my daft questions, but how can I put a listner or determine when a report
    has fully loaded.
    Im testing out the "Crystal Reports Java Project" and am trying to determine when the report has fully
    loaded so that I can dispose of it and close the Frame.
    So far I am not having any luck, I have got some listeners checking when the window looses focus
    and such but that still doesnt tell me when the report has finished loading.
    I also tried useing
    viewerFrame.reportViewer.isBusy()
    but I am not happy with this, as sometimes it returns the correct "true" result while its loading, but then other times it says "false" when clearly I can see the report is still loading.
    A post I found somewhere said that the only way is to determine if the total page count in known, but
    I have not worked out how to do this yet, or atleast cant find how to do this.
    So..... any ideas how I can be sure the report is loaded so that I can programmaticly export the report
    and then close everything up.
    Cheers
    Darren

    If you are programmatically exporting the report, typically the code would look as follows:
    reportClientDoc.open(REPORT_NAME, 0);
    ByteArrayInputStream byteArrayInputStream =
    (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
    reportClientDoc.close();
    As you can see there is no need to check to see whether the report has finished loading, because the ReportClientDocument deals with that process behind the scenes, and won't close the report until the report has finished processing.

  • IPad Safari not loading all images in website

    Besides iOS 4.2.1 slowing things down and frequently crashing apps. I've been having problems with websites I browse with lots of large images. The iPad has problems loading all the images on a single page with bluebox ? coming up instead of the actual images. Reloading and site does nothing to fix it. Browsing done on WiFi but no problem in desktop safari on the same WiFi network.

    I do not have an iPad, but this url has been reported to me as having this issue:
    www.ironeagletactical.com/products
    The problem is occurring on the last products on the page.

  • How to tell JEditorPane finishes loading a text page?

    I have this code to identify when JEditorPane has finished loading and html page. However it does not work for a text file. Does anyone know how this can be resolved?
    public void propertyChange(PropertyChangeEvent e)
         if (e.getPropertyName().equals("page"))
              // add code here
    Thank you for your help

    Try using document property instead of page property. If your requirement is a synchronous load of a document on JEditorPage, do something like this:
    /* extend HTMLEditorKit */
    public class HTMLEditorKit2 extends HTMLEditorKit{
      public Document createDefaultDocument(){
        HTMLDocument doc = (HTMLDocument)(super.createDefaultDocument());
        doc.setAsynchronousLoadPriority(-1); //&#21516;&#26399;&#12525;&#12540;&#12489;&#12434;&#25351;&#23450;&#12377;&#12427;
        return doc;
    //reguster it
    JEditorPane.registerEditorKitForContentType("text/html", "HTMLEditorKit2");
    JEditorPane jep = new JEditorPane();
    jep.setEditorKitForContentType("text/html", new HTMLEditorKit2());

  • Knowing when a swf loaded in MovieClipLoader has finished animating

    Hi,
    I'm trying to create a wrapper written in ActionScript2, which loads a second AS2 swf then when this loaded swf has finished animating the wrapper will load a second swf.
    This is the code I have to load the first swf:
    this.createEmptyMovieClip("containerClip",this.getNextHighestDepth());
    var movLoad:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadProgress = function(thisClip:MovieClip)
         thisClip.onEnterFrame = function()
              trace("CurrentFrame:" + this._currentframe);
              //trace("TotalFrames: " + this._totalframes);
              if (this._currentframe == this._totalframes)
                   //trace("true");
                   movLoad.loadClip("number2.swf",this);
              //trace("false"); 
    movLoad.addListener(myListener);
    movLoad.loadClip("number1.swf",this.containerClip);
    I can get the total number of frames from the loaded swf, but how can I check when I reach the total number so I can remove the first swf and load the second one?
    Stephen

    Hi,
    This is what I have so far:
    this.createEmptyMovieClip("containerClip",this.getNextHighestDepth());
    var movLoad:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadInit = function(thisClip:MovieClip, loadedBytes, totalBytes)
         this.onEnterFrame = function()
              trace("CurrentFrame:" + thisClip._currentFrame);
              trace("TotalFrames: " + thisClip._totalframes);
              if (thisClip._currentframe == thisClip._totalframes)
                   movLoad.unloadClip("C:/development/projects/CMSwfLoader/assets/Yahoo_Smart_Banners_Loans_300x250_v2.swf");
                   movLoad.loadClip("C:/development/projects/CMSwfLoader/assets/300x250_2p_12Mb_tipografica.jpg",this);
    movLoad.addListener(myListener);
    movLoad.loadClip("C:/development/projects/CMSwfLoader/assets/Yahoo_Smart_Banners_Loans_300x250_v2.swf",this.containerClip);
    But I found that the onEnterFrame is not called at all, I want it to be called on the movieClip that has been loaded, so I can tell when it has reached the last frame. Is the problem because I'm listening for onLoadInit?
    Stephen     

  • HT1657 My movie didn't down load all the way until 2 pm.  I need to finish watching it.  It's only 11 am.

    My movie didn't down load all the way until 2 pm.  I need to finish watching it.  It's only 11 am. It is gone.

    It's a known issue and has been discussed numerous times. If you need quick access, you can get beautiful silent from the market for free which will allow you have a widget on your homescreen for silent mode.

Maybe you are looking for

  • Fix .gif to background image

    Hi,I hope someone can help me with this. Here is what I am trying to describe www.justinmettam.com I want the animated gifs vertical position to stay just bellow the horizon line and the horizontal position to stay in the middle of the frame so when

  • Exporting file as .doc doesn't show attached image

    I need to create a combined cover letter/resume as a Word doc. So I created a file in Pages with my cover letter and attached a pdf resume image. I created the resume in Illustrator and then saved the Illustrator file as a pdf. This image shows up fi

  • Report runs fine from CR 2008 Developer, but will not run once published

    I have BO RAS12 (version 12.3.0.601) installed on a Win2008 machine.  This is the "backbone" for a proprietary Reporting Suite for a Lawson ERP system. I have one report that takes awhile to generate due to the number of records and complex summaries

  • Services missing from right click menu?

    I was trying to install some services that I created using applescripts and ThisService. The problem I'm having is that Services is not available in the menu when I right click on a folder or file. Looking under Keyboard in the system preferences, I

  • MarshalException-Is Enumeration a valid arg type in Session Bean method ??

    Hi, I have a session bean method (EJB1.1) that takes Enumeration as one of the arguments. When I calls this remote method, I am getting MarshalException. Is Enumeration is valid argument type for remote methods in EJB 1.1 ?? The enumeration is return