Converting mouse icon to hour glass
Hello all,
I was just wondering if there's a way to convert the mouse icon from an arrow to an hour glass. The context in which I want to do this is when I have a GUI and I press a button and that button causes a lengthy delay, because of heavy computations, before displaying the next GUI. During this delay, I want to convert the mouse icon to an hour glass just so the user knows to be patient.
Gibran
Cursor wait = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
component.setCursor(cursor);
component.setCursor(Cursor.getDefaultCursor());
Similar Messages
-
Java Icon set: Hour glass??
Hi y'all!!
I know of the free graphics repository that provides a set of basic icons
http://java.sun.com/developer/techDocs/hi/repository/
but this set doesn't contain what I need for my app:
I would like an hour glass, like the one displayed when you change the mouse cursor to a waiting cursor, but this should be in the Metal Java look and feel.
If anyone out there knows of anyother graphics repositories which may have an hourglass.. or if you know how else I can obtain one.. please, please could you tell me! You'd be saving me a lot of unnecessary time in painfully drawing one in an icon editor.
Thanks in advance you guys - later EddHmmm, google images "hourglass cursor" and may be:
http://www.uni-heidelberg.de/images/index_AIcons_appl_cursor.html -
Firefox will no longer run on my computer. It's been working fine up until a few days ago. Installed the updates and now nothing. Uninstalled, reinstalled (numerous times). Click the icon and nothing. Hour glass comes up for a second and then it is gone. Running XP ver 5.1 (service pack 3) edit. I'm no techie so I have no clue what is causing this or what to do. I love firefox and miss it greatly. Anyone know what I can do to get it back?
Can you install a new profile? See [[Managing Profiles]] for me details and let us know if you need additional assistance.
-
Change the mouse pointer to an Hour glass
hello,
Could any one of you let me know how to make mouse pointer to an hour glass in swing application.
Thanking you in advance..
RamCheck out how I do this in my Draggable classs
you are welcome to use and modify this class, but please don't change the package or take credit for it as your own work
package tjacobs.ui;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Window;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
* tjacobs.ui.Draggable<p>
* Makes a component draggable. Does not work if there's a layout manager
* messing with things<p>
* <code>
* usage:
* Component c = ...
* new Draggable(c);
* parent.add(c);
* </code>
public class Draggable extends MouseAdapter implements MouseMotionListener {
Point mLastPoint;
Component mDraggable;
public Draggable(Component w) {
w.addMouseMotionListener(this);
w.addMouseListener(this);
mDraggable = w;
public Draggable(Window w, Component drag) {
drag.addMouseMotionListener(this);
drag.addMouseListener(this);
mDraggable = w;
public void mousePressed(MouseEvent me) {
if (mDraggable.getCursor().equals(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR))) {
mLastPoint = me.getPoint();
else {
mLastPoint = null;
private void setCursorType(Point p) {
Point loc = mDraggable.getLocation();
Dimension size = mDraggable.getSize();
if ((p.y + WindowUtilities.RESIZE_MARGIN_SIZE < loc.y + size.height) && (p.x + WindowUtilities.RESIZE_MARGIN_SIZE < p.x + size.width)) {
mDraggable.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
public void mouseReleased(MouseEvent me) {
mLastPoint = null;
public void mouseMoved(MouseEvent me) {
setCursorType(me.getPoint());
public void mouseDragged(MouseEvent me) {
int x, y;
if (mLastPoint != null) {
x = mDraggable.getX() + (me.getX() - (int)mLastPoint.getX());
y = mDraggable.getY() + (me.getY() - (int)mLastPoint.getY());
mDraggable.setLocation(x, y);
} -
Display hour glass mouse pointer
Hi all!
Does anyone know how to make the mouse pointer into a hour glass pointer? After clicking the "Load" button in the application, it takes a long time to display the contents. So I thought of informing the user that he has to wait for it to display the data.
Anyone know?
-KAren-try the following line when you respond to the button press:
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
But don't forget - you need to change it back when you are done ;-) To change it back:
setCursor(Cursor.getDefaultCursor);
Hope that helps. -
Explorer hang & right click hour glass
Windows SErver 2012 R2 terminal server. All clients having the same issue. When right clicking an icon on the desktop to bring up menu (cut, copy, paste, etc.) or right clicking from Explorer the system goes to an hour glass. I have downloaded and ran
the Microsoft scanning tool and nothing was found on the server.CrispyCritter,
Start Windows in Safe Mode and see if the problem persists.
Problems when right-clicking an element in Windows Explorer are often caused by faulty context menu handlers.
You can get ShellExView to see which shell extensions are installed and disable them one by one to find the culrpit:
http://www.nirsoft.net/utils/shexview.html
Also try running a Anti-Virus scan on the system and see if you can find something.
Hope this helps.
- Anantesh -
Non responsive firefox & stops in mid sentance in messanger or e-mail. Hour glass shows!
Foxfire VERY SLOW RESPONSE, TO OPEN FIREFOX. ALSO IT WILL SAY fIREFOX NON-RESPONSIVE & A HOUR GLASS SIGN SHOWS UP. i WILL BE WRITING IN CHAT OR AN E-MAIL 7 IT STOPS TYPING, AN HOUR GLASS SHOWS UP & IT WILL SAY NON-RESPONSIVE. i'M AM GETTING UPSET WITH ALL THESE PROBLEMS. wHAT CAN BE DONE??
-> Tap ALT key or press F10 to show the Menu Bar
-> go to Help Menu -> select "Restart with Add-ons Disabled"
Firefox will close then it will open up with just basic Firefox. Now do this:
-> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
-> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
-> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click "Clear Now"
-> go to Tools Menu -> Options -> General -> place Checkmark on "Show the Downloads window when downloading a file" -> select Radio Button option2 "Always ask me where to save files"
-> go to Tools Menu -> Options -> Content -> place Checkmarks on:
1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
-> go to Tools Menu -> Options -> Security -> place Checkmarks on:
1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
-> Click OK on Options window
-> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
-> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
You can enable your Known & Trustworthy Add-ons later. Check and tell if its working. -
Off-line Media Files - Hour Glass - No thumbnail - JRL
I have Photoshop v5 and used get files from folders to bring in pictures from a DVD. For each of the directories I see a few thumbnails but most of the pictures show an Hour-Glass Icon. If I click on it the thumbnail appears but I cannot get all the thumbnails to show up. In the past I have been able to load pictures from a CD/DVD as proxy images and see them all. Can anyone please help.
http://www.adobeforums.com/cgi-bin/webx/.3bb6e79a
is a techdoc originally written for PSE3 but it does apply to v5 also - however the numbers might be different.
This is probably what you are experiencing. -
Cursor is changing into hour glass
Hi,
After displaying XML report cursor goes into waiting hour glass, I don't know what is the problem.Hi,
What is the application release? What is the OS? Browser?
Is this a standard or custom concurrent program?
Any errors in the JRE/Jinitiator Console window?
Can you reproduce the issue from different machine and/or using different browser?
Please see if the documents referenced in this thread can help.
Ebiz 12.0.4 Mouse stops selecting fields in Forms
Ebiz 12.0.4 Mouse stops selecting fields in Forms
Regards,
Hussein -
my 8330 has developed the condition of continually displaying the hour glass icon.
a side effect is it csuses the battery to drain quickly.
it is a recent condition, starting this afternoon
Solved!
Go to Solution.I'm not sure about the PocketMac for Blackberry software, but I think you are correct that it doesn't include the application loader.
You don't have access to any PC? Because it doesn't matter which pc you use to reload the OS. Just make sure the desktop software is installed and you have downloaded the OS system you for your 8330. -
RoboHelp acting weird--flickering hour glass
Here's a great Monday a.m. problem for you: I've imported a
project from RH4Word into RH HTML. I'm now importing individual
topics into a project I created in RH HTML. I opened both projects
today, and the cursor appears as a pointer but, as soon as I move
it, it becomes a flickering hour glass. Even stranger things happen
when I try to scroll down the list of topics in the Project Manager
pane...As soon as I release the left mouse button after scrolling,
the cursor turns into an hour glass again, both vertical and
horizontal scroll bars "flicker" (change in size, small to large to
small, back and forth), and the project list goes back to the top.
I cannot select a topic unless it's one of the first ten or so on
the list (anything I can see without scrolling)!
The scrolling problem only occurs with projects. I can scroll
through the list of folders (Images, Multimedia, Style Sheets,
etc.) just fine. These projects are large; one is about 300 topics
now and the other is 1000. Is RH HTML having a problem with the
project sizes? What size should the topics be? Any other ideas
about what might be causing this?
LaconaI have been having this problem for the last week with two of
our projects. This has also happened previously in the last two
months. I really believe for us the problem started when we decided
to use RoboSource so two of us can work on the same project.
RoboSource is not too great and caused us to loose work and have
crashes a lot. Anyway, after we were convinced that the problem was
RoboSource, we removed the projects from RS control. This created a
new set of problems because RS did not release all the files.
Long story short, with the projects out of RS, we had issues
ranging from a project taking up to 30 minutes to load or not load
at all, to once loaded every time you move the mouse the pointer
turned into an hour glass and nothing could be worked on. Usually
forcing us to Force Quit RoboHelp.
After weeks of searching for solutions and not finding any,
and weeks attempting to replace backed up files like the XPJ file
and others. If we were lucky, we would leave it with the hour glass
overnight and it might start working the next day. But after a few
days the problem came back.
Yesterday it occurred to me that it looked like the project
opened but the hour glass was probably because it was looking for
files it couldn't find. So I had this bright idea. I made a backup
copy of the XPJ file and then I opened it using the Windows Notepad
application. I noticed that the XPJ file called for 20 RH specific
files to open. I checked to see if all these 20 files were
available on the project folder. I found 17 of them but there was
three that did not exist in the project folder. So I removed the
lines asking for the three missing files and then closed and saved
it. IF YOU DON'T KNOW WHAT YOU ARE DOING I WOULD NOT RECOMMEND
DELETING ANYTHING FROM THESE FILES!!! YOU MUST BE SURE YOU ARE NOT
ERASING IMPORTANT INFO.
After closing and saving the file I opened the project again,
it loaded in 45 seconds and it did the hourglass for about a minute
or two, which I think it was updating the files. Then the hourglass
went away and never came back. I closed the project and opened it
again to confirm that it would work properly. It opened in 34
seconds and no hourglass came up to delay anything. The issue is
now gone on all our projects and they are working better than ever.
I hope this helps anyone having this problem. REMEMBER TO
BACKUP THE PROJECT BEFORE ATTEMPTING THIS...just in case it doesn't
work as good for you...I only know of me doing this... -
When I am on a site, any site, or writing an email every ten minutes or so, the hour glass comes on and I cannot do anything but wait. I think it is updating something. How can I stop this?
Updating to Firefox 8.0 might do it, unless there is damage to the places.sqlite indexes, anyway this is the fix, and I actually option (same as all options).
freezing at regular intervals: http://blog.bonardo.net/2011/09/30/is-your-firefor-freezing-at-regular-intervals
: https://addons.mozilla.org/firefox/addon/places-maintenance/
:<br>Install add-on, run at least the option mentioned in the article, I ran them all. When finished you can uninstall the extension, all without taking taking Firefox down, The extension is one of the new JetPack extensions.
Thought I was having that problem right now, but it's my anti-virus scan, usually ties things up pretty much. -
Windows XP. I used to use Firefox and it worked okay. I'm not sure why I downloaded a new version but it won't open. The window that says "Firefox Update" continues to try to load. Hour glass symbol, for hours. If I try to click on the Desktop symbol, Nothing. Then when I try to shut down, it's slow, programs won't quit, or it freezes. I've removed Firefox completely and tried downloading again with the same results. Even with the latest version. Shit. Whassup?
Hi zenithtwc, to test whether this is a settings issue, could you do a three-minute experiment?
'''Create a new Firefox profile'''
A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder.
Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
firefox.exe -P
''Don't delete anything here.'' Any time you want to switch profiles, exit Firefox and return to this dialog.
Click the Create Profile button, assign a name like Test731, and skip the option to change the folder location. Then start Firefox in the new profile you created.
Can it reach the internet?
When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong. -
Converting seconds to Days,Hours,mins and secs
Hi gurus,
I have a metric in seconds , which is a box uptime . I want to convert that into Days,hours , mins and secs .How can I do that ?
For example , If I have 433500 secs , I should show it as 5days 00:25:00 or in some meaningful format . Can anyone help me out ?
Thanks,Hi,
Refer thinks,
Re: seconds to hh:mm:ss format
OBIEE 11g - Change seconds to DD HH:MM:SS format
Deva -
Hour glass showing instead of thumbnails when importing new photos
I just started using Photoshop 10. When I import photographs from my camera or from any other source, the thumbnails do not show in the catalog, I can only see an hourglass.
If I click on the hourglass, the picture opens and the picture shows perfectly, so the file is there. However when I close the picture an d go back to the "show all" the thumbnails still does not work, it only shows an hour glass.
This was not happening when I was using Adobe Photoshop 9 and I am still using the same Windows Vista computer.Try selecting the thumbnails (Shift+Click) or (Ctrl+A) to select all, then click on the top menu
Edit à Update Thumbnail For Selected Items
If that doesn’t work close Elements and delete the thumbnail cache by navigating to:
C:\ProgramData\Adobe\Elements Organizer\Catalogs\MyCatalog
In side the MyCatalog folder (or whatever name you gave your catalog) you should find a CACHE file:
thumb.5.cache
After deleting that file restart the elements Organizer and wait whilst it regenerates thumbnails.
N.B. The ProgramData folder is sometimes a system hidden file, in which case please follow these instructions before starting.
http://windows.microsoft.com/en-US/windows-vista/Show-hidden-files
Maybe you are looking for
-
Notes field in Capture dialogue - Where does that information go?
I have been capturing a lot of complete tapes lately (using Capture Now), and I have used the Notes field to some extent to describe the content. However, I cannot seem to find that information when I look at the clip in the browser, even in list mod
-
Grey dotted circle on phone in itunes
i why are the songs like that i just restored through icloud on my iphone 5 and they are like that? how do i get rid of it
-
"iTunes is updating..." but it's frozen!
I have just acquired my first iPhone as a hand-me down from my son. Connected to iTunes via my computer running Mavericks 10.9.2. I started the process of updating the software to iOS 6.1.3. The progress bar has now been frozen at about two thirds pr
-
Wanted to create a directory- but insufficient privilage
My SQL Query: create or replace directory <dir_name> as '<PATH of my file in my local machine>' I could not successfully execute the above statement in oracle application express as i said "insufficient privilage"/ I wanted to create a directory path
-
Hi I'd want return a recordset into a procedure (..curRecord OUT SYS_REFCURSOR) using a connectionstring DSN with provider Microsoft ODBC for Oracle. I can create an ADO connection (MyConnection) and ADO command (MyCommand), but when I execute next s