Set WAIT_CURSOR for whole application, not for single frame

Hello,
I am trying to set the cursor to an hour glass while a process runs. The application uses serveral frames that are open at the same time. The problem I have is that the cursor is attached to the frame (frame.setCursor) so once I move off the frame to another one the curosr is no longer an hour glass and when I move backover the first frame the cursor does not change back to the hour glass.
Is there any way to set the hour glass for the whole application?
Cheers
Andreas

hi,
write a new class for this: class CursorHandler
  private static Vector frames = new Vector ();
  public static void addFrame (JFrame f)
    frames.add (f);
  public static void setCursor (Cursor s)
    for (int i = 0; i < frames.size (); i++)
      JFrame f = (JFrame) frames.get (i);
      f.SetCursor (s);
}then just do:CursorHandler.addFrame (this); //for all frames
CursorHandler.setCursor (new Cursor (Cursor.WAIT_CURSOR)); //in any framegreetings,
Stijn

Similar Messages

  • Two part question 1) what happens if you  sign into messages beta on os x lion 10.7.5 after it expired? does the whole application not work or just imessage? 2) does installing messages beta on os x lion 10.7.5  delete ichat?

    Two part question
    1) what happens if you  sign into messages beta on os x lion 10.7.5 after it expired? does the whole application not work or just imessage? can you stil use AIM, jabbar, google talk, or yahoo?  if you open messages beta does it immediately tell you that messages beta expired?
    2) does installing messages beta on os x lion 10.7.5  delete ichat or just transform ichat into messages beta giving the illusion that ichat is deleted?

    Hi,
    It was never completely clear whether it was just hidden or whether Apple ran a download page for iChat 6.
    As the Download for Messages Beta was separate and "Deleted" iChat it would seem it would be another download for iChat 6.
    iMessages will not function as it is only an Account type within Messages and iChat 6 does not have it.
    Therefore messages on the iPhone will not sync to the Mac. (until you get Mountain Lion and Messages in that OS X version).
    Mountain Lion and it's full version of Messages will not sync the iMessages that have happened in between the 14th December 2012  (end date of Messages beta) and the Install of Mountain Lion if you decide on that route.
    8:51 PM      Sunday; May 5, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Format for single frame numbered graphic sequences?

    Hi, I'm working on a HDV 1080p25 project.
    The footage has been shot on a Canon EOS 7, and looks perfect.
    The client has also hired an animator to produce some sequences for editing in.
    The animator is using 3DMax.
    He's supplied a test set of numbered single frame jpg files, 1440 * 1080 (1:33 ratio) Progressive (no fields)
    But once rendered on the timeline, pans in the animation look jerky.
    What should I be asking him to render to best fit in the sequence?
    Or should I put his files in a different sequence setting, and render them to something useful myself?
    Unfortunately I think his system is very old (he says the files work perfectly for him in Premiere1.5) so I'm not sure what options will be available.
    All help appreciated.
    Thanks, Linda

    Jim, thank you for taking an interest. Yes, it's quite possible that I'm being far too fussy, and that what I've got is acceptable.
    I've uploaded a couple of test files to yousendit: perhaps you won't mind taking the time to look:
    I got two sets of test files from the animator: one rendered "progressive", the other "lower fields"
    I put both sequences on a HDV 1080p25 timeline, and rendered out to high quality mp4.
    Here are the results:
    1080p25_P.mp4
    https://www.yousendit.com/download/dklyaXROR0Z6NEkwTVE9PQ
    1080p25_LOWER.mp4
    https://www.yousendit.com/download/dklyaXRIcVhLVlh2Wmc9PQ
    I've watched both files so many times I can't tell the difference any more. I presume the progressive one should be right. But confirmation would be good.
    If it would help, I could also upload the test images I have.
    Thanks, Linda

  • Setting background for single row in JTable

    Hi,
    I have a table which uses the DefaultCellRenderer for cols0,1,3-5
    while column 2 uses a custom renderer.
    When user right clicks mouse on one of the rows i get the rowindex and colindex selected and tries to set background color for this row. but the whole table get painted(of course except 2nd column)...rather i need just the row to be colored.....any solution is greatly appreciated.the code is below....
    int rowIndex=table.rowAtPoint(p);
         int colIndex = table.columnAtPoint(p);           
         for (int i = 0; i < 6; i++) {                    
              if (i!=2){
                   DefaultTableCellRenderer r = (DefaultTableCellRenderer) table.getCellRenderer(rowIndex,i);
                   Component c = taskListTbl.prepareRenderer(r, rowIndex, i);
    c.setBackground(Color.yellow);
              }

    Maybe my reply in this posting will help:
    http://forum.java.sun.com/thread.jspa?forumID=57&messageID=1730267

  • Two whole weeks not a single issue, problem, crash...

    My N97 has locked up, crashed, flattened its battery in a few minutes, not found itself in GPS, locked its self out, crashed with ovi, run out of memory constantly, switched on the camera etc for one and a half years. 
    But for two weeks my phone has been brilliant, everything just works perfectly and synchronises with my desktop like a dream.  I cant really believe that a smart phone works so well and that I have put up with so much for so long.
    Yes you've guessed, I have dumped the N97 and bought an iphone4.  You had your chance Nokia, never will I ever waste money on a product of yours ever again.

    Thank you for your contribution.

  • Stop motion chroma screen problem for multi frames

    I am trying to use green screen for stop motion movies and I do know how to set it for each frame but how do you get all the frames to accept a single back ground picture at once? I have to insert the effect one at a time into each frame. I cannot use "select all" and then insert...the option will only work on single frames which for hundreds of frames is very time consumming. Is there a batch frames work around?
    Thanks
    Kevin

    Just remember that doing the Paste Attributes will add ALL the effects from the copied clip to ALL of the selected clips. Any effects already applied to those clips will still remain expect for Adjust, Motion or Opacity keyframes, those will be overwritten.
    Best to practice on one or two clips to see what the results will be before doing a large group of them.

  • How to deploy application as a single unit

    Hi
    I have an application in jdeveloper that contains several bpel projects , some esb projects and some pure java based web service projects. Now i want a mechanism to deploy this whole application as a single unit on a production environment server. I know obant tool but problem is that it can deploy a single project and not a whole application. Any pointers on that how i can achieve this task?
    Thanks.

    Thanks ashish, with your help i am able to deploy several bpel projects at one go.
    But i am facing problem with auto esb deployments using ant build. As suggested by you i downloaded documentation.zip and executed steps given in it.
    When i run ant , it shows build successful but when i goto esb console nothing comes up(ie esb projects is not getting deployed).
    Here is my ESBMetadataMigrationTaskdefs.xml::
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - The import of this ant build file, by another ant build file, enables the
    - use of the custom ant tasks present in ESBMetadataMigration.jar
    - Doug Gschwind
    - 12 Dec 2006
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <project name="ESBMetadataMigrationTaskdefs">
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - PROPERTIES, Subject to the installation environment
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <property name="commons.httpclient.home" value="C:/ForEsbAutoDeploy/commons-httpclient-3.1"/>
    <property name="jaxb.v2.0.2.home" value="C:/ForEsbAutoDeploy/jaxb-ri-20060801"/>
    <property name="soa.suite.home" value="C:/product/10.1.3.1/BSNLEAIAS"/>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Custom ant task definitions, to enable import.
    - This section should be treated as immutable upon installation.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <dirname property="imported.basedir" file="${ant.file.ESBMetadataMigrationTaskdefs}"/>
    <echo>
    imported basedir is:: ${imported.basedir}
    </echo>
    <taskdef resource="oracle/tip/esb/client/anttasks/antlib.xml">
    <classpath>
    <pathelement location="${imported.basedir}/ESBMetadataMigration.jar"/>
    <pathelement location="${commons.httpclient.home}/commons-httpclient-3.1.jar"/>
    <pathelement location="${soa.suite.home}/lib/xmlparserv2.jar"/>
    <pathelement location="${soa.suite.home}/integration/esb/lib/commons-logging.jar"/>
    <pathelement location="${soa.suite.home}/integration/esb/lib/commons-codec-1.3.jar"/>
    <pathelement location="${soa.suite.home}/integration/esb/lib/oraesb.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/activation.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-api.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jsr173_1.0_api.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-impl.jar"/>
    </classpath>
    </taskdef>
    </project>
    =======================================================
    Here is my build.xml::
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <project name="ESBMetadataDeploymentTestProject" default="usage">
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - PROPERTIES
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!--
    <property name="esbProjectToDeploy" value="C:\Oracle\product\JDeveloper\v10.1.3.1\jdev\mywork\ESBSamples\DGTest"/>
    <property name="deploymentPlanFilename" value="C:\Oracle\product\JDeveloper\v10.1.3.1\jdev\mywork\ESBSamples\DGTest\testDeploymentPlan.xml"/>
    -->
    <echo>Import ESBMetadataMigrationTaskdefs</echo>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Import, to enable the custom ESB Metadata Deployment ant tasks ...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <import file="C:/ForEsbAutoDeploy/ESBMetadataMigrationTaskdefs.xml"/>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - TEST Deployment Automation
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <target name="test.DeployESBProjects">
         <deployESBProjects esbMetadataServerHostname="localhost"
              esbMetadataServerPort="8888"
    userName="oc4jadmin"
    password="welcome1">
         <esbProject directory="C:/jdevstudio10133/jdev/mywork/AppAutoAnt/ESBProject1"/>
         </deployESBProjects>
    </target>
    <!--
    <target name="test.UndeployESBEntities">
         <undeployESBEntities esbMetadataServerHostname="localhost"
              esbMetadataServerPort="8889"
    userName="oc4jadmin"
    password="oc4jadmin">
         <system guid="8D61C3F0871111DB8F2675C60E6C31C6"/>
         <serviceGroup guid="0EB5F380896111DBBFBC9530C01627AC"/>
         <service guid="0547F370841611DBBFCF2D9BF80323FA"/>
         <service guid="05458270841611DBBFCF2D9BF80323FA"/>
         <system guid="86443990871611DB8F2675C60E6C31C6"/>
         <serviceGroup guid="B90E6B70895F11DBAF1483EEF470B835"/>
         <system guid="A62C91C1841511DBBFCF2D9BF80323FA"/>
         <system guid="D9F290E1896011DBBFBC9530C01627AC"/>
         <system guid="A9B213C1895F11DBAF1483EEF470B835"/>
         </undeployESBEntities>
    </target>
    -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - TEST Metadata Promotion to different ESB Metadata Servers (environments).
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!--
    <target name="test.ExtractESBDeploymentPlan">
    <extractESBDeploymentPlan sourceDir="${esbProjectToDeploy}" deploymentPlanFile="${deploymentPlanFilename}"/>
    </target>
    <target name="test.DeployESBSuitcase">
         <deployESBSuitcase esbMetadataServerHostname="localhost"
    esbMetadataServerPort="8889" sourceDirectory="${esbProjectToDeploy}"
    deploymentPlanFilename="${deploymentPlanFilename}"
    forcedDeployment="false"/>
    </target>
    -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - USAGE
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <target name="usage">
         <exec executable="ant" dir="${basedir}" vmlauncher="false">
         <arg value="-projecthelp"/>
         </exec>
    </target>
    </project>
    I guess i dont need those UndeployESBEntities target and ExtractESBDeploymentPlan target , so i have commented it. Also all the jars mentioned are correct(with versions >= mentioned in the document.).
    Thanks.
    Message was edited by:
    sameer h

  • I get "application not found" when clicking on a http link in a mail, even after having set firefox as the default program for http links.

    After installing firefox 15.0, I can not open links form email or other office 2010 applications. I get "application not found" error. I tried setting firefox as the default program both manually (in the Windows default program panel) and automatically (having Firefox to do it automatically on startup (tools->options->advanced->General). I still have the error.

    That sounds odd. Is this error coming from a particular e-mail program you're using? It could be that that program has its own settings for which web browser to launch, ignoring the "default browser" setting in Windows.
    Does the same thing happen if you click on a web link from any other external (non-browser) application on your computer? If it happens with other apps too, I would suggest to re-download and install Firefox (www.mozilla.org) and see if that takes care of it.

  • Set global font size for the whole application.

    Is there a way of setting a font globally
    What I mean I want to set a font size for the whole application.
    Is this posable ??
    Thanks Craig

    After posting over 300 questions I would think you would be passed the "New to Java TechnologY" stage.
    The answer for Swing applications is yes this can be done.
    I don't know how to do it for AWT components.
    Since you posted the question in this forum (as oppose to the Swing forum for Swing related problems), I'm assuming this is an AWT related question and therefore I can't help you.

  • Setting Color for whole application

    Hello everybody.
    I've to set the Button.background - Color for a whole application.
    For these purpose I use the JColorChooser and the
    UIManager.put("Button.background",>anyColor<); - method.
    When I use this the first time after start it works fine. When I try to change the color again it doesn't.
    Any ideas?
    Thanks for your help.

    OK, no more help needed at this time.
    My mistake was that I tried to call
    UIManager.put("Button.background",Color.red);
    it has to be:
    UIManager.put("Button.background",new ColorUIResource(Color.red));

  • Set-up application not loading for Creative Cloud. Can anyone advise?

    Set-up application not loading for Creative Cloud. Can anyone advise?

    Please elaborate the issue and Supply pertinent information for quicker answers:
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.
    ~ Arpit

  • 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.

  • SSO for External application not part of the portal framework

    Greetings,
    I am desperate!!!
    I am trying to do the following:
    I have a pl/sql application that presents to the user a set of external applications links.When the user activates a link, I would like to make a call the SSO server so it can do external application login.
    I know I can configure the external applications as described in the SSO admin guide.
    Unfortunately the API to query the SSO server for external application mapping is not public.
    ANY IDEAS ON WHERE I CAN GET THIS INFO??
    Every thing I have read says that external applications can be accessed through Portal. This is not my case. I can use any packages or classes available by the SSO server to portal, but MY APPLICATION IS NOT A PORTAL.

    I have similar kind of requirements for Single sign-on to external web applications.
    But in my applications I have to auto-generate random userid & password for different external web applications.
    These uids & password are exported to external applications, which upon recieving creates user in their applications.
    So, actual user will never have access to these credentials(uid &pwd).
    So, how can I cutomize the Portlets to do the first time SSO when user is created & their credentials to external apps are stored to OID.
    Any idea Barry..
    Bye

  • One Search service application for multiple web applications in a single server

      We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one  Search service application , create a Content source for each web
    application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
       In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one  Search Service application for all web applications and using Result sources ,
    I am not getting the results. What could be the problem.

    Hi,
    One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
    Multiple SSA's will eat up RAM/CPU like a mother :)
    As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
    Thanks,
    Mikael
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • I can't set shortcut for „Application windows"

    System Preferences → Exposé & Spaces → Exposé
    I can’t set shortcut for „Application windows” — first column with Fn key is OK, but the second column with mouse button doesn’t work. If I set „secondary mouse button” for „application windows”, it doesn’t work. But if I set „secondary mouse button” to „All windows”, it works! All mouse shortcuts for „All windows” or „Show desktop” work, but no mouse shortcut for „Application windows” work . The same with „Mouse button 3” and other buttons.
    Can you help me, please?

    Do you see the iTunes Library icon in the window? Click on it and the use the scroll bar to get to the tracks you want.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

Maybe you are looking for