busy-cursor

Wait cursor and disable java application

不想你离开。 提交于 2020-12-29 04:30:57
问题 I want to have the user press a button to kick off a background thread. While the thread is processing, I want two things to happen: 1) A WAIT_CURSOR should be displayed. 2) The application should not respond to mouse events. As per the setCursor documentation "This cursor image is displayed when the contains method for this component returns true for the current cursor location, and this Component is visible, displayable, and enabled. ". I want my application to be disabled while this

Wait cursor and disable java application

主宰稳场 提交于 2020-12-29 04:29:07
问题 I want to have the user press a button to kick off a background thread. While the thread is processing, I want two things to happen: 1) A WAIT_CURSOR should be displayed. 2) The application should not respond to mouse events. As per the setCursor documentation "This cursor image is displayed when the contains method for this component returns true for the current cursor location, and this Component is visible, displayable, and enabled. ". I want my application to be disabled while this

busy mouse cursor when page loading in ASP.NET [closed]

╄→尐↘猪︶ㄣ 提交于 2020-01-11 12:12:06
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I just want to inform the user that the page is busy when it is loading or the action is being carried in the background or when the postback occurs by just changing the mouse cursor to busy. The cursor should turn to normal pointer when the page is completely loaded in ASP.Net. 回答1: try this from

busy mouse cursor when page loading in ASP.NET [closed]

白昼怎懂夜的黑 提交于 2019-12-02 04:28:50
I just want to inform the user that the page is busy when it is loading or the action is being carried in the background or when the postback occurs by just changing the mouse cursor to busy. The cursor should turn to normal pointer when the page is completely loaded in ASP.Net. try this from setHourglass With ASP.NET pages this is a bit more of a problem to do. You need to employ a little JavaScript. Add this JavaScript between the tags on your ASP.NET web page: Code: function setHourglass() { document.body.style.cursor = 'wait'; } Now you have to tell the web form to run the JavaScript

Getting the browser cursor from “wait” to “auto” without the user moving the mouse

↘锁芯ラ 提交于 2019-11-26 19:44:47
I use this jQuery code to set the mouse pointer to its busy state (hourglass) during an Ajax call... $('body').css('cursor', 'wait'); and this corresponding code to set it back to normal... $('body').css('cursor', 'auto'); This works fine... on some browsers. On Firefox and IE, as soon as I execute the command, the mouse cursor changes. This is the behavior I want. On Chrome and Safari, the mouse cursor does not visibly change from "busy" to "auto" until the user moves the pointer. What is the best way to get the reluctant browsers to switch the mouse pointer? user213788 It is a bug in both

Getting the browser cursor from “wait” to “auto” without the user moving the mouse

南笙酒味 提交于 2019-11-26 07:25:55
问题 I use this jQuery code to set the mouse pointer to its busy state (hourglass) during an Ajax call... $(\'body\').css(\'cursor\', \'wait\'); and this corresponding code to set it back to normal... $(\'body\').css(\'cursor\', \'auto\'); This works fine... on some browsers. On Firefox and IE, as soon as I execute the command, the mouse cursor changes. This is the behavior I want. On Chrome and Safari, the mouse cursor does not visibly change from \"busy\" to \"auto\" until the user moves the

java wait cursor display problem

僤鯓⒐⒋嵵緔 提交于 2019-11-25 23:38:19
问题 I am having issues displaying a wait cursor in my application. Whenever the mouse is above a panel that defines its own cursor, the wait cursor does not appear. If a panel does not change the cursor, the wait cursor appears. I am attaching a SSCE to accurately explain my problem. public class BusyCursorTest extends javax.swing.JFrame { public BusyCursorTest() { javax.swing.JMenuBar menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu menu = new javax.swing.JMenu(\"Menu\"); javax.swing