Changing Cursor Shape to Hourglass

I can change the cursor to the Hourglass prior to a long running process like so :
setCursor(Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR));
Toolkit.getDefaultToolkit().sync();
Problem is that the cursor reverts to it's default state when the cursor is moved off the Applet or I switch to another application. This gives the impression that the background task has finished, when it hasn't.
Please can anyone tell me how to prevent this.
Hopefully simply as I'm only just a starting out Java programmer !
Thanks
Richard

I had the same problem in a project. One thing is that it was a bug in early versions of the jdk/jre 1.1.x. So if you for example try to run your applet in netscape 4.x, then you will see this bug.
Actually I think there is another problem. Your applet is busy and you move your cursor away from the applet and then back in. The thread is busy so how will it be able to change the cursor to the hour glass? I mean, if you put another window on top of your applet and remove the window again, the applet won't repaint itself before it finishes the task it is doing. And I think the same might go for the cursor (maybe I'm wrong). Otherwise, try to run your applet with jre1.3.x and see if it works there (you can also try with netscape 6.x which uses the same jre).
Instead of using the hour glass, you could perhaps do something else in your applet showing that it is busy..

Similar Messages

  • Changing the cursor to the hourglass. Any ideas?

    I posted this in the Actionscript 3 Forum so I'm sorry about
    the double post.
    I've got a frame in my Flash AIR app that loads some data and
    I'd like to change the cursor to the hourglass in Windows (watch on
    the Mac) while the data loads. Anyone have any ideas? It seems like
    it should be simple, but I just can't seem to find a solution for
    it.

    Yeah, you can't do that. This is a top request of mine, glad
    to see I'm not alone. File an Enhancement Request -- see me
    signature.
    The workaround is to attach a custom graphic within Flash (or
    your HTML app) to the mouse location. The limitation of course is
    that this isn't system level, so you need to rely on custom
    graphics, and the graphic obviously won't be able to go outside the
    Flash/app frame. You can hide the mouse, thus effectively replacing
    the mouse cursor with your custom graphic, but I'd do that with
    caution: poor app performance or hangs will make the user think
    their mouse is hanging, which is a really bad feeling, and there
    are some other situations that can get hairy (mouse stays hidden
    outside of the app frame, sometimes, so cursor has completely
    disappeared!) For an hourglass or similar it makes sense to just
    attach right beside the cursor.
    Marco, the stopwatch you've seen is probably the one used in
    the Flex framework. It uses the custom attached graphic
    workaround.

  • The cursor shapes change with Flash player 12

    Yestrerday I updated to Flash player 12 to view the content of a supplier catalog, since that my cursor change the shape from arrow to a cross and crashes the system, needed to restart every time. I'm n ot confrotable looking for my cusros seams to disapear on the screen when change to a cross.

    Have you done an SMC reset?
    Or a PRAM reset?
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964

  • Changing the cursor shape

    how can i change the shape of a cursor to "hand" when the mouse rolls over specific text item. i have tried the cursor_style property but it returns only some of the cursor styles plus the are just behind the mouse clik trigeers so it chnges the shape when the mouse is cliked while i want it to change when mouse just rolls over the specific text item.as done in hyperlinks .

    Which form version you are using?
    Forms 6, has got cursor styles which are HAND, MOVE not documented in help.
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'HAND');
    regards

  • Change cursor to hourglass

    i want to change cursor to hourglass when a new servlet is loading. working of my program is that on click of submit,the present servlet unloads and a new servlet is loaded.this new servlet takes time. so i can't write the code in prevoius servlet for cursor and the new servlet which is being loaded changes cursor to hourglass only after fully loading. please help me in this regard

    Write the javascript, flush the output stream, and the hourglass should be shown right away...
    note: You should write some stuff before the javascript -- send some text maybe the top of the output page. IE has some internal buffer you have to fill up before server-side flushing works.
    Again: You should make sure you send the javascript and flush before you start processing.
    Also: You will not be able to do a send redirect if you use this approach. If this is not satisfactory, you could try using one of the "Please Wait" mechanisms described on this site (use the forum or google search for JSP "Please Wait" to find them) to do the job.

  • When I create a rectangle, I can not to change the shape of a rectangle with the cursor in illustrator CC 2014 For what?

    When I create a rectangle, I can not to change the shape of a rectangle with the cursor in illustrator CC 2014 For what?

    Xavigarcia,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks) or 10.10 (Yosemite). Hopefully, the bug will be fixed soon.
    So a switch to Mavericks or Yosemite with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Cursor shape change!

    Sometimes my cursor shape changes and appears too little. It's very hard to find it.
    If i restart my computer everything comes to normal.
    How can i do it with restart my Macbook.
    Thanks

    Additional info:::::::
    You can change the CURSOR size which also affects the mouse pointer via  System Preferences->Accessibility->Display-> Cursor size >>>>> move cursor size slider to meet your needs.

  • Change cursor to hourglass in JFileChooser

    Greetings,
    I'm trying to find a method to change the mouse cursor into a hourglass in JFileChooser when the user navigates through the directory structure.
    I'm currently developing an application where files need to be loaded over Windows 2000 NetBEUI network. In JFileChooser, refreshing directory views can take quite a long time (sometimes a minute or so) when navigating through another user's computer through the network. Therefore, it would be a good thing to change the mouse cursor into a hourglass (JFileChooser doesn't change it by default) whilst refreshing the file view so that the user won't get the impression that the program has hanged...
    Is there a method for doing this besides modifying the actual JFileChooser class? This would be an easy solution but I've gotten the impression that is illegal (against Sun's J2SDK license, that is) to modify the classes in java.* and javax.* packages?
    Thank you for your time!

    Thanks, that points me to the right track. I should have thought of extending JFileChooser myself.
    There's still a slight problem, the code snippet you provided changes the cursor back to the default too early, i.e. before the files in a specified directory are visible. I think the cursor should be set back to the default one in some other overridden method...
    But thanks anyway, back to the JFileChooser JavaDocs :)

  • How do i change cursor when mouse over a Chart,Graph or Pivot table in 11g

    hello everyone...!!
    I wanted to change the cursor shape from that hand to an arrow .
    As we know whenever the mouse cursor rolls over any button or pivot table ,chart or graphs it changes to a Hand shape, i wanted it to remain in the default arrow shape.
    This is for obiee 11g.
    Please help.

    the above sol will only help you to see the cursor on the local machine
    to make it visible on every machine
    goto column properties >> additional CSS>>in css write cursor:default
    then save changes system wide for these data type
    Also make the same changes in the other datatypes also.......
    cheers
    Ankit

  • SBO_Application.Cursor = SAPBouiCOM.BoCursors.HourGlass

    We are in 8.81 PL10 and we still not have any way other than the ProgressBar to show a HourGlass cursor
    This must change one day as a ProgressBar isn't always suitable just to show a HourGlass indicating a long running process
    SAP needs to implement this very simple functionality like
    SBO_Application.Cursor = SAPBouiCOM.BoCursors.HourGlass
    Run long process
    SBO_Application.Cursor = SAPBouiCOM.BoCursors.Default
    I would go even further by making a way to change the icons so it can be bigger and nicer
    But at least, just having it would be greatly important.

    We are in 8.81 PL10 and we still not have any way other than the ProgressBar to show a HourGlass cursor
    This must change one day as a ProgressBar isn't always suitable just to show a HourGlass indicating a long running process
    SAP needs to implement this very simple functionality like
    SBO_Application.Cursor = SAPBouiCOM.BoCursors.HourGlass
    Run long process
    SBO_Application.Cursor = SAPBouiCOM.BoCursors.Default
    I would go even further by making a way to change the icons so it can be bigger and nicer
    But at least, just having it would be greatly important.

  • How can I change the shape of a photo in iPhoto?

    Can I change the shape of a picture to an oval?

    No. You'd need an external editor for that kind of stuff:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Of course, you may not want to change the shape of a photo which would distort it. You may want to print it in an oval shape but undistorted. I'd use a page layout app like Pages for that,

  • Is there any possible to change the shape of the gauge?

    i want to change the shape of the gauge. for example,
    i hope to chang it from rectangle to rotundity.
    is there anyone konw about this?
    thank you for your help .
    onceaway

    Hi,
    Please check out the following link that discusses the customization of LabVIEW Controls and Indicators.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/A9FBCAA7A3D7922186256A3000652B56?opendocument#7
    Also, I read through the above document and created a meter indicator with rounded edges(see attched image).
    Regards,
    Ankita A.
    Applications Engineer
    National Instruments
    Attachments:
    customized_meter_indicator_picture.bmp ‏577 KB

  • Fcpx 10.2 export changed the shape and position of my shape masks. Ideas?

    Fcpx 10.2.  Upon export it changed the shape and position of my shape masks.   It also created "cordoroy" looking screens where some photos had been.  Looking for help.

    Hi Tom,
    Thanks for the response.  My project is 1280x720 29.97 fps.  Here's a shot of the corduroy.  The first time I exported using the "export" choice.  I rebooted and exported again choosing "master" file.  The settings were the same on both- 1280x720, 29.97, H.264.  The corduroy went away the second time.  The masks are still off.  I'm using them throughout my project.  They are closer to center on both of the quicktime movie outputs than on my screen in the project.  I could send pics.

  • How to change 'cursor'

    Is there a way to change the 'cursor' so that it is always a 'hand' or something else that is easier to see - this is for one of the users that I support. They're looking for the cursor to always be this way, no matter what (ever, regardless). I have not been able to find this feature and other Adobe users I have talked to haven't found anything like it either.

    Hi, showing some messages when moving over a button can be done by standard-functionality useing property "tooltip-text" for the button.
    If you want your own bean start with overwriting the class oracle.forms.ui.VButton, use method with code similar to the following
      protected void processMouseEvent(MouseEvent p0)
        if ((p0.getID()==MouseEvent.MOUSE_ENTERED) && this.isEnabled())
          // Add your code for changing cursor here
          super.processMouseEvent(p0);
        } else if ((p0.getID()==MouseEvent.MOUSE_EXITED) && this.isEnabled())
          // Add your code for changing cursor here
          super.processMouseEvent(p0);
        } else
          super.processMouseEvent(p0);
      }hope this helps

  • Can I change cursor motion using tab key?

    Hi everyone,
    I'm Tae from Japan.
    Now, I'm developing UI with WD4J and I'd like to change cursor motion.
    for example:
    - left to right
    - up and down
    Environment:
    SAP NW CE 7.1
    SAP NWDS CE 7.1 SP05
    Thanks and BestRegards,
    Tae

    Hi Tae,
    Cursor motion through Tab is default given in WD Java, Cursor goes to next defined element in view. By designing the view layout properly you can manage the cursor movement as per requirement.
    some points :
    1) Tab moves the cursor to next item (if Label property "Labelfor" is  not defined for any ui element, it considers label as one element. Hence define labelfor property)
    2)you can use any of layouts grid, matrix, flow or row to define the ui elements.
    3)Tab will go to the next element in the same container. After completing all elements in one cotainer cursor goes to next container as defined in view.
    3)Shift+Tab will move the cursor backward.
    Regards
    Deepak

Maybe you are looking for

  • Problem similar to Nvidia 6800GT + AMD64 + Windows XP

    Hi there, i seem to be having this problem. The game pauses randomly and hangs, there is also the irritating stuttering that comes out of my speakers. My system Specs : AMD64+ 3200 Neo2 Platinium (7025) NVIDIA GEFORCE4 MX440 with AGP8X Windows XP wit

  • PHOTOS ARE YELLOW

    My photos are printing with a yellow tint to them.  Not even close to the actual picture colors.  Tried new ink cartridges of course, no difference.  I'm using HP Premium Plus photo paper, but it's the same with other photo papers.  I have had way be

  • Shared tenchologies files failed in reinstall of adobe photoshop elements 10

    My Adobe Elements 10 both photoshop and premiere suddenly stopped opening up, or would open to menu page then disappear.I deactovated to uninstall photoshop and tried to install it again. it failed saying the shared technologies files failed. Now I c

  • Getting Bluetooth Stereo to Work (A2DP profile)

    IT WORKS! I was terribly disappointed to learn that Apple didn't include the A2DP Bluetooth stereo profile in the iPhone. Since A2DP Bluetooth stereo is an established and stable standard, I can't think of any reason why Apple would not have included

  • TRANSPORT OF BIN STRUCTURE

    Hello all, I would like to know whether the bin structure created using LS10 can be transported from a development server to the next server or is it independent of transport and cannot be transported. pl. advise Thanks, Maxx