SetEnabed() affect the cursor!

Call the setCursor() function of a JComponent's instance, when enabled the component(setEnabed(true) ), the cursor can show normally. while disnabled it(setEnabed(false) ), the cursor show the default cursor(not the one i set).
Is it a java bug?can't set cursor on a disnabled component?
any one solved the problem?
thanks.

A disabled component will not effect anything except the space it takes up.
I suggest that you place the component inside a JPanel with only one child. This way the JPanel can have a cursor and the child (component) can be disabled without effecting the view. Ussually the cursor defined in JPanel will be overriden by it's child's cursor but it sounds to me that a disabled component only effects graphics.
Let me know if this solved your problem please.
Bamkin

Similar Messages

  • Could not click on anything in Recovery disk and log in screen, but I can move the cursor around. Using 10.8, not sure what's wrong, anyone have an idea?

    So the problem is, I cannot click on anything in the Recovery Disk and Log in screens (to enter your password), but I can move the cursor. My trackpad works fine everywhere else except for these screens. If I connect a USB mouse, I am able to click on things in these screens.
    NOTE: I am not just tapping, I am really clicking on the trackpad.
    I recall some time ago when this wasn't happening, not sure if that was when I was on Leopard. I sort of suspect 10.8.x, but I'm not too sure.
    Has anyone else experienced this? Would appreciate help. Thanks!

    Try an SMC reset. The article covers when this is required, but doing this will not affect anything.
    Reset SMC

  • The select function in Pages and other apps gets stuck and the cursor will not move. What do I do?

    The select function in Pages and other apps gets stuck when I touch a word and the cursor will not move. What is the answer for this problem?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Edit Disable Panel Grid Alignment does not affect the Positionin​g of Front Panel Labels

    In LabVIEW 2010, when I choose Edit>> Disable Panel Grid Alignment the positioning of Front Panel objects gets much finer so that I can make small adjustments. Put it does not seem to affect the positioning of front panel object labels. These object labels still move in very coarse increments and do not allow me to position them carefully.
    How do I turn off the Grid Panel alignment for Front Panel Labels?

    The positioning of labels you encounter has not so much to do with any grid, but with the fact that for labels, LabVIEW attempts to snap them to one of the control corners if you get close enough to the owning control. Outside of a certain range of the owning control you should be able to place them easily on any pixel. The snap behaviour of owned objects is not configured through the panel grid option. I'm not aware of an option to disable this behaviour, but usually find it rather handy instead of annoying. If it happens to not be exactly as desired, I adjust with the label selected and using the cursor keys.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • When typing the cursor will stop typing and you willhaveto click again where you stopped and start over

    When in a program (IE 11 or Word, Outlook, etc..) my User will begin typing. After a few characters the system will just stop accepting the typing. The User will have to Click in to the field to get the cursor back to the correct point & begin typing
    from that point.
    This seems to happen very frequently for all my users.  We recently deployed new PCs with Win 7 32-byte on them to everyone.  Has anyone seen this happen and have any remedy for it?
    I have replaced the keyboard thinking that is the issue but upon further research I am leaning more toward it being a Windows 7 issue.
    Les Rose Network Administrator

    Hi,
    This issue may be caused by the below reasons:
    The mouse. The cursor missing from the current page may be caused by the mouse lost its focus point, this may because of the mouse itself or some other elements(Mouse pads and mouse drivers) which may affect
    the function of the mouse. If laptops, please try to disable touch board.
    Other applications. Please check if there are any applications(Usually some virus or scripts) running automatically when typing, some applications may call the cursor out when it starts.
    Network connection. If you use the wireless network, please make sure the connection is well configured on the client side, check WLAN NICs and the driver.
    The printer driver. In addition to this, please also verify the PC have all the other drivers up-to-date.
    Please take a health check and update the anti-virus databases, if possible try a clean boot , also change a mouse and check the other aspects and see if the problem still exists.
    Hope this may help,
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Brush Tool and Viewing the Feathering Outline in the Cursor

    Hello,
    I am finding that when I use the brush tool, for example when modifying a mask, that the cursor is NOT showing me the feathering outline of the brush. This is starkly different than the view of brushes in ACR and in Lightroom where I can see  the dotted outline of where the feathering begins. I don't know how long this has been the case; maybe always & I am just now noticing.
    My question: shouldn't the feathering outline of the brushes show up in the cursor when I am working on a layer or a mask; or is this not possible? If it is possible, how does one alter preferences or whatever so that the feathering outline WILL show up when working directly on a layer or mask??
    I am using Adobe Photoshop and Lightroom in the Adobe CC Photography plan.
    Also, if you have good tutorials to on brushes to recommend, I am interested in trying out some that might help me with brushes overall. I understand the basics but I have difficulty controlling brush parameters.
    Regards,
    Randy

    Benjamin,
    Thanks. I was just trying that out & it is helpful to hear that I am choosing the best option for my purposes. I would like it better if it looked the same as the brushes and feathering in ACR and Lightroom. At least with this 'full brush size' option in the preferences I can now better predict the full area that the brush will affect, even the feathering. Without it, I find I am always hitting non-target areas with feathered modifications that I don't want.
    Randy

  • Does anyone have an issue with the cursor moving itself around?

    My cursor moves itself to a new spot on my text and inserts itself, sometimes highlights, and often deletes. I just updated my 06 MacBook to Mountain Lion, and it's been great EXCEPT for this huge bug. It's infuriating. Has anyone else seen this?

    I guess that's good and bad. Doesn't sound like your battery is defective, but we're no closer to figuring out the problem.
    Do you have any programs that affect the mouse, trackpad, finder?
    Does it happen while booted into Safe Mode?
    How about in another user account? (Guest would be suitable if you don't have another).

  • How to deal with "TypeError: Components.classes[cid] is undefined". Seems to affect the

    When starting FIREFOX 4.0, before actual appearance on screen a small error sign shows, apparently relating to a JavaScript problem, reading: TypeError: Components.classes[cid] is undefined. So far I figured out that it affects the bar where the internet address is typed in; it does not work on 'enter' command but will do when the arrow on the right of the bar is engaged by cursor and left mouse click.
    Hope you can understand what I mean, if not please do not hesitate to contact me.

    In my case I found this to be associated with a third-party extension, disabling the extension disabled the functionality. Try running the browser in safe-modem turning off all extensions and defaulting the browser to initial install state, then enable each extension one at a time, starting with the firefox supported extensions until you find the culpritt

  • Fine tuning the cursor

    I am using two cursors in my Pro*C applicatioin
    exec sql declare cur_open_act cursor for
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and a.open_flag='Y'
    and d.relationship_code in ('PRI','RET','TTE')
    and e.managed_product_ind != 'Y';
    exec sql declare cur_close_act cursor for
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and a.open_flag='N'
    and d.relationship_code in ('PRI','RET','TTE')is
    and e.managed_product_ind != 'Y'
    and (
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) != 0;
    The query used is redundant for the most part and is shown below
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and d.relationship_code in ('PRI','RET','TTE')is
    and e.managed_product_ind != 'Y'
    Is there a more efficient way other than using 2 separate cursors?
    I don't want to use the redundant portion as a single cursor since it affects the performance.
    Edited by: user9285722 on Apr 1, 2011 4:43 PM

    Hi,
    Why dont you just use the 1st cursor and along with what you do with the first cursor, if balance!=0 then do what you do with second cursor.
    I dont know how you do in pro*c, but here is the algorithm.
    open cur_open_act;
    loop
    -- Do your operations that you do with cursor1.
    ---Now along with that
    IF cur_open_act.balance != 0 then
    ----- Do your operations that you do with cursor2.
    END IF;
    end loop;G.

  • I find very annoying that, although the cursor is flashing in the serch box, unless that box has been clicked in to enable it, typing goes to the nearest topic in the bookmark list. how to stop it from happening?

    i use Google home page as my firefox home page. often i find that although the cursor is flashing in the serch box, unless that box has been clicked in to enable it, typing goes to the nearest topic in the bookmark list instead of accepting the typing. how to stop it from happening? why not stop the cursor from appearing in the search box unless you have clicked in it?

    Do you organise your email into separate folders, or do you just let it accumulate in the Inbox?
    I would strongly advise you not to let it sit in the Inbox.
    When you see this happening, try right-click on the affected folder, select '''Properties''' then '''Repair Folder'''.
    Large folders (actually, a folder in Thunderbird is stored as a file, so it is sensitive to file size limits set by the underlying file system) can be problematic. This is one reason not to let messages collect in one folder. I use Thunderbird's Archive folders so that accumulated mails over several years can happily coexist because they are effectively stored in many small folders. No single mail store folder then exceeds the 2GB or 4GB sizes that have been known to stress the OS. I appreciate that current builds of Thunderbird and a modern 64-bit OS should be able to cope, but practically I find it slows down when given huge files, so I err towards a pragmatic solution; a large number of not very big files.
    Archives are searchable, and a Saved Search folder can give you a virtual composite folder allowing access to the entire Archive.

  • The cursor backs up when posting a question so the words mispell

    when posting a question in search box the cursor interrupts by going backwards or skipping spaces so the question is full of mispelled words

    Hi edibel, is this a problem unique to this forum, or does it affect multiple sites?
    Are you using any special input devices, such as voice command, non-standard trackballs with extra buttons, etc.?
    In case it's a conflict with one of your add-ons, a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If the site works correctly, this points to one of your extensions or custom settings as the problem.
    Any change?

  • Why does dragging on a Touch Screen change the cursor into a Hand Tool?

    Why does dragging on a Touch Screen change the cursor into a Hand Tool? This did not happen in CS 5.5 and I could edit on my touch screen monitor. With Photoshop CS 6, as soon as I start to drag, the cursor changes to a hand cursor. I have look at all of the system options and nothing seems to affect it so I have to assume it is something wrong with Photoshop CS 6.

    Try staying with it for a while.  It is much nicer panning that way.  Give it a flick, and touch the screen again when in the right position. 
    I think it came in with CS4 BTW, but it makes a lot of sense keeping it on the Touch version.

  • How to ensure that an accrual (FBS1) that was cleared and reversed/reset (FBRA) does not affect the books while being in open items (FAGLB03)?

    At first the user created an accrual using FBS1 for reversal on 5/1/2015.
    This created a clearing document.
    Then it was mistakenly reversed by the user for 5/1/2015 by using F.81
    This also created a clearing document.
    Based on advice in the following thread: Delete reverse accrual/defferal documents | SCN ,
    the user used FBRA to reset and reverse the document. We are unsure if the reset and reverse command was used or just the reset choice.
    Now the accrual value is in the respective accounts with an open status (i.e. red button). Does this mean that the entry has already been discarded and it won't affect the accounts? Or does one then use FB50 to reverse the effects of the accrual in the current and next month?

    Hi
    I guess that the user has not reverse the transaction as its still shows as open item in 30 /4 .. so I belive that you need to use fb50 or simply use FBR2 and enter the original entry no and the choose (generate reversal posting option )..
    regards
    mahmoud el nady

  • L need help with textedit, I inserted a picture then the cursor went from small to the size of picture and l need to write a header next to the picture not at the bottom of it. can anyone help please?

    Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low

    AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
    You need a app that supports transparent overlays.

  • I have a new MacBook(2012). Being a new Mac user, I do not know what to do when Safari doesn't open at all. The icon just bounces up and down and when the cursor is on the top main menu bar it is the spinning rainbow wheel.  Any ideas for help?

    When I try to open safari the icon stats bouncing and then nothing happens other than the cursor turning to a spinning rainbow wheel when it hoovers on the top main menu bar. I have shut down and restart several times. My safari worked yesterday and then today this, but with. I indication of a problem. I can't even get the browser window to open so that I can clear caches or reset anything. When I opened my computer this time I don't even get a bouncing icon. No recognition of selecting the program at all. If I go to spotlight and try to open safari from here I still get no response. Can you help?

    Hi ...
    If you have moved the Safari application from the Applications folder, move it back.
    As far as the cache goes, there's a work around for that when you can't empty the Safari cache from the menu bar.
    Go to    ~/Library/Caches/com.aple.Safari.Cache.db.  Move the Cache.db file to the Trash.
    Try Safari.
    Mac OS X (10.7.2)   <  from your profile
    If that is corrrect, you need to update your system software. Click your Apple menu icon top left in your screen. From the drop down menu click Software
    Update ...
    ~ (Tilde) character represents the Home folder.
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

Maybe you are looking for