Cursor does not change on disabled controls

How can I set another cursor on disabled nodes?
My use case:
I want to disable a node, while a Task is running and simultaneously change the cursor to the wait cursor.
But it has no effect, if the node is disabled.
Any solutions?
import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class TestApp3 extends Application {
    public static void main(String[] args) throws Exception {
        launch();
    public void start(final Stage stage) throws Exception {
        VBox root = new VBox();
        Button button = new Button("Test Button");
        root.getChildren().add(button);
        root.setDisable(true);
        root.setCursor(Cursor.WAIT);
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.show();
}

can I set another cursor on disabled nodes?apparently not - log a jira with your test case.
Any solutions?A couple of workarounds.
Set the cursor on the parent of the disabled region (wrapping the disabled region in a pane for this specific purposes if needed).
import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class DisabledControlCursor extends Application {
  public static void main(String[] args) throws Exception { launch(args); }
  @Override public void start(final Stage stage) throws Exception {
    VBox root = new VBox();
    root.getChildren().add(new Button("Test Button"));
    Pane wrapper = new Pane();
    wrapper.getChildren().add(root);
    root.setDisable(true);
    wrapper.setCursor(Cursor.WAIT);
    Scene scene = new Scene(wrapper);
    stage.setScene(scene);
    stage.show();
}Set the cursor on the entire scene containing the disabled region.
import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class DisabledControlCursor extends Application {
  public static void main(String[] args) throws Exception { launch(args); }
  @Override public void start(final Stage stage) throws Exception {
    VBox root = new VBox();
    root.getChildren().add(new Button("Test Button"));
    Scene scene = new Scene(root);
    root.setDisable(true);
    scene.setCursor(Cursor.WAIT);
    stage.setScene(scene);
    stage.show();
}

Similar Messages

  • Cursor does not change during the editing of clips

    Hi. I am new to iMovie and am looking for some help. I have imported my clips, put them in my timeline and I want to shorten the clips. According to the movie that is on the Apple web site, when moving my cursor over the line separating my clips, my cursor is to 'change' allowing me to shorten the clip. Well, my cursor does not change. Is there a setting that needs to be corrected. Thanks for any help that can be offered.

    Hi konrad - the View Menu DOES have a 'Show Clip Volume Levels" IF you are using iMovie HD!
    But according to your Profile you have iMovie 4. Volume control in that version is at the bottom beneath the Timeline Audio tracks.
    Hope this helps clear up your confusion.
    Better to use the iMovie 4 forum in your case!:-)

  • Cursor does not change when hovering over pop-up window link

    I created a text link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon.
    I don't know a lot of javascript, but can figure it out if it's just adding some code.This was done in CS3. Any help would be appreciated! Here's the code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    Thanks in advance.
    Todd

    A link would be nice but I suspect that you are not gettign the finger (you knwo what I mean) when you roll over the link because your href is  not set to anything.
    <a href="" onclick=MM_openBrWindow('images/image.jpg','largeDisplay','scrollbars=yes,resizable=yes,width=100,height=120')
    Set your href to "#" or "javascript:;" - the latter is preferred.

  • Tool cursor does not change or does not show up

    If you change tools in Photoshop but the cursor does not change (or disappears entirely), this indicates a bug in your video card driver. To fix it, you need to update your video card driver.
    Sometimes you can fix it temporarily by turning down the hardware or driver acceleration in the properties panel for the video card.

    Chris Cox 11/23/02 4:59pm

  • Cursor does not change for pop-up window

    I created a link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon.
    I don't know a lot of javascript, but can figure it out if it's just adding some code. Any help would be appreciated! Here's the code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    Thanks in advance.
    Todd

    Hi Todd,
    i got the same problem.(cursor not change for pop-up windows) and because i m not an expert in internal html code i did try several solutions to fix it.
    The easiest (but also even longer if u need to do severals) is to create a button (withs 2 overflight changing pics) with "inserer", "image survolée"
    the "image survolée" can be linked to a pop-up window with the correct effect.  To do so highlight the "expected new link to" and on right side task bar ad a "comportement" named "ouvrir la fenetre du navigateur" and optionally choose the size and windows available function of the pop-up. It works even if u need to proceed first with an overflight changing button.
    The result is longer to obtain and not absolutely perfect. So I guess it s only an help solution for a single mateer. i would be glad to get another solution with a text link rather than using the overflight button system. Technically it should be better, more efficient and faster to proceed with applying an html code that really makes the text appearing as a classic link to a new windows whatever pop up or full size window. Please let me know if u get further answer to fix this problem.
    Many thx and excuse my technical english translation about DreamCs4

  • Cursor does not change to a circle when using eraser

    Cursor does not change to a circle when using the eraser.
    I'm sure it must be a tick box somewhere.
    Its always been ok previously.

    I had this same problem and was searching for answers. I also prefer using a circle instead of crosshairs. I hope you've figured it out by now, but, if you haven't, here is the answer (I am using Elements 9, but, it should work for other versions I think):
    1. Open up Elements Editor, Click on Edit, Click on Preferences, Click on Display & Cursors.
    2. Under Painting Cursors, select Full Size Brush Tip
    3. (optional) - if you want crosshairs within your circle, then also select Show Crosshair in Brush Tip.
    4. Click ok.
    Now use the brush, and it should have a circle to use.
    P.S. Sometimes if you have your Caps Lock key on, that removes the circle as well.

  • Cursor does not change with tool selection

    Has anybody experienced this?  My cursor suddenly does not change with the selection of tools when working on photos.  Once I roll over the picture the arrow is lost and becomes a strange 3 small things, so can't do any work accurately.  Still using PS 7 in Win 7.  This was not a problem previously.  Already uninstalled and reinstalled and problem is still there.  I have searched for where this can be fixed.  So far no luck.  Any suggestions?

    First answer, PS 7, not Elements.  Second answer, BIG THANKS, the dpi change corrected the problem. 
    It was an odd issue as PS was working fine for years and then suddenly the problem occured, even though I had not changed the dpi recently.
    A true glitch.  Thanks again for the fix.  Working fine again.

  • Cursor does not change over links in flash since the upgrade to firefox4

    Pointer does not change to a hand when hovering over a link in flash using the firefox4 update.

    Works fine for me in version 1.4.2.
    Read this link on [url http://www.physci.org/codes/sscce.jsp]Creating a Short Demo Program, if you need further help.

  • Cursor does not change and dock is not responding

    mac mini mid 2011, 10.9.5 logitech wireless keyboard and mouse (wave). Dell 20 something inch monitor with lighting to mini display to hdmi.
    My cursor will get stuck on the arrow and not change on text input fields or the index finger to select links. If it does change at some random point, it will stay to whatever it changes, until it decides to change again. This will change every 10 to 15 minutes depending on how heavy I'm using it. The dock is also not responsive. If it is hidden, it will not pop up, if it is up on magnify, it will not magnify. Once in a great while it will magnify, but only to one spot and will not change.
    In addition, when I hover the mouse, things will not appear or recognize the mouse, like a print or zoom on the bottom of a pdf, or even a field on some web pages. It will not allow me to select some fields. www.jobs.ca.gov is the best example, I can not type a search or select a position. One time I even had the system settings icon stuck to my mouse and could not put it back on the dock. It followed the mouse, when I would single click, it would stay where it was, unless it was at the dock. If I double clicked it would open.
    I've only had this mini for about 4 months, this problem has only been going on for the past couple weeks. There have not been any changes in those past few weeks that I'm aware of. I did upgrade to 2 4gb ram 6 weeks ago and did a software update to 10.9.5 about 2 weeks ago, but I was hoping that would fix this problem. It did not.
    I was also having tons of problems with safari about a week ago, but a reboot into a certain mode, then back to normal reboot solved that.
    Thanks everyone in advance for you time and help.

    I had this same problem and was searching for answers. I also prefer using a circle instead of crosshairs. I hope you've figured it out by now, but, if you haven't, here is the answer (I am using Elements 9, but, it should work for other versions I think):
    1. Open up Elements Editor, Click on Edit, Click on Preferences, Click on Display & Cursors.
    2. Under Painting Cursors, select Full Size Brush Tip
    3. (optional) - if you want crosshairs within your circle, then also select Show Crosshair in Brush Tip.
    4. Click ok.
    Now use the brush, and it should have a circle to use.
    P.S. Sometimes if you have your Caps Lock key on, that removes the circle as well.

  • Cursor does not change back to default after resize

    Hi all,
    I have a modal decorated JDialog, in normal situation, i put the cursor on the border, the curosr will change to resize cursor, so i drag it and the dialog is resized, after resized, the cursor should change back to default cursor when i enter the dialog again, but i found that somotimes after several resizes, the cursor fail to change back to default and remain as the resize cursor.

    Hi
    I think there is nothing so strange to cause the problem so I did not put it before, but if someone can help me I will be thankful.
    public class TestFrame extends JPanel
         private static TestFrame testFrame;
         private JFrame frame;
         public static void main(String args[])
              JDialog.setDefaultLookAndFeelDecorated(true);
              testFrame = new TestFrame();
              testFrame.mainImplementation();
         private void mainImplementation()
              JButton jButton = new JButton("Show dialog");
              jButton.addActionListener(new ButtonActionListener());
              add(jButton);
              frame = new JFrame();
              frame.setContentPane(this);
              frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              WindowListener l = new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              frame.addWindowListener(l);
              frame.setBounds(0, 0, 500, 500);
              frame.setTitle("Test");
              frame.show();
         class ButtonActionListener implements ActionListener
              public void actionPerformed(ActionEvent e)
                   MyDialog jDialog = new MyDialog(frame);
                   jDialog.setVisible(true);
         class MyDialog extends JDialog
              public MyDialog(Frame owner)
                   super(owner);
                   setModal(true);
                   getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
                   JLabel label1 = new JLabel("Label1");
                   JTextField textField1 = new JTextField();
                   textField1.setEnabled(false);
                   textField1.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JLabel label2 = new JLabel("Label2");
                   JTextField textField2 = new JTextField();
                   textField2.setEnabled(false);
                   textField2.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JLabel label3 = new JLabel("Label3");
                   JTextField textField3 = new JTextField();
                   textField3.setEnabled(false);
                   textField3.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JPanel panel = new JPanel(new GridLayout(3, 2));
                   panel.add(label1);
                   panel.add(textField1);
                   panel.add(label2);
                   panel.add(textField2);
                   panel.add(label3);
                   panel.add(textField3);
                   getContentPane().add(panel);
                   pack();
    }

  • In Firefox window below toolbar, I am unable to click on links in the upper part of the window, ie the cursor does not change into the hand icon and the link is not highlighted.

    The toolbar and the lower part of the window works normally, as does the whole window in Internet Explorer.
    I have reinstalled Firefox with no improvement.

    Many thanks SafeBrowser; I think the Yahoo and Babylon extensions were the problem. Didn't want them anyway!

  • JSplitPane divider does not change cursor in JDialog

    Hello,
    I am working with a JSplitPane added to a JDialog and when
    I try to move the divider the mouse cursor does not change
    to the resize cursor. If I add the JSplitPane to a JFrame it works
    ok. Is this a bug???
    Try the following code:
    JDialog d = new JDialog();
    d.add(new JSplitPane());
    d.setSize(640,480);
    d.setVisible(true);
    Thanks for any help!

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      JDialog d = new JDialog();
      public Testing()
        JSplitPane sp = new JSplitPane();
        d.add(sp);
        sp.setUI(new MyUI());
        d.setSize(640,480);
        d.setVisible(true);
      class MyUI extends javax.swing.plaf.metal.MetalSplitPaneUI
        public javax.swing.plaf.basic.BasicSplitPaneDivider createDefaultDivider()
          javax.swing.plaf.basic.BasicSplitPaneDivider divider = super.createDefaultDivider();
          divider.addMouseListener(new MouseAdapter(){
            public void mouseEntered(MouseEvent me){
              d.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
            public void mouseExited(MouseEvent me){
              d.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
          return divider;
      public static void main(String[] args){new Testing();}
    }Message was edited by:
    Michael_Dunn
    [EDIT]
    will also need to add Cursor code for mouseDragged()

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • Why the mouse pointer in Logic Pro does not change shape during work in OSX 10.9.1?

    I've a MacBook Pro Retina 15-inch Late 2013 and I'm using two external displays. One connected to to the HDMI port (display 1) the other to thunderbolt (display 2). The MacBook display is closed. I’m working with Logic Pro 9.1.8 (32bit) with OSX 10.9.1
    Why the mouse pointer in Logic Pro does not change shape during work???
    It was already difficult with OSX 10.9 but now after upgrading to 10.9.1 it's game over!
    At least before I could select which display use Logic Pro to have all the shape functions of the pointer. Not in both displays, so to be forced to edit in ONLY ONE of the two displays using this workaround: (right click on Logic icon in Dock: Option --> Desktop on Display 1). Now or I select “Option --> All Desktops” or does not work. However, by selecting all displays you say goodbye to Mission Control. This can’t be a solution!!!
    The amazing thing is that Nuendo has no problem while Logic Pro, Apple's native software, it can't!
    With Nuendo it’s indifferent in which display you are working, the shape of the mouse pointer changes shape depending on the requirement in both displays.
    This thing drives me crazy!
    Solutions?
    Here some ideas in other foums:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=86264
    But this aren't really solutions but workarounds. Use Logic in all desktops makes Mission Control useless!!

    I installed all over again by formatting as suggested by the genes of pro application support. Each plug-in, each virtual instrument, a job that lasted 3 days. And as suggested for each new plug-in I proceeded to check the proper functioning of Logic Pro and did each time a back up with Time Machine.
    The Result:
    Logic works as it should ONLY on the primary monitor and ONLY on the first desktop.
    BUT
    Reason and Nuendo dont' have this issue !!
    I believe that Apple developers are thinking only to mobile phones and things like messages or face time.
    And that's not all!
    After a few weeks, perhaps by installing a version of Adobe Acrobat, I say maybe because I'm not sure, logic has stopped working properly. Again problems with the mouse pointer.
    Luckily I had a back up! But now I'm terrified to install new programs. Thanks Apple!

  • When Matching Users Via Email, Changing Email Address Does Not Change Login

    Well, the subject pretty much says it all, but here're some examples of what's going on:
    Initial Data
    - Create 2 Business Partners in SAP, C1 and C2.
    - Create 2 Contact Employees in SAP, Adam with email adam at eden.org in C1 and Eve with no email in C2.
    Synch
    - Run Initial Synch followed by Standard Synch (for good measure).
    - Web Tools gets user Adam with username adam at eden.org.
    - Web Tools gets user Eve with username 2, the unique key for SAP's Contact Employee.
    Data Change In SAP
    - Adam's email is removed.
    - Eve's email is populated with eve at eden.org.
    Resynch
    - Run Standard Synch.
    - Web Tools changes both email addresses, with Adam's being erased and Eve's becoming eve at eden.org.
    - Web Tools does not change the UserID, leaving Adam's as adam at eden.org and Eve's as 2.
    That last bullet is the big problem: if a user changes an email address, the username doesn't change. Is there any way to change this across the board, or perhaps even force users to login via their current email address?

    Also, there is a field in the Users table called EmailLogin. I have tried without success to change this field so that the user would use this field to login instead of the UserID, but have been unsuccessful in getting it to work.
    As an alternative, the login control in /plugins/loginblock.ascx contains, as a portion, the following code:
        protected void loginMain_LoggedIn(object sender, EventArgs e) {
            NPUser user = new NPUser(loginMain.UserName);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, false);
    Wouldn't it be simple to do the following?
        protected void GetUserIDFromDBByEmail(string email) {
            string userid;
            System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection();
            System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(conn, "SELECT Users.UserID FROM Users WHERE Users.Email='" + email.Replace("'", "''") + "'");
            userid = (string)cmd.ExecuteScalar();
            cmd.Connection.Close();
            conn.Close();
        protected void loginMain_LoggedIn(object sender, EventArgs e) {
            string userid;
            // Though we're passing the "username" from the form,
            // we know that we're expecting the email to be in it
            userid = GetUserIDFromDBByEmail(loginMain.UserName);
            NPUser user = new NPUser(userid);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, false);
    Again, the benefit to this is that you can synch using the Internal B1 Contact Code, which will remain constant and unique, and have the availability to change the way the user logs in by modifying the email address. Of course, email addresses would have to remain unique as well, but that's an easy enough thing to check for.

Maybe you are looking for

  • How do I erase the data from a partioned hard drive.  I've already erased trhe bootcamp drive but I can't erase OSX.  The operating system is Snow Leopard.

    How do I securely erase all the data from my hard drive (it has a bootcamp partion which I succesfully erased).  I'm giving my Macbook Pro to my daughter but I want all the data securely gone before I give it to her. Disk Utilities does not allow me

  • Gnome-control-center - User deleting not working,

    Hi all, Using gnome shell, I am trying to delete a user I created for test using the same gnome-control-center; but trying to delete it now but when I press the delete key gnome-control-center crash with the option to delete files - and if I choose t

  • Charge with no reason !!

    Hi Apple, In my recent visa bill I got some charge for APL itunes store, however I believe that I have NOT purchase any Apps or anything else. I'm student with no income please review my amount and put this into your consideration. the charge was on

  • C202 idoc generation

    Hello All, I have a requirement like this. For transaction C202, (Master recipe change), when I go to Materials->BOM and change material quantity, and save the document, an idoc should be created. We hve Idoc type, Message type and Object type copied

  • Why do I have no sound on the new Garageband?

    I have no audio coming from Garageband 10.0.2. Downloaded it on Saturday and have spent the last two days trying to figure out why it won't work. I'm using a macbook pro with an Alesis QX49. GB registers keyboard when I plug it in but no sound whatso