Opening a window from a taskbar icon lags application!! PLZ HELP!

Hey, everyone!
I'm trying to have an application icon in my taskbar, that once I click on it, will open a new window.
That's pretty simple to do, so i thought, but then I came across something wierd!!
When I open the window with the click on the icon, the entire application (all other windows too) really lag!!
And there is no increase in CPU or MEM usage, or anything!
If you close the windows, the application still lags once you open a new one.
And the wierdest thing is, that if you open the window with a right-click, and clicking on the menu item which shows up, no lagging is caused whatsoever!
I should note that this only happens when the window contains the RichTextEditor component. Maybe it's a specific problem with the component, or maybe it's a general performance issue, and the RichTextEditor is just really 'heavy'. I dunno....
Anyways, here is the code. Hope you guys can help!!!
EditorWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300">
     <mx:RichTextEditor/>
</s:Window>
App.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:local="*"
                            creationComplete="initIcon();" applicationComplete="close()">
     <fx:Script>
          <![CDATA[
               import flash.display.NativeMenu;
               import flash.display.NativeMenuItem;
               import flash.events.Event;
               import flash.events.MouseEvent;
               import flash.net.URLRequest;
               private function initIcon():void
                    var icon:Loader = new Loader();
                    var iconMenu:NativeMenu = new NativeMenu();
                    iconMenu.addItem(new NativeMenuItem("New")).addEventListener(Event.SELECT, onClickHandler);
                    if (NativeApplication.supportsSystemTrayIcon)
                         NativeApplication.nativeApplication.autoExit = false;
                         icon.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoadComplete);
                         icon.load(new URLRequest("icon.gif"));
                         var systray:SystemTrayIcon = 
                              NativeApplication.nativeApplication.icon as SystemTrayIcon;
                         systray.addEventListener(ScreenMouseEvent.CLICK, onClickHandler);
                         systray.menu = iconMenu;
               private function iconLoadComplete(event:Event):void
                    NativeApplication.nativeApplication.icon.bitmaps =
                         [event.target.content.bitmapData];
               private function onClickHandler(event:Event):void
                    new EditorWindow().open();
          ]]>
     </fx:Script>
</s:WindowedApplication>
Thanks in advance to anybody who read this post (:

Or use a more cross-platform capable solution such as that found here: http://ostermiller.org/utils/Browser.html

Similar Messages

  • Opening HTML window from LabVIEW

    Please,help. How can I open HTML window from LabVIEW?

    Hi A Kirsanov,
    I posted this to bmihura, but it's probably more applicable to you.
    Hope it helps
    Charlie Rodway
    Test Design Engineer
    Rolls-Royce Controls and Data Services Ltd
    Attachments:
    WebBrowser.vi ‏21 KB

  • Opening secondary window from javahelp window activated from modal dialog

    hello,
    has anyone had this problem before? I open javahelp from a dialog with setActivationWindow(modalDlg), but then, opening secondary windows from that javahelp appear hidden, unreachable because of the modal windows (the dialog and the help window). is there a solution for this?

    Christian,
    This problem is occuring on 2 machines which has Java 1.5. But rest of the machines which has 1.5,1.6,1.4 are supporting modal windows. So not really sure whether its a browser issue or JRE issue or it is how the modal windows behave in an inconsistent way. Really need a solution for this problem as early as problem.
    Regards,
    Rajesh.

  • Safari 5.1.1 opens all windows from previous session

    Since updating to Safari 5.1 (maybe 5.0 not sure) Whenever I begin a new session (open Safari from the closed state), it opens ALL the windows I had previously viewed in the previous session! Now, I can plainly see a "button" to do this trick in the History Menu (Open All Windows From Last Session), but I'm NOT clicking on that menu item. It happens exactly when I open Safari. I've looked everywhere for a preference or option to turn that "feature" off, but, Alas, I have not found anything to do so. Mind you, these are NOT windows I had open all at the same time in my previous session, just that I may have been searching for something and either had a bunch of windows open to compare items or used the little tiny red button in the upper left hand corner of the window to close that window and then sometime later, opened a new window with a different URL. Once, it opened so many windows that it ground the dual CPU's to a near halt. I had to shut it down with the power button because "Force Quit" wouldn't come up. This has really been agravating. 
    I'm desparate. Any ideas on how to fix this would be very appreciated.
    My equipment is: 24" iMac 2.8Ghz Core 2 Duo / 4GB RAM / 750GB HD purchased in 2007 OS X Lion 10.7.2.
    Thanks,
    Kevin

    Thanks, that is much more descriptive then the discussions message above.
    How To Disable Lion's 'Resume' Feature
    Wednesday July 20, 2011 7:00 pm PDT by Jordan Golson
    Resume is one of the main new features to OS X Lion, one taken directly from iOS:
    Now apps you close will reopen right where you left off, so you never have to start from scratch again. And when you install software updates, you no longer need to save your work, close your apps, and spend valuable time setting everything up again. With Resume, you can restart your Mac and return to what you were doing — with all your apps in the places where you left them.
    Now, this feature might be all well and good, but what if you want your Mac to behave like it did in Snow Leopard? Resume can be easily disabled, but the option is fairly hidden.
    Head to System Preferences and select the General tab. At the bottom of that page is a checkbox labeled "Restore windows when quitting and re-opening apps." If you uncheck that, your apps will continue to behave as they did in Snow Leopard.
    Hat tip OS X Daily.

  • HT1296 How to upload the ringtone (transfer) from my normal computer to Iphone4. plz help me

    How to upload the ringtone (transfer) from my normal computer to Iphone4. plz help me

    Howdy sisku,
    I've found another discussion has outlined this process.
    How do I transfer a ringtone on itunes into a ringtone which my iPhone uses?
    https://discussions.apple.com/thread/4713326
    Cheers,
    Allen

  • When i try to buy 50k Coins in Jet Pack Joyride (3.99$) it says "Error al comprar" (Im from Costa Rica but my account is from USA) IDK what to do plz help me

    When i try to buy 50k Coins in Jet Pack Joyride (3.99$) it says "Error al comprar" (Im from Costa Rica but my account is from USA) IDK what to do plz help me.

    Hello Dovahkiin03,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iTunes Store: About In-App Purchases
    http://support.apple.com/kb/ht4009
    Best of luck,
    Mario

  • Safari 6.0, what happened with option to open with windows from last session?

    Made the upgrade from Snow Leopard to Mountain Lion and realized that I don't longer have the option to open Safari with windows from last session (Preferences->General). The option has been removed:

    They don't. I can access them by history ->reopen all windows from last session, but that's not what I want.
    Does anybody else have this problem or is it just me that lost that option on Preferences -> General?

  • I don't want Safari to re-open all windows from last session; can't make it stop. Set Safari preferences to new window and new tab open with blank page, but it won't.

    P.S. Also cleared cache and History. Running OS 10.7.4 and Safari 5.1.7.

    I hate this "feature", and it is another example of Apple taking functionality (and choice) away from the user. In this article:
    http://support.apple.com/kb/HT4550
    there is a description of it.
    Resume in OS X Lion
    When you open Safari in Lion or restart the Mac, Safari automatically restores the open windows and tabs from your last browsing session, so you can continue right where you left off.
    Tip: To open Safari without resume, hold down the shift key (⇧) as you open Safari. Safari will then open with the options you selected in the "General" tab of Safari preferences, options like your homepage.
    In Mac OS X v10.6 and Microsoft Windows, you can choose to have Safari automatically restore your windows in the "General" tab of Safari preferences.
    99 times out of 100, I DON'T want to restore all the windows from my last browser session. It makes zero sense for them to take the checkbox out of the General tab of the Safari Prefs.

  • How can I open new window from a link in another window?

    Hello everyone!
    Can anyone help me with my problem. I need to open a child window from a link in the mother/master window. Actually, the link that would open the child window is directed to a servlet that retrieves data from the database. The data will then be displayed in the child window. I don't how to open a new window with the data retrieve (thru the servlet) displayed in it. I'm using model 2 architecture (Servlet-JSP).
    Thank you in advance and more power!
    nicoleangelisdaddy
    [email protected]

    Or you can use something like this,
    Click and in your test()
    <script language="javascript">function test()
          document.form_name.target="_blank";
          document.form_name.action="/test/servlet/LoginServlet";
          document.form_name.method="post"
          document.form_name.submit();
    }</script>
    Here "/test" is your application context path.
    If you want to open the link in the named window then use,
    document.form_name.target="your_own_name";

  • Open popup window from non graphic window

    Hi All,
    i'm trying to open a popupwindow of one of my classes, but i
    have no parent reference in the current class that i'm working
    with, how can i refer to the main application window?

    If you have a model for your application state, use this:
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="this.onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private function onApplicationComplete():void
    // Component map
    this.model.map["app"] = this;
    ]]>
    </mx:Script>
    </mx:Application>
    You will be able to refer to this.model.map["app"] as the
    parent of your popup window from anywhere in the application.

  • How can I open two windows from one submit?

    Is there a way to open two browser windows from one click of a button to submit a form? I have a button on a screen that does some processing of the data and then generates a PDF file with the output. I would also like it to run a report and show the output of that in a separate window. I realize that using regular HTML with a target of "_blank" on the form, you can have the results show in a new window, but how can I launch a second window from a single button click, if possible?
    Thanks!

    It can be possible using two different popUps instead windows. Onclick on the button just make vissible true of those two popup in the event method, before making visible true, do the business operation to show on the popups. So simple :)
    Note: Popup has modal=false attribute
    Edited by: man_ish on Jan 12, 2010 10:13 AM

  • Opening  browser window from Java Swing

    Hi
    I am trying to open
    1) a word document on the click of a button from a Java-Swing based application running only on windows based system.
    Currently the code uses 'rundll' and calls 'a.doc'
    it requires that the application be installed and run only from a specific location in the windows' system.
    i would like to modify the code in one of the following ways
    1) open the word doc irrespective of its location and that of the executable jar which is trying to open this file
    2) upload the word document to a website and direct the application to open that webpage on button click, etc
    i believe that the latter may be simple but i do not have any idea about how to go about it
    i would appreciate some guidance about it.

    Hi,
    I was trying to run the code, for embeding the mozilla web browser in my java application which is running at linux fedoracore2. I set all the environment variables, like MOZILLA_FIVE_HOME and LD_LIBRARY_PATH. I can able to compile successfully but if i run the code, i got the error message like this
    Exception in thread "main" java.lang.Error: Untranslated exception
    at sun.nio.ch.Net.translateToSocketException(Net.java:63)
    at sun.nio.ch.Net.translateException(Net.java:79)
    at sun.nio.ch.Net.translateException(Net.java:85)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:61)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
    at org.jdesktop.jdic.browser.MsgClient.<init>(Unknown Source)
    at org.jdesktop.jdic.browser.NativeEventThread.<init>(Unknown Source)
    at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
    at IEInJava.main(IEInJava.java:8)
    Caused by: java.net.SocketException: Unresolved address
    at sun.nio.ch.Net.translateToSocketException(Net.java:55)
    ... 8 more
    Caused by: java.nio.channels.UnresolvedAddressException
    at sun.nio.ch.Net.checkAddress(Net.java:30)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:115)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    ... 5 more
    Thats the error.
    I could not find out, where i had made the mistake, i need help. Any suggestion and comments are most welcome. Thanks.

  • Opening one window from another

    I've created a method which opens a window that takes an input from the user and then closes and returns the input to the main program. When I called this method from a test program it seemed to work perfectly but when I tried to call it from my main GUI via an action listener on a button it just seems to crash.
    So my input window would wait until the return button was pressed, I set up a while loop which delays the program until a flag is changed by pressing the return button. As far as I can tell it is this while loop which is causing the problem. Has anyone got any idea why this method works with my test program but not through a GUI? I expect that there is also a better way of retrieving this information from my input window and that I have probably just forgotten something very simple. If anyone has got any suggestions I would be very grateful.
    Thanks, Tom

    Hi Tom,
    the while loop is not very suitable for this situation.
    The best solution, in my opinion, is to attach ActionListener to the 'submit' or 'ok' button of your child window, from the main GUI.
    Let's say A is your main GUI class and B is the JDialog (better if modal) that should return the value. Proceed as following:
    1. in the class B implement a method that attaches a listener l to the Ok button
    public void addOkListener(ActionListener l)
      okButton.addActionListener(l);
    }2. in the class A, create a ActionListener object like:
    ActionListener al = new ActionListener()
      public void actionPerformed(ActionEvent)
          do whatever you like, this code is executed when the user clicks
          on the button OK in the JDialog.
          For example you may want to retrieve the value from the JDialog:
          System.out.println(b.getMyValue());
    }3. in the class A, attach the listener to B:
      b.addOkListener(al);Antonio :)

  • Can JavaHelp open Main Window from an HTML Topic?

    Hi all,
    I am working on opening the main window from an HTML topic. Is it possible to do? Right now, what I can do is to make a link in the html page open the secondary window with navigation pane.
    Also, can I set different textColor(param name of object tag)beside the one mentions in the JavaHelp System user's guide?
    More question. When I give the textColor as "green" which is the color I can set according to the JavaHelp System user's guide in the object tag, the help system displays different shade of green, lime. I tested this settng in IE/Firefox. It renders a default green which is what I need. How can I make the javahelp renders properly?
    Any help would be appreciated,
    thanks

    Hi Dir-t,
    There's no way to create that behavior directly in Catalyst. However, you can do it with a little HTML hacking. You'll want to use the IFRAME tag: http://www.w3schools.com/TAGS/tag_iframe.asp
    When you publish your project as a SWF, one of the files that is created is an HTML file that wraps your SWF (it's typically called Main.html). You'll want to edit that file.
    -Adam

  • Keystroke/Shortcut to 'Open' Minimized Window From Dock

    Is there a keystroke/keyboard command I can't seem to find to 'open' a window of an open application from the dock?

    There's no command for that. However, you can customize keyboard commands by going into System Preferences. "Command-M" is the command to minimize a window when it's open.

Maybe you are looking for

  • How to get first row of a dataobject

    I have a ListDataObjectList that I’m setting in the request object. In the UIX page there is one field that is the same in all rows and hence I want to display only once. I have the following code in my UIX page, but it displays duplicate values (one

  • Error while inserting record into database using BPEL

    I am trying to read from an xml file using a File Adapter and insert the values read into a database (by invoking a database adapter). I formed the BPEL Process in the following manner: 1.Receive activity to receive the values read from the file 2.As

  • Quickdraw 3d (.3df) on OS 10.5 or 10.6?

    I have a ring designer sending me .3df files in addition to .jpg renders of a ring he's designing for me. Is there any program for Mac OSX that can open .3df files anymore? Unfortunately, OSX doesn't support classic environment anymore so "Scrapbook"

  • Change SMTP port to 587 doesn't work

    Hi, my ISP blocks port 25, ok and no problem - not for the iphone. When i change port 25 to 587 it checks the config - works. After i gone back in the menu the account list, to save the settings, (still in the settings) and go again to the SMTP setti

  • Audition cs6 with pp cs5.5

    following the discussions in the forum I'm going to wait with installing the upgrade from cs5.5. to ppcs6. however I have ordered with the pprcs6 the audition cs6 (I didn't have audition before). should I be concerned about installing it with the pp