SetCursor use for multiple top level windows (JFrame)

Hello,
I have an application with many top level windows, most of which are running under a single
thread. I'm trying to implement a class to toggle the cursor (normal<->busy) for any window
that is present in the application.
I can't seem to get the cursor to change for any window other than the main window. I'm providing
below the class that's used to register the windows and set the cursors.
What am I missing?
import java.awt.Cursor;
import java.util.ArrayList;
import javax.swing.JComponent;
import javax.swing.RootPaneContainer;
public class AppWindows {
    ArrayList<WinInfo> windows;
    /** Creates a new instance of AppWindows */
    public AppWindows() {
        windows = new ArrayList<WinInfo>();
    public void add(JComponent window, String title) {
        WinInfo win = new WinInfo(window, title);
        windows.add(win);
    public void delete(JComponent window) {
        windows.remove(window);
    public void deleteAll() {
        windows.clear();
    public void setBusyStatus(boolean busy) {
        for(int i=0; i<windows.size(); i++) {
            JComponent j = windows.get(i).getWindow();
            RootPaneContainer root = (RootPaneContainer)j.getTopLevelAncestor();
            if(busy == true) {
                root.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                root.getGlassPane().setVisible(true);
            else {
                root.getGlassPane().setCursor(Cursor.getDefaultCursor());
                root.getGlassPane().setVisible(false);
class WinInfo {
    private JComponent win;
    private String title;
    public WinInfo(JComponent win, String title) {
        this.win = win;
        this.title = title;
    public JComponent getWindow() {
        return win;
}Bill

I would very much like to know how to avoid this also!!!

Similar Messages

  • Issue with having to declare fixed width for my top level floated LI in horizontal menu

    Hi and thanks for taking a look at my problem:
    I am having trouble getting my sub menus to display correctly in IE.
    Originally i didn't declare a fixed width for my top level li and it displayed perfectly in all browsers except IE.
    If i don't declare a fixed width for my floated floated elements, IE treates the top level li as the same width as the ul they contain (which I don't want). So I declared a width for the ul.MenuBarHorizontal li to be 80px, which is close to the minimum width that i want to use for the top level list items. However, in actual fact, the top level list items all have individually declared widths in the classes they are assigned.
    How can i re-write the html or CSS so that the browser, mainly IE, reads the correct widths for the top level ist li??
    Here is a link to the page with the problem
    Thanks in advance if anyone can help me out.

    Hi Beth,
    thanks so much for your repsonse.
    I will take your notes and advice and see if i can apply it to the actual page i was referring to. It seems you were now looking at a completely different page with a different (albeit spry) horizontal menu.
    Again, i truly appreciate your time and advice.
    Thanks!

  • How do I use CreateBookmarksFromGroupTree and NOT get a "temp_" for my top level?

    I have a report that I have created that uses uses groups and I wanted export a PDF using the CreateBookmarksFromGroupTree option. While that works, I get an ugly top level bookmark name that starts with "temp_" then followed by two GUIDs "temp_13fef8e3-30ec-4bc5-ba77-b55d23c95e8f {87823BCB-7789-407C-8A7F-5096BE07A83E}".
    So, how do I:
    1) Get rid of this top level so it matches the Crystal Viewer (which has multiple top level bookmarks)
    2) Put in a name of my own choosing as the top-level bookmark.
    <!break>
    Any help or suggestions would be appricated.
    Thanks,
    Jim

    I would very much like to know how to avoid this also!!!

  • [svn:fx-trunk] 13127: SystemManager was supposed to call ChildManager to finish initializing the top level window .

    Revision: 13127
    Revision: 13127
    Author:   [email protected]
    Date:     2009-12-21 13:42:09 -0800 (Mon, 21 Dec 2009)
    Log Message:
    SystemManager was supposed to call ChildManager to finish initializing the top level window.  LoaderConfig was not getting initialized otherwise.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-24625
    Reviewer: Peter F
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/components/DataGrid
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24625
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.a s

    This girl here found the fix:
    How to Manually Fix Updates on Adobe Photoshop CS6 (from 13.0.3 to 13.0.6) on Mac with Retina Display |
    Basically, all you have to do is update the Application Manager (if your installation was like mine, I was still on v.6... it's up to v.9 now.  Go here for the update: Adobe - Adobe Application Manager : For Macintosh : Adobe Application Manager and run it... when done, launch Photoshop and check for updates.
    This is amazingly idiotic, I must add -- how does App Manager NOT update itself through the update process???

  • Drag & drop stops working when I drag outside the top-level window

    I have implemented drag & drop in my application, using the pre-JDK 1.4 approach. It works fine until I drag outside the top-level window, then back in again. My drop target receives a dragExit, but doesn't get a dragEnter when I drag back in. It then gets frequent calls to dragOver - but the DropTargetDragEvent says there are no DataFlavors available.
    Is this a known problem with d&d? Is there a known workaround?
    Thanks
    - rick cameron

    I could really understand that it annoys you. I tried it on my machine and the "save as" dialog box is placed correctly. I couldn't pull the box out of the monitor because the menue bar keeps me under it.
    Do you have the application frame activated? Try turning it off. "window > application frame"
    The problem might be here: The behaviors of the menu bar and dock are adjustable. Go to the system prefs and try playing around with the Mission Control settings. At work I have menu bar and dock on both monitors. At home I set the prefs so that only the main screen has menu bar and dock.
    I'm just guessing. Don't beat me if this doesn't help.

  • Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times

    Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
    Please help to set it up, thanks in advance

    You need to give more info..
    Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
    Most likely you have bridged it when it should be in router mode..
    Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
    Change it to working as a router. That might help.
    If you press reset button it will default back to router btw.
    If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547

  • Is it possible to build a project with Labview 2010 on a Windows XP system, that is useful for a system with windows 7 on it?

    Hi there,
    I am planning to use Labview 2010 in a short time.
    But before I'm going to use it I have some questions.
    I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
    Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
    Please give me some information.
    I hope to hear from one of you soon.
    Regards,
    Kenny
    Solved!
    Go to Solution.

    Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
    Thanks.
    Philippe B.
    Certified Associate Developer / Dépt Moyens d'essais
    www.ingenia-system.com

  • How do I  save and re-use a fillable form once I have created it? It is a form i will use for multiple medcial clients I see, then print out and put in paper chart, and then do it again for another patient. - I just got Acrobat XI

    I've created a fillable form from a Word document, but how do I save and re-use a a fillable form once I have created it? It is a form I will use for multiple medical patients, printing out the filled in form to put in paper chart (no need to save filled out form), and then fill blank form again for another patient? - I just got acrobat X

    Thanks!
    That should also save the blank form for future re-use, right.?
    Can I also file the blank form in the file system, and then retrieve it as a blank form when I have a next patient need for it?
    Thanks
    Michael

  • Agents configuration for the top level Organization

    I was experimenting with this feature and was wondering if it works. I have an IIS 6.0 policy agent installed and it is working correctly. I added a new agent for the top level org and set the name, password to the amldapuser password, and agentRootURL key value. I then edited the AMAgent.properties file of the IIS 6.0 policy agent and changed the com.sun.am.policy.am.username to the one I created. Upon restart the policy agent could not authenticate. I then set the am.password the clear text password and got the same result. Has anyone got this to work?

    Hi ,
    I've Been Following this forum for quite a long time,This has been a good resource for the people working on Identiry Management. A problem has been hindering me from completing the authentication part in my project.
    I've configured the Policy Agent in AMAgent.property file as URL_POLICY mode,which
    would redirect the user to the User Home Page mentioned in the
    registration page of Identity server. what other configurations need to be changed to make this work.
    Thanx,
    Daniel Prem Kumar B.S.
    Hyderabad , India.

  • Multiple Top-Level Realms in Access Manager via AMconfig?

    Is it possible to configure multiple top-level realms in Access Manager via AMconfig? It is not possible through the UI.

    Hi!
    How about this:
    String adminDN = (String)AccessController.doPrivileged(new AdminDNAction());
    String adminPwd = (String)AccessController.doPrivileged(new AdminPasswordAction());
    adminToken = adminManager.createSSOToken(new AuthPrincipal(adminDN), adminPwd);
    hth Chris

  • Can Oracle Access Manager (OAM) be used for configuring data-level access?

    Hi,
    Can OAM 10gR3 or 11g be used for configuring data-level access in PS 9.10 and OBI 11g.
    This would mean that data-level configuration are stored centrally within OAM database and PS 9.10 pulls these settings for its appropriate Row and ChartField security and OBI 11g queries OAM database tables to populate the initialization blocks during login.
    If you have configured this successfuly, please feel free to provide highlevel details/steps about the configuration and any complexities that can pre present.
    Thanks.

    I recently worked on an interesting implementation that utilized OAM configured against OID in which OAM was configured to control authentication/authorization and then all applications that were serviced by OAM utilized the users login to pass to the database at which point the Oracle database utilized VPD, which was configured against the same OID instance, to leverage user attributes/groups in order to configure fine-grained access control to data within the database. Not sure if this would work for you unless your requirements are similar but it worked very well for this particular implementation as it allowed them to have SSO for their own apps and for BI Publisher which then could pass allong the userid to be leveraged by the database to do fine grained access control.
    Edited by: oblix_fan on Jun 23, 2011 8:10 AM

  • How do I use CreateBookmarksFromGroupTree and NOT guid in the name for my top level?

    Post Author: Barbdcg
    CA Forum: Deployment
    I have a report that I have created that uses uses groups and I wanted export a PDF using the CreateBookmarksFromGroupTree option. While that works, I get an ugly top level bookmark name that starts with the name of my report, then followed by a GUID;
    Report {49E72CC5-7FFD-44F8-831B-EA8F543F7D82}.rpt
    So, how do I Put in a name of my own choosing as the top-level bookmark or at least get rid of the guid?
    Any help or suggestions would be appricated.
    Thanks,
    Barb

    Post Author: Barbdcg
    CA Forum: Deployment
    Still no answer??? I can not figure this one out!!  HELP!!!

  • Multiple top level package declarations

    The "Programming Adobe ActionScript 3.0" states in chapter 4 "ActionScript Language and Syntax", "Packages and Namespaces", "Creating Packages" that you can declare at the top level of a package multiple variables, functions, and namespaces in addition to a single class as long as only one is declared "public".
    However, in Flash when I declare a public class and any other variable or function either with the "internal" attribute or no attribute, I get this error:
    5006: An ActionScript file can not have more than one externally visible definition: test.function1, test.Test
    The package code is as follows:
    package test
        internal function function1():String
            return "Function1()";
        public class Test
    The same thing happens if I replace the function with an internal variable declaration. According to the manual, any declaration with the "internal" attribute should not be externally visible outside the package. Only the "public" class declaration should be externally visible.
    Can anyone clue me in as to why I get this error?

    That is not the situation described by the quoted manual section that I am trying to recreate.
    It clearly says:
    "In ActionScript 3.0, you use the package statement to declare a package, which means that you can also declare variables, functions, and namespaces at the top level of a package. You can even include executable statements at the top level of a package. If you do declare variables, functions, or namespaces at the top level of a package, the only attributes available at that level are public and internal, and only one package-level declaration per file can use the public attribute, whether that declaration is a class, variable, function, or namespace."
    The data properties and class you have decleared are outside the package within the ActionScript file, and not at the top level of a package. The "public" attribute is not available outside the package at all.
    What I wish to know is why the quoted internal declarations at the top level of the package generate the quoted error.
    However, I am beginning to believe that the documentation is in error and that what it is actually describing IS the situation you just described. When the manual says "top level of the package", it really means "top level of the ActionScript file outside the package", and when it says "the only attributes available at that level are public and internal", it really mans "the only attribute available outside the package declaration is internal. At the top level of the package, only one declaration may be made, it must have the same identifier as the ActionScript file name, and it can have either the public or internal attribute. Code within the same file but outside the package declaration can not access an internal declaration in the package declaration."
    Actually, the whole paragraph would need to be re-written to clarify the issue and to unambiguously distinguish between "top level of a package" and "top level of an ActionScript file outside the package declaration".
    As a concrete example - two ActionScript files:
    MCTest.as is saved in the same directory as MCTest.fla, and the document class of MCTest.fla is set to "MCTest".
    package
        trace("MCTest package code.");
        import flash.display.MovieClip;
        import test.Test;
        public class MCTest
        extends MovieClip
            trace("MCTest class code.");
            function MCTest()
                trace("Created Class MCTest: " + Test.StaticMessage);
    trace("MCTest outside package code");
    Test.as is saved in a sub-directory called "test".
    package test
        trace("test.Test package code");
        public class Test
            public static const StaticMessage:String = "Test: Hello World!";
            trace("test.Test class code");
    var myField:String = "myField";
    function myFunction():String
        return "myFunction";
    trace("test.Test outside package: " + myField + ", " + myFunction() + ", " + test.Test.StaticMessage);
    The resultant trace output is:
    MCTest class code.
    MCTest package code.
    MCTest outside package code
    test.Test class code
    test.Test package code
    test.Test outside package: myField, myFunction, Test: Hello World!
    Created Class MCTest: Test: Hello World!
    It is interesting to note that the package and outside package code are executed AFTER the class code.
    That seems to make more sense. You can only declare one class, variable, function, or namespace at the top level of a package with the same identifier as the file name, public or internal, and you can include executable code. At the top level of the ActionScript file outside the package declaration, you can only declare internal classes, variables, functions, and namespaces, and you can include executable code, none of which are within the package nor have access to any package internal declarations.
    The problem, therefore, would seem to be an incorrect manual. Does anyone actually know if this is accurate and the intended behavior?

  • Opendataset is used for Unix Server or windows server

    Hi Experts
                              Opendataset statement is used for Unix app.server or Windows App.server?

    Hi,
    Doesn't matter, same statment is used for all operating systems.
    regards,
    Advait

  • Reference MIC require to be use for Multiple Plants

    Hi All,
    I have created 2 characteristics and asigned it to one class hence with reference of that i have created MICs for Plant X.
    Accordingly i have assinged those MICs to inspection plan which are cretaed for Plant X.
    After get done result recording and UD , values get copied to batch classification and its working fine.
    Now the problem is that perticular class we are using for another class also (i.e Plant : Y) , because same process is happening in Plant X as well as in Plant Y.
    I have created new inpection plan for Plant Y also sepratly and Material assignment also done.
    For Plant Y , this scenario not working , results not gets copied to batch classification
    As per starndard i can create only 1 MIC against 1 Reference.
    Please advise how same refernce MIC would be work for another plant (i.e Y).
    Thanks,
    Abhishek

    Hi,
    MICs are generally created for one plant but they can be used in inspection plans of different plants. I don't understand where is the gap in this discussion. Pl share if I missed out something.
    Second view could be like this. You have a MIC, let say Quality, which is used in both plants but you want it to get linked with different characteristics (Char 1 for X and Char 2 for Y). If that's the scenario, then yes, you would need to create this MIC for Y also and link with second characteristics.
    Frankly saying, I couldn't understand the real issue here. Is master data the issue or updating of batch master ??
    Also check the following path
    QCC0>Basic settings> Maintain setting at plant level> Choose Plant Y> InsLot Completion. Make sure Batch valuation is set on.
    Additionally, Pl rephrase the following statement,
    Now the problem is that perticular class we are using for another class also (i.e Plant : Y)
    ntn

Maybe you are looking for

  • No VISA Resources in Labview but all present in MAX

    Hi, I am unable to find any VISA resources from LabVIEW, however, all NI hardware is available and working in MAX. I have just installed a PCI-8433/2 as well as a NI PCI-8512 CAN/HS Card. As part of the installation I believe MAX was upgraded to vers

  • HP7680 inkjet printer prints narrow blank (white) lines in multiple specific parts of page

    My HP7680 inkjet printer prints narrow blank (white) lines in multiple specific parts of each printed page. It appears to happen in the same parts of each page printed. - I installed new ink cartridges - I verified that the paper I'm using is the sta

  • User specific layouts

    Hi I'm new to adobe forms. Is it possible to have user specific layouts in adobe forms like we have for say ALV? I can't see any option in the layout tab to save a particular layout. If not then what are the other options available to achieve this? T

  • Importing from .dmp.gz file

    Hi, I have a mydb_071202.dmp.gz sitting on the mount along with some .log files. Need to import that into my db instance. I've never done this before, what are the steps I need to take? Do I need the .log files? Do I run command(s) in the shell or SQ

  • Visited state on rollover image?

    Hi, I am using a rollover image as a link and was wondering if it was possible to create a visited state for a rollover image so that when the user has clicked on it then later returns back the the page the image has changed colour to indicate the li