Setting Cursor - For a window and application wide

Hi,
Can somebody please help with a cursor problem ? I am not able to set the busy cursor for a frame when the application is doing some work. I have tried many methods of doing this (some of them from these forums...) but still I am not able to make this work.
1) setting the cursor before doing the work and resetting after the
work doesnt work.
2) setting the cursor for the window by calling
Window window = SwingUtilities.windowForComponent(getRootPane().getGlassPane());
window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
This works but the events are not blocked by the frame i.e if i
click on any part of the window like a button or something, that
event is fired after the work is done. So this is not good.
3) created a glass pane for the window and blocked all the events. Then
set the cursor for the the glass pane. This does not work either
since the event thread is doing the work. So had to create another
thread to do the work. This works but when the cursor is reset back,
it doesnt reset. I have to move the mouse a bit to reset it. So this
is not good either.
4) created a work around for the cursor by creating a modal dialog box
saying "Processing..." in the event thread and doing the work in the
worker thread. The worker thread posts an event to dispose the
dialog box after the work is done. This works perfectly though it is
still not good because the cursor is not showing busy. Because of
the modal dialog box, the user cant do anything in the application
which is exactly what i want. Is this ok ? Can somebody provide any
other work around for this ?
5) Also I have another question for you guys. In the worker thread if i
do something like updating the gui etc., it takes a lot of time
almost 10 times more than when the work is done in a single threaded
environment. Is this because of the communication between the worker
thread and the event thread ? If I do only data related work not gui
work in the worker thread, this is fine.
I am new to Swing, so somebody please explain to me if they can.
My environment is JDK 1.1.7, Swing 1.1 on Sun Solaris 2.5.1. Is this because I am using old versions. Is this resolved in the newer versions like 1.3 etc ?
-Vijay

moetunes wrote:I thought a
chmod u+rw /path/to/.conf
chmod go-rw /path/to/.conf
would set the file to be read only by the user that owns it.
That is all true.  The problem is the need to give a user the ability to run a program that has secrets that should only be visible by root.  If you give the user ownership, they cab see the keys to the kingdom.
For example, you may want to allow a user to connect to an arbitrary wireless access point.  Generally, this is a privileged operation -- you want to give them permission to do it, but don't want to give them ownership.  You may also not want them to be able to see or modify the pass phrases.

Similar Messages

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

  • I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    In addition to Niel's comments, if you plan to use Time Machine to backup a Mac to the secondary drive.....that application needs a drive that has been specifically formattted for Mac.  That would be Mac OS Extended (Journaled).
    PCs can also read and write to the Mac formatted drive.

  • Patch Set Release 2 (9.2.0.8) Patch Set 7 for Microsoft Windows (32-Bit)

    Hi,
    I've 2 nodes with version 9.2.0.1
    I applied a Patch Set Release 2 (9.2.0.8) Patch Set 7 for Microsoft Windows (32-Bit) on the Node 2,
    All is fine but when i try to discover N2 from N1 with OMS, i get only the HTTP Servers, and no database discovred,
    For your information, I've 2 databases on N2
    Please help me to resolve this probleme because i need to schedule some jobs.
    Regards.

    Check where you installed the 9.2.0.8 patch, in the database home or Enterprise Manager Agent's home?
    Check the compatibility between the versions of agent, database and OEM.
    Try to reinstall the (correct version) agent again in Node 1.
    If you have 2 database on Node 2, if they both uses the same Oracle database version and same home, you need to install the patch only once, but got to run the upgrade and catpatch.sql seperately in each databases.
    Hope it helps,
    Babu Rangasamy

  • [svn:fx-trunk] 13276: Min/ Max size fixes for AIR Window and WindowedApplication.

    Revision: 13276
    Revision: 13276
    Author:   [email protected]
    Date:     2010-01-05 07:18:31 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Min/Max size fixes for AIR Window and WindowedApplication.
    AIR won?\226?\128?\153t allow you to set the min width greater than the current max width (same is true for height). You also can?\226?\128?\153t set the max width less than the current min width (same is true for height). The code that sets nativeWindow.minSize and nativeWindow.maxSize has been modified to take this into account.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24566
    Reviewer: Corey
    Tests run: checkintests, apollo/spark/components/Window.as, apollo/spark/components/WindowedApplication.as, apollo/Window, apollo/WindowedApplication
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24566
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

  • Text for ipad,windows and android

    Hi
    I'll publish a folio for ipad , windows and android.
    If I have understood correctly, Is the best way to create an iPad version first and use the same folio to the other platforms.
    I have made a folio of 1024x768 and has 16pt for body text. PDF format.
    The problem is that the text is ugly in Android and Windows versions.
    What should I do to get the best deal on the windows and android versions?
    Regards
    Ake

    I have attached three screenshots.

  • Package assignment for wd component and application configuration

    Hello,
    Is it possible to change the package assignment for wd component and application configuration?
    Usually it is possible via "Other Functions" but for configurations this option is not show
    Best regards,
    Paul

    Hi,
    For the Web dynpro component there is an option of  other functions,
    but for application configuration  i couldnot find out.
    Priya

  • HT1338 i got an i pod mini but it is set up for a mac and i have a pc how can i get it to factory settings?

    Hi,
    I have received an Ipod mini and It is set up for a mac and I only have a PC does anyone know how to factory reset it?  I have tried holding down the middle and menu u at the same time. I will not let me update the software.

    http://www.tomshardware.co.uk/forum/55578-32-reformat-ipod-mini
    This will tell you how to reformat your iPod mini to PC format which will then allow you to use it on your PC. Put simply, just plug it into iTunes and that should reformat it (however you will lose songs that are on the iPod).

  • Globally set "float" for my windows... and Skins?

    I really liked how PS would allow me to open up any .psd etc, in it's own floating window, so I could select then drag an image from one doc to the other.
    Cant do that with the default settings in CS5...but I've found a way to 'force' that for each doc I open AFTER I open it via the top nav bar icon to enable the float for that doc...
    IS there a way to globally set CS5 to only ever open any PS doc with that already set to the float window setting?
    Can't find it so far...but surely that must exist, right?
    RE: my subject item on Skins...the overall "gray-ness" of the CS5 GUI gets me down...I also can not find out how to "skin" the gray away....can you?
    Jim

    huge 27" HP that is powered by a nVidea card...absolutely great look/feel and the workstation powering same is  a great Dell box.
    that said, it's not the monitor, nor the ambient light here at the office..it's the dang all gray look that bugs me the most...then the poor contrast tween the type on that gray...then the overall gray top bar too...
    just too too gray for me. if this continues to bug me, I'll just go back to CS3....dont need any of the new features in CS5....and the 'comfort' of using an interface that is easy to use is more imp to me than being "current" with versions ever would be...
    can't be alone on this either as I've read many many threads on this - just google for this and you'll see many think same as me....an app should be
    transparent in it's GUI usage....not a hindrance...
    ...sigh...
    Jim

  • Locking exceptions for Pop-windows and loading image automatically Preferences setting

    How can i lock the two exceptions button for POP-up windows and load imagae automatically option.

    You can lock the image exceptions via pref.advanced.images.disable_button.view_image
    I do not see a pref to lock the pop-up exceptions on the about:config page (filter: disable_button)
    A possibility is to hide that button via code in userChrome.css (#popupPolicyButton {display:none!important;}), but that needs to be done for each profile.
    <pre><nowiki>//
    lockPref("pref.advanced.images.disable_button.view_image", true);
    </nowiki></pre>
    See also:
    * http://kb.mozillazine.org/Locking_preferences

  • Set Desname for PDF using Oracle Applications

    We are running Oracle Applications 11i, 8i database on a Unix box and use windows 2000, internet explorer, acrobat 6.0 to run, and view the reports.
    I just finished redesigning a Oracle report to output to PDF instead of printing on a preprinted form.
    The user has requested that the output file (Report) be saved to a specific directory on a server that is on the windows platform.
    The report is being run from the concurrent manager inside of Oracle Applications, which seems to be over writing my desname that is specified in my report (rdf). Our current workaround is that the user opens the file in acrobat and save it to the desired directory, which they have to set manually for each session.
    Is there a way to run a report on UNIX and output the report to a windows directory?
    Thanks in advance...

    There is a better workaround than opening an saving on desktop...I have never tried this but have an idea...that would work 100%.
    The standard configuration of apps 11i is that the output file is placed in $APPLCSF/out and its on the Unix Box...but if u have apps running on NT environemnt then just share the file system of $APPLCSF with the desktop...Pretty simple....
    If apps is running on Unix then u need to install software like Samba on Unix so that the desktop will be able to share the file system of unix on desktop....
    Try it out...
    Best of luck

  • I need help identifying and removing annoying gadget that shows all open windows and applications when I mouse over a corner.

    It seemed like a good idea at the time. Some time ago I installed a gadget (doesn't seem to be an item in my Applications folder) which, when I mouse-over the lower-left corner of my screen, brings up a screen showing reduced-size versions of all open application windows and Finder windows. I've tried to identify what it is, and where it is located, so I can remove it, but to no avail.
    I'd really appreciate any help getting rid of this thing. Thanks!

    Hi Paul,
    Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Check the System Preferences>Keyboard>Keyboard Shortcuts.

  • What is the best solution to create SharePoint Extranet Application for existing windows web application ?

    Hello,
    At present my SharePoint farm is having following domains:
    1) Internal Domain - Domain1
    2) External Trusted Domain - Domain2
    And Following Intranet WebApplications having Windows Mode Authentication:
    1) http://mywebapp1.Domain1.com - Single site collection
    2) http://mywebapp2.Domain1.com - Multiple site collections
    3) http://mywebapp3.Domain1.com - Multiple site collections
    Both Domain1 and Domain2 users are able to access above web applications.
    Now , we have requirement to add other trusted domains Domain3 , Domain4...etc. and create Extranet Application and I have following questions :
    What kind of topology and Authentication is required ?
    AD as User Identity storage location is better way for all other domains since there is trust ?
    Do I need to just extend all the web applications in extra net zone and create site collection for different domains to isolate security and content as per the need ?
    Is there any other best solution to implement extranet application under current environment ?
    what kind of other factors are important to consider in order to create extranet application ?
    Your help will be highly appreciated.
    Thanks and Kind Regards,
    Dipti Chhatrapati

    Hi Tom,
    I have following information till now:
    External domain will be trusted with parent domain where SharePoint is installed. 
    Authentication of external domain will be Windows Authentication.
    User Identity storage location will be Active Directory of external  domain.
    Site to be accessed by external domain will be http://mywebapp1.Domain1.com
    Now question is :
    Should I assign external AD group ( Domain2ADGroups ) to SP Web Application  http://mywebapp1.Domain1.com
    OR
    Should I extend the application in extranet zone for external domain and then assign permission to extended
    application ?
    I guess , if authentication is same then no need to extend the application - correct ?
    Thank you to look at this thread !
    Dipti Chhatrapati

  • Problems setting duration for still photos and transitions in iMovie '11

    I downloaded iMovie 11 from the Apps Store last night and am trying to make my first movie with it today. I use still photos exclusively.
    For most - but not all - I like 5 seconds for photos and for transitions 2 seconds. I do vary this on occasion and so do not check "for all photos' or "for all transitions".
    I can't get these settings to work with this version of iMovie. For example, I added a photo (5 sec) then a transition (2 sec) which changed the duration time of the photo - as it should. But when I double clicked the photo, to bring up the inspector window to change the duration of the photo, nothing happened. Then I added another photo. The duration of the first photo increased to 7 seconds and nothing I do seemed to change that.
    The time increases seem random: for example, sometimes the time on the still photo increases to 6:29 sec, sometimes to 7 sec.
    The duration for the transitions always remains the same - 2 sec; it's the time for the photos that jumps around. And I haven't been able to find a way to get back to 5 sec.
    Before posting this, I researched and found an number of earlier posts detailing the same issues.
    However, none of these posts had stars to indicate the problem was solved.
    Has anyone found a solution or is this a bug that should be reported to Apple?

    Interesting!!
    I've spent a lot of hours on this too, but I have come up with a different solution perhaps because I like to vary both the image duration and the transition duration in my movies.
    Here's my process:
    -> Knowing that (a) I want most of the photos to be visible for 5 seconds and most transitions for 2 seconds and (b) that a transition takes half from the photo before and half from the photo after, under File>Project Properties>Photo Duration I chose 7 seconds - each photo will 'lose' a total of 2 seconds from the transitions in front and behind. I did not check either "Applies to all transitions." or "Applies to all photos." - See below for why.
    -> I discovered, as you have, that all the photos have to go in before I add any transitions. This was new to me. With all previous versions of iMovie I simply added a photo then a transition then another photo one at a time. I had to fiddle with the timing adjustments, but at least I could fiddle. With this new version of iMovie I can't. Once the transition is in place, I cannot change the duration of the photo.
    -> Sometimes, I want a longer or shorter duration for a photo. For example, on photos to which I apply the Ken Burns effect, I often want the image on the screen for a slightly longer time. In this case, I have to use the inspector to change the duration before I add the transitions. So I might set the time for 8 seconds; when both transitions are added, the time for this photo becomes 6 seconds, which is what I want.
    -> The same applies if I want a transition to be shorter or longer than 2 seconds. If, for example, I want the duration for a transition to be 1 second, then I have to change the duration on the two linked photos to 5 1/2 seconds.
    All of this requires much more prior planning than I am used to with iMovie. Right now, I working with batches of 5 or 6 photos at a time. I don't put a transition on the last photo in the batch until I have added the next group of photos. And things get really tricky if I don't like my original design. If I want to change anything, I have to take out all of the transitions linking the photos I want to work on, do the math, make the changes in the photo durations, then put the transitions back.
    Perhaps I am trying to make iMovie do more than it was intended to do, I don't know. Perhaps this problem stems from the fact that I bought just iMovie 11 from the Mac Apps Store and not the entire iLife 11. Don't know that either. But at least I have found a way to make the movie look the way I want it to look.
    Thanks for sharing your process. I will use it when the circumstances are right.

  • I deleted over 200 self taken videos and over 500 pictures in the Moments window in my photo tab.  They deleted but still show in my setting in the About window and I haven't gained any additional storage capacity.  What do I do now?

    I deleted over 200 self taken videos and over 500 pictures in the Moments window in my photo tab.  They deleted but still show in my setting in the Setting/About window and I haven't gained any additional storage capacity.  What do I do now? Please help!  Thanks in advance for any assistance!!!

    Check the Recently Deleted album. Deleted photos will reside there for up to 30 days. This allows all those people who accidently delete photos to recover them, something they couldn't do before. To actually free up the space you might have to delete the photos in the Recently Deleted album.

Maybe you are looking for