Make my mouse invisible please.

Hi, Im making a game (Not in an applet) using swing. I want to have a custom cursor in my game. So I drew up an image, and move it around the game where ever the mouse is by use of the mousemotionlistener. Now all I need to do is make the original mouse invisible when its over the application, like C++ games do. Is there a way to do this in Java? Or do I have to use directx's mouse exclusive mode ability? I don't really want to use directx so I was hoping there was a method in the Java API that could do this for me already.
Any help would be great :)

OMG thanks!! :D
I got it to work as follows:
(Note: null.gif is a 1x1 transparent pixel image)
// Done inside the constructor of a class extending JFrame
Toolkit tk = Toolkit.getDefaultToolkit();
Image InvisMouse = tk.getImage("null.gif");
setCursor(tk.createCustomCursor(InvisMouse,new Point(0,0),""));I had to use a .gif since the buffered image gave a compile time error, and creating an unbuffered image turned the mouse into a grey fully opaque square.
Thanks again!

Similar Messages

  • Ctrl + secondary mouse button (Trying to make a button invisible)

    Hi Portal Experts,
    I am trying to make a button invisible basically personalization of Iview we are in SAP Portal version 6,40. I have kept mouse on the button and action was Ctrl + right click of mouse and i am not getting the properties screen rather a general windows options(Second screen shot). It would great if i can get suggestions to get the properties screen.
    Thanks in Advance..!!
    Regards
    Venkat

    Hi Venkat,
    Can you check the value of property "AllowUserPersonalization" in Visual administration Services → Configuration Adapter → webdynpro → sap.com → tc~wd~dispwda - propertysheet
    Also what is the exact version of this portal?
    Mahesh
    Message was edited by: Mahesh Krishnapillai

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • How to make a field invisible using t-code SHDG

    Hi Experts,
    I got a requirement to disable a field Business unit in all transactions of Plant maintainance. I heard that it can be done with the help of transaction SHDG.
    I am not aware of this transaction. So anyone please provide some information or the material related to this transaction.
    Also let me know. If i make this field invisible using this transaction. If the same field business unit is used in other modules such as SD, FICO then there also will it get invisible?
    If that is the case how to overcome the above scenario.
    Useful answers are rewarded....
    Thanks
    Kiran.

    Hi,
    I think its not shdg but shd0.
    the best way to do it is Screen Variant and Transcation Variant.
    Tcode for it is SHD0 and you can disable, make any field invisible, make screen invisible , can have default value can be done through SHD0.
    Try it. It will be helpful for you.
    http://help.sap.com/saphelp_47x200/helpdata/en/7d/f639f8015111d396480000e82de14a/frameset.htm
    Regards

  • Make a folder invisible

    How can you make a folder invisible in the Finder, but still have access to it within programs. I know I did this in os 9 and resedit.

    Hi tjrmn,
    you can use FileBuddy to do that.
    If this answered your question please consider granting some stars: Why reward points?

  • I just purchased a new laptop, so consequently had to buy Itunes Match to get all of my music back. Now everything is in the cloud, and I can't play them and cannot make a cd. Please explain how I can get

    I just purchased a new laptop, so consequently had to buy Itunes Match to get all of my music back. Now everything is in the cloud, and I can't play them and cannot make a cd. Please explain how I can get my library out of the cloud and keep them on my computer so they are available when I want them? Wow.......why have you made everything so difficult now?

    SKF5656 wrote:
    I just purchased a new laptop, so consequently had to buy Itunes Match to get all of my music back.
    No you didn't.
    Now everything is in the cloud
    Except for anything you did not purchase in iTunes Store.
    Only you iTunes purchases are in the cloud.
    Reada the article that brenden dv posted to copy your iTunes library to new computer.

  • Is there a way to make the mouse bigger

    Is there a way to make the mouse bigger

    Yes.  In System Preferences > Universal Access > Mouse & Trackpad tab > move the cursor size slider more to the right.  The graphics aren't very good the larger the size but a slight increase really helps.
    Regards,
    Captfred

  • Hi ... in forms 6i  can i make the mouse scroll verticaly & horizontly??

    when i navigate the form in runtime ,, ca i make the mouse scroll the page instead of pushing the left button on the scroll bar ??
    can anyone help?
    thanks in advance?

    thank u for your answer,
    may i ask u ,, can i found this option in 9i or 10g??
    thanks in advance
    bye

  • How to make tab strip invisible?

    hi Gurus,
    i had used a tabstrip in my screen 100. now i want make my strip invisible initailly.
    if certail condition is satisfied than i want to show my tabstrip.
    can anybody help me this,
    thanks in advance.

    Hi vipul,
    Tabstrip Controls
    Tabstrip controls are made up of pushbuttons (the tabs) and several subscreens. Each tab has its own subscreen. These tabs are part of the main screen and are therefore displayed in the field list of the dialog box for the main screen. Subscreen fields are displayed in other dialog boxes.
    According to how a tabstrip has been constructed internally:
    ●      Either a sole dialog box is displayed for the subscreen that belongs to the tab that is currently active, or
    ●      Dialog boxes are displayed for all subscreens that belong to the tabstrip control.
    If an invisible tab is set to active by the application transaction, different subscreens are selected for those tabs remaining that actually belong to other tabs. If the subscreens are invisible, it is also possible that an empty screen will be displayed.
    Technical Background:
    The transaction variant sets another tab (the remaining tab furthest left) to active. This additional active tab is, however, unknown in the application transaction, which assumes that its tab is active and selects the corresponding subscreen. If this subscreen has been faded out using the transaction variant, then an empty screen is displayed.
    CXTAB_CONTROL in SAP ABAP and TABLE CONTROL ... This field is used to make a particular column invisible or visible
    thanks
    karthik

  • How to make some nodes invisible?

    I set up a xml tree with JTree.Now I want to make some nodes invisible like the nodes which the name of the node is "datatype",how can I ?Thank you.

    I don't know if the nodes can be made invisible. But if you make cell renderer then you can evaluate the value before displaying it. If value is like 'datatype', you display (cell renderer displays) nothing as value in the cell.

  • I can't make or receive calls please help ?

    I have iPhone 4. and today morning i found that I can't make or receive calls please help ?

    Geo84gr,
    Yeah, u're right. It's nothing to do with iTunes.
    I never connect my iPhone 4 with PC, still problem comes back.
    I've asked my telco to check the prob, they said they never change anything.
    1 more testing is mayb the cellular data is off.
    I'm now letting it on to test will the problem come back or not...
    So do u switch ur Cellular Data off? Any1 one o u that is having this same prob?

  • How to make screen elements invisible ??

    Hi,
    In  my selection-screen, I can add no-display attribute to Parameter data but how can i make screen elements invisible which are declared as follows ??
    PARAMETERS: SMALLLOG as checkbox .
    thanks

    PARAMETERS: SMALLLOG as checkbox user-command abc.
    at selection-screen output.
    ***if it is input disable
    loop at screen.
    case screen-field.
    **if input disable
    when 'SMALLOG'.
       screen-input = '0'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    loop at screen.
    case screen-field.
    **if inivisible
    when 'SMALLOG'.
       screen-invisible = '1'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    Message was edited by: Vijay Babu Dudla

  • Why i Can't activate my iphone just because idont own the apple id  i dont ever know  how the email is even a password that make no sens  apple please help me i will tell you my model  my FCC ID , IC and IME

    Why i Can't activate my iphone just because idont own the apple id  i dont ever know  how the email is even a password that make no sens  apple please help me i will tell you my model  my FCC ID , IC and IME

    If the phone was previously owned and is locked to that owner's Apple ID the ONLY way you can activate it is to get that person to release Activation Lock. This is an antitheft feature of the phone; stolen phones are useless.
    If you purchased the phone new you created the Apple ID, and will have to remember it. If it is only the password you have forgotten go to https://iforgot.apple.com

  • I just bought a macbook pro and I want to know how to restore pictures that were backed up on iCloud but then deleted from my phone. Isn't that the point of the backup so I can delete and make more space. Please help!

    I just bought a macbook pro and I want to know how to restore pictures that were backed up on iCloud but then deleted from my phone. Isn't that the point of the backup so I can delete and make more space. Please help!

    Log into the iCloud on your MacBook Pro and enable Photo Stream:
    Then launch iPhoto and set iPhoto's Photo Stream preferences to the following:
    Then check the Photo Stream section of iPhoto:
    This is to confirm that the photos are still in Photo Stream. If they are they will be imported into the library. 
    NOTE: not all photos in an iPhone will be in the Photo Stream. PS only keeps photos in it for 30 days.
    If you have the missing photos in your library put them in an album.  Connect your iPhone to the Mac and open iTunes.  In iTunes you can select that album in the library and sync the photos to your iPhone to get them back on the iPhone.
    OT

  • My iphone 4 with ios 7 (very slow & keep restarting and sometime its make shuttdown) any help please ?

    my iphone 4 with ios 7 (very slow & keep restarting and sometime its make shuttdown) any help please ?
    i try to downgrade to 6.1.3 but its not possible

    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    Downgrading isn't supported by Apple, sorry.

Maybe you are looking for

  • AP cleared Item Report

    Hi, I am use SAP query to build a AP cleared Item report. The report is similar as we can get from FBL1n, but I need a column as group key, which can not be found in FBL1n report. My questions is: 1. When using SAP query, I use table LFA1 and BSAK, e

  • Only using Quick Edit to interact with a list/view in Sharepoint 2013

    Hello All, I would like users to only interact with a view in Quick Edit mode as it has all the functions I need (Edit,add and delete) without having to open Web Forms. Is there a way to hide the "New Item" link on all current and future views for a

  • No Getter Method Error

    I had a working JSP/Struts application. I added a new data page and struts forward, and started getting: No getter method for property Fullname6 of bean org.apache.struts.taglib.html.BEAN errors. I have confirmed that the Fullname6 is referenced in t

  • ORA-06502: PL/SQL: numeric or value error:10grel2 htmldb 2.0

    Hi, Here is what Im trying to do : 1. I get the content of a web site (using UTL_HTTP) and I store it within a table in a clob column. 2. I try to display it in HTMLDB using many methods ( Simple query in SQL commands , as a report or as a dynamic pl

  • HT1863 Hi! I do have Apple care, but I have lost all the papers, is it possible to recover it by telling you my hardware number?  thank you!

    Hi! I do have Apple care, but I have lost all the papers, is it possible to recover it by telling you my hardware number?  thank you!Hi! I do have Apple care, but I have lost all the papers, is it possible to recover it by telling you my hardware num