Change custom cursor size

does anybody know how to change a custom cursor's size? we have created a custom cursor using the toolkit, but we can't seem to resize it so that the cursor is bigger.

Read the API on java.awt.Toolkit
createCustomCursor() creates a cursor of whatever size the system can handle. Generally, this is 32x32 for Windoze systems. toolkit.getBestCursorSize() will return a closest supported size for some (w,h) suggestion. You have to draw your image on a BufferedImage using the graphics object, then submit the BufferedImage object to toolkit.createCustomCursor()
Jason

Similar Messages

  • How do I change the cursor size.

    How do I change the cursor size. I  enlarged  it and now cannot remember where the command is to put it back to normal.

    System Preferences->Accessibility->Display
    Adjust the Cursor Size slider there

  • Programmatically change mouse cursor size

    LV 8.5 on Windows XP
    Is there a way to change the size of the mouse cursor (custom or otherwise) programmatically? I can load custom cursors using included vi's but can't find a way to change the size - the cursor vi's are locked so I don't know what is going on behind them.
    Thanks

    smercurio,
    I had found that thread but the API example is written in 5.1, unfortunately I have wiped this machine several times since running 7.1 and would rather not reinstall if I can avoid it. (As I understand it 7.X can open the 5.X and THEN I can open in 8.X)
    I will look around for a machine running 7 and go from there but any other suggestions would be appreciated.
    Thanks again!
    -Jolt

  • Cursor size is stuck at medium size

    Changed my cursor size just to see how it looked, but after i had changed up to medium and large it would not let me change down to the normal cursor size. So now im stuck with a big cursor and its VERY annoying. tried turning the computer off and all that but it dident work.
    PLEASE HELP.

    If all else fails, do you have a recent System Restore point that you could roll back to?
    Yoga 2 Pro: i7, 256 gb SSD, 8gb RAM, Intel 7260 Dual Band AC + BT 4.0, manufactured 6/6/2014

  • Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color?

    Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color in Mountain Lion? Any software for customizing and saving different cursors for Mountain Lion? Already have cursor size changed, but would like more options. Are more cursor customization options coming in future Mac OS X versions?

    There may be some haxies/3rd party s/w that can do this, but I've not heard of them.
    Customisation is limited on macs, unless you start hacking deep into the coreservices of the system - dodgy at best and almost certainly to get reset on the next update from Apple central
    Think different? Nooo....that was just a slogan.

  • Custom Page Sizes - How to change from centimeters to Inches?

    Hello,
    I'm working on some panoramic prints to an Epson R2400 and I need to set up a custom paper size for printing to roll paper. When I select Custom Page Sizes from the Page Setup dropdown, all my measurements are forced into centimeters. Even if I try and specify it to be in inches when I type in the values, I get an error saying "Invalid Number" because of the " (in mark designation).
    And because the input box only allows two decimal places, I can't get accurate inches-to-centimeter conversions because the sizes I need are 3+ decimals when converted to centimeters.
    Searching on the web I've come across many pages with info on the Custom Page Sizes dialog box and the images show the values being set in inches, but I've found nowhere that says where you specify where I can change this default measurement?
    If anyone could help me, it'd be greatly appreciated!
    Thanks,
    Kristin.

    Answering my own questions.
    Because I'm Canadian, in Preferences -> International -> Formats I needed to change "Measurement Units" to "US" instead of "Metric".
    k.

  • How to load and increase size of a custom cursor on a certain monitor (1st or 2nd)?

    In my application I need to load a custom cursor, make it big and display it on the my second monitor in a dual monitor setup to let user click with an additional mouse. I found this thread able to solve the first 2 questions, however the cursor only changes within the VI panel. I had tried but couldn't get a handle to the second monitor, in face, not my primary one as well since I'm not familiar with winapi. I also want to restrict when the user can use the second mouse and only in the second monitor if possible. By the way I am using windows 7 64 bit with Labview 9 32 bit.
    Thanks,

    Ishi,
    More than likely, you are going to have to use Windows OS APIs for this. It sounds like you would like to integrate your program at the operating system level, and will have to make calls to Windows to accomplish this in the proper manner.  You can make calls to Windows in LabVIEW through several methods. Check out this example that sets the position of the cursor via a Call Library Function Node to the Windows SDK.  
    http://zone.ni.com/devzone/cda/epd/p/id/2315
    Cheers,
    Aaron
    National Instruments

  • Change Cursor Size with Pen Pressure

    Does anyone know of a way to make the paintbrush cursor size change dynamically according to pen pressure with a tablet?
    I'm coming to Photoshop from GIMP, and in GIMP when you use more or less pressure on the tablet, the cursor icon automatically changes size based on the pressure so you know exactly how large a line the tool will draw.
    In Photoshop it seems you can choose "normal" or "full size" for the cursor circle, or else use crosshairs, but there doesn't seem to be an option for a dynamically shaped cursor. Am I wrong and just missing something? Or does Photoshop really not have this feature?

    When you press and hold Option/Alt  + Control  and Left mouse click and drag nothing happens?
    (the button on your pen is set to left click?)
    The Option/Alt key should always be the second key to the left of the spacebar
    The Control key should always be the third key to the left of the spacebar

  • Custom cursor - dynamically change colour

    Since I failed to gain access to [Embed]ed SWF file to change
    its properies from within Flex :-(
    has anyone got any ideas how to create a custom cursor and
    dynamically change its colour.
    Let's say we have a brush or a pencil cursor and we want to
    change the colour of its tip, when a certain coloured button is
    pressed with it.
    Thank you.

    Use sym for your element.
    sym.$("button").css({'cursor':'pointer'});

  • Cursor size limited to 32x32?

    Hi,
    I'm trying to implement a custom cursor on my DnDTable, and the idea is that it must display the name of the dragged object.
    I already found out how to change the cursor to one of my own (Toolkit.createCustomCursor()), but the problem is that I can't resize the cursor.
    I want it to be at size (120, 10), and it seems I can't change the default size of the cursor.
    Anybody knows how I can change a cursor to a bigger one of my own??
    Thanks in advance!
    Gerben

    What do you mean? I use this method to start dragging:
    void startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
    The cursor is one of the default or system cursors, or the one created by myself with this method:
    Toolkit.createCustomCursor(Image cursor, Point hotSpot, String name)
    which returns a Cursor object. I draw a string in the BufferedImage in order to display the DataObjects name.
    But, because it seems the OS limits cursors to a maximum size of 32x32, I just can't get my Image larger than 32x32. So I'll have to hide the cursor and draw a whole new (and bigger) component over it.
    Am I going wrong somewhere here? If there's any other way, I'd love to hear it!!

  • Quality Custom Cursor (Dukes)

    I have created my own Custom Cursor that is displayed while a long task is running (in a different thread) to show the user that the program is busy.
    Cursor search1 = myToolKit.createCustomCursor(myToolKit.getImage("Resources/Images/Cursor1.png"), new Point(0, 0), "Search1");Sun says:
    Note that multi-frame images are invalid and may cause this method to hang.
    So I created a Timer that changes the icons every 500ms to give the impression of a slow animated cursor.
    This works, however,
    There are three problems:
    1. The time between changing frames is not 500ms, it seems to be very jumpy. It is running in a different thread so I thought it wouldn't be a problem. Is there any way to regulate this?
    2. The size of the cursor seems fixed, can I change it? (The size of the Image I use for the CustomCursor does not seem to make a difference)
    3. The quality appears really bad. I am using a png file that looks really clear at 100% size in Photoshop. Should I use a particular format?
    Thanks for any help
    Charlie

    Thanks very much for the quick reply.
    I have done a bit of testing on your suggestions..
    1. You could try upping the priority of that thread.Seems to work (sort of), think I'm just going to leave it!
    2. Depends on your OS. See Toolkit.getBestCursorSize.Whatever size I give it, the bestCursorSize comes out as 32x32. Do you know if any other sizes are supported or if I can override it e.g. 64x64? Using XP (Can I change the settings in the OS?)
    Would it just be best to resize my image files then?
    3. See Toolkit.getBestCursorSize API doc.Thanks!
    Think I'll give you the Dollars unless someone else comes up with a great answer soon
    Charlie

  • How to change Default document size for CC Library Graphics (InDesign)

    Good morning --
    I have just discovered the amazing uses of the CC Library setup in InDesign and would love to be able to use it as a tool to collaborate template galleries amongst coworkers.
    I work in an industry that offers many different templates for our Marketing pieces available to the sales team. What we have in place right now is about 50+ different templates in their own packaged files. Now, this isn't all that difficult to maneuver around, but the CC Library has made it so I can "drag and drop" templates into place. This drag & drop feature is easy enough for me to grasp, and with the proper training it should be with the rest of the team (should being the keyword). However, in some cases if you double-click on Library graphic it opens the file in it's own editable file with a custom document size of 8.5x11 Portrait (which I imagine to be the internal InDesign preset).
    My questions therefore are when I double click on the library "Graphics" can the document size be anything other than 8.5x11? Can each Graphic have it's own document preset?
    - If I open a file that is set for landscape, all of the "Graphic" falls off of the spread.
    - Some "eblasts" are much longer than 8.5x11 (sometimes as much as 8.5x20), thus knocking some of the "Graphics" into that weird space area.
    Please let me know if I am not being a clear enough.
    Thank you!
    Steve

    @Steve – you are totally clear what you are doing and what you like to do.
    But I fear an automatic setting that is creating the page size according to an asset's size does not exist right now.
    I can change the size of a new document beforehand, if no document is open and create a new size in the document's properties dialog with the keyboard shortcut alt + cmd + p (in my German InDesign on Mac OSX 10.7.5). But you have to know in advance what size that should be.
    Example: If I chose A3 instead of A4 (my default) when no document is open and double click an asset in a CC Library the asset will be placed in a one page document sized A3.
    1. Changing the size (no document is open) in my German UI of InDesign CC-2014.2:
    2. Double click and the result is according to the settings I made:
    Uwe

  • Custom cursor using image gets resized bigger

    I have created a custom cursor using the following code:
    ClassLoader cl = this.getClass().getClassLoader();     
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
    Cursor Custom_Cursor = tk.createCustomCursor(im,new Point(9,9),"Drawing wall");
    draftGrid.setCursor( Custom_Cursor );The cursor is loaded and it works, however - the image I use for the cursor is resized so it gets too big. Any clues on why this happens?
    btw; draftGrid is one of my own classes that extends JComponent.
    - bjorn

    Thanks for your replies guys.
    I tried your code KPSeal, and it works in resizing the cursor image back to its original size. However, a gray square of size 32,32 (which is returned by getBestCursorSize()) is shown round the cursor.
    Here is the updated code (yours hade some minor bugs)
    Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
    try {
           tracker.addImage(im, 0 );
           tracker.waitForID(0);
    } catch( InterruptedException ie ) {
           ie.printStackTrace();
    int w = im.getWidth(this);
    int h = im.getHeight(this);
    int pw = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).width;
    int ph = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).height;
    System.out.println("w="+w+", h="+h+" - pw="+pw+", ph="+ph);
    Image cim = createImage(pw, ph);
    cim.getGraphics().drawImage(im,0,0, this);                     
    Cursor Custom_Cursor = tk.createCustomCursor(cim,new Point(0,0),"Drawing wall");
    draftGrid.setCursor( Custom_Cursor );The System.out.println statement prints: w=18, h=13 - pw=32, ph=32
    If I try to do the createImage with w and h instead of pw and ph the same gray square (32,32) is created, and in addition the cursor's size is too big which was the probem to begin with ...
    - bjorn

  • Custom cursor using startDrag

    Hello everyone,
    I have a movieclip following my mouse to act as a custom cursor.
    I am using startDrag on the movie clip and mouse.hide()
    What I am trying to resolve is the following:
    I have several hidden simple button objects in the background of my flash movie. ( I am using these to detect when the user has the mouse in certain areas of the flash movie)
    When i go to move over these simple buttons, my custom cursor movieclip stops following the mouse cursor.  Normally my cursor would also then change to the Hand cursor, but i disabled that.
    Can anyone think of any method or hack that would make this work for me?  I would like my custom cursor following the mouse pointer at all times even when hovering over a simple button.
    thanks in advance.

    The cursor changes to hand cursor yet?
    When you say "single button Several hidden objects", the number is?

  • How do I print on a greeting card in landscape when I can't save custom paper size?

    I have a J6450 running on XP SP3 with the latest drivers and patches installed.  I have greeting card stock measuring 6.5 by 10.0 inches and a Microsoft Word document with a custom paper size matching the that stock prints in landscape mode.  The printer error is "Paper Mistmatch.  Paper size or type is incorrect."  I have followed the suggestions on the HP support page, changing the Print, Properties, Features options to show "Other greeting card", but can't define a custom paper size to match the stock.  The Save option is not available.  What do I need to do to make this work? 

    Here is a link to a HP document for adjusting several settings that may help with your issue.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01824353&tmp_task=solveCategory&cc=us&dlc=en&la...
    Dave M.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution.
    I am an HP employee.

Maybe you are looking for

  • What is WRONG with my MAC G5?

    Hi all, I've posted several times in various forums about a number of problems I've been having that remain unresolved, and would like to appeal once more for help. I have a 6 year old 2GHz PowerPC G5 (2004) with 4GB of RAM, running FCS 6.0.6 and OS

  • Need help in AUTONOMOUS_TRANSACTION(pl/sql)

    Hi, I'm havaing a procedure which is calling a autonomous transaction. I'm unable to get the changes made by the caller procedure. The commit and rollback of the session is controled by the JSP code and not in procedure. I have gone thro doc and came

  • [SOLVED] Clarification of Changes to LVM

    Hi, I need a clarification. The following bullet point is published in the "Latest News" on this website (Archlinux), "Changes to LVM" 2013-02-12: "The lvm2 initramfs hook now requires the udev hook." I am assuming the two hooks ("lvm2 initramfs" and

  • Does any one know if/when more companies will sign up to using Passbook in the UK?

    Hi, I really enjoy using Passbook but there aren't many companies currently using it. Does any one know whether we will have more companies or brands signing up to use Passbook soon? Thanks

  • ISE Alarm: Warning: Profiler Queue Size Limit Reached

    Anyone know what this error means and more importantly, is it anything to really be concerned about?  We started receiving this today for one of our PSNs and have been getting the alert every five minutes.  There hasn't been any 'known' impacts from