Keyboard,cursor question.

when the cursor in the textArea,how to forbit(ignore) the keyboard input,
and how locate the cursor's position,(for example i press a button,
then will show some text in the current cursor's position)
Thank in advance.

Add a keylistener to your textarea and consume all keypresses you do not want. Something on the line of this:
public class numericTextField
    extends javax.swing.JTextField {
  public numericTextField() {
    super();
    this.addKeyListener(new java.awt.event.KeyAdapter() {
      public void keyTyped(java.awt.event.KeyEvent e) {
        char c = e.getKeyChar();
        if (!((Character.isDigit(c) ||
               (c == java.awt.event.KeyEvent.VK_BACK_SPACE) ||
               (c == java.awt.event.KeyEvent.VK_DELETE)))) {
          getToolkit().beep();
          e.consume();
}Hope this helps.
Kisses,
Mink

Similar Messages

  • How to get keyboard cursor on specific field with a condition

    I am using forms6i. i have two fields 1st field1 and field2. I want that when field1='A' then keyboard cursor go to field2 else it must automatically skip the field2. and the condition is that the trigger must not be key-next-item, because if this process completed or not we have to go to next record and to save it.How is this possible???

    Depending on how your users navigate your application (mostly keyboard or combination of keyboard and mouse) the Key-Next-Item (KNI) trigger will not file if the user uses the mouse to leave Field1. Rather than use the KNI trigger I suggest you use a combination of the When-Validate-Item (WVI) and the Module/Form level When-Timer-Expired (WTE) triggers. This ensures no matter how your user leaves Field1 that the navigation cursor will go to Field2 if the value of field1 is 'A'. For example:
    /* Sample WVI trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       IF ( :FIELD1 = 'A' ) THEN
          Create_Timer('GOTO_FIELDB',1,NO_REPEAT);
       END IF;
    END;This code creates a 1 millisecond timer which will execute immediately so there is no lag in your application. Also, since it is a 1 millisecond timer, it will not cause a network trip to the application server.
    /* Sample WTE trigger */
    /* This is a Module/Form level trigger */
    DECLARE
       v_Timer   VARCHAR2(30) := Get_Application_Property(TIMER_NAME);
    BEGIN
       IF ( v_timer = 'GOTO_FIELDB' ) THEN
          Go_Item('FIELDB');
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Imac Tiger keyboard cursor speed

    One feature of OS X that causes me pain is the keyboard. Aside from it's compactness (My old hands seem much too big for this keyboard), I miss the ability to have full control over the keyboard cursor. I cannot hold down the spacebar nor the arrow keys and have the cursor race across the text or speed up and down the page. Holding the options key and arrow keys moves a word at a time but that's not quite the same thing.
    Have I missed something here? Does anyone know how to restore this feature or know of any software utility that will make this possible?
    Everything else is near perfect.
    Hap

    Hi
    Have you tried going into System Preferences>Keyboard & Mouse>Keyboard & adjusting the Key Repeat Rate & Delay Until Repeat settings?
    Steve

  • Voice Over : Mouse pointer moves VO cursor Question

    Hi!!
    I have low vision, and i want to use the voice over with my mouse and/or trackpad. Im able to see where the text is but i cant read it well. When I enable the Voice Over I select "Mouse pointer moves Voice Over cursor in the preferences. This works fine for me, vut i noticed that when i drag the pointer over the finders sidebar it select the folders without me clicking on them. Something similar happens in Safari when scrolling the web page. There is any way to avoid this?? The Voice Over with the keyboard is very nice but  sometimes I rather use the mouse.
    Thanks in advance!!

    ladislavfromcygnet wrote:
    Thank you Shootist007. I cannot do even Update now. I probably should have spent the same amount of money on a new IMac!
    No not really. If this is a brand new Macbook Pro take it back for a refund. Apple has a 14 day No Questions Asked return policy for Full refund.
    Take it back, get the Full Refund (DO NOT LET THEM TRY TO FIX IT. YOU BOUGHT A NEW COMPUTER NOT ONE THAT HAS BEEN WORKED ON OR NEEDS TO BE FIXED) and then decide whether to buy another Macbook Pro or the iMac. Or you could return it, get the Full refund and buy some other brand computer.

  • Jampack and keyboard connection questions

    2 questions:
    1. I have just bought GB Jampack (the one with lots of extra loops), but can't seem to notice any difference. How do I know that the disc has downloaded OK? Can't remember how many loops were there in the first place!
    2. I'm trying to connect an Roland SK-50 Soundcanvas keyboard. Do I need some sort of interface or drivers before it will work?
    Very basic questions, I know, but hey, that's what this discussion group is for isn't it?!
    Regards
    Mark

    How do I know that the disc has downloaded OK?
    If you bought the JamPack DVD you didn't download anything. Did you run the installer on the JamPack DVD?
    To see just loops from your JamPack disc, open the Loop Browser and click on the top bar where it likely says "Loops" with a double arrow, and select "JamPack 1". Then only loops from the JamPack will show in the loop browser.
    Re: the Keyboard
    What kind of conection doesd it have? All I could find was " complete with direct Mac or PC connection" and "Connections: MIDI In, MIDI Out, MIDI Thru, Line In (LR), Line Out (LR), Computer port, and 1/8" stereo headphones jack."
    "Computer Port" isn't very specific. Is it a USB connection? You might need to find a driver for it. Does the Manual say anything about installing software to make it work?
    --HangTime [Will Compute for Food] B-)>

  • IBook G4 Keyboard Replacement Question

    I need to replace the keyboard on my iBook G4 14" 1.42GHz which I bought in Sep 2005.
    However, I can't figure out which replacement keyboards online are compatible.
    The bar code number on the keyboard is KY5322DDTGKA.
    I see sellers saying that their replacement keyboards are compatible with p/n 922-6637, 922-6189, 922-6913, PBF8415 for instance. I can't figure out though if my iBook is compatible with this.
    Can someone give me the correct Apple part number for a replacement keyboard that is compatible with my iBook?
    Thanks

    mac-question:
    Welcome to Apple Discussions.
    iFixit lists Apple part numbers, then says, this keyboard works in all G4 14" iBooks.
    PowerBook Medic also suggests the part is interchangeable.
    PowerBookTech offers these links which you can check out.
    Be sure you call or email and ask questions before you buy, to be sure you are getting the right part.
    cornelius

  • Ref cursor question

    Hi,
    I have stored proc that takes pl/sql table as IN parameter and returns a ref cursor.
    Data from pl/sql table is separated into two table type objects ... oType1 and oType2 based on some condition.
    following works fine...
    If oType1.Count > 0 then
         OPEN list_out FOR
         select col1, col2, col3, col4 ..... col20
         from TABLE(CAST(oType1 AS obj_table_t)) a,
         t1,
         t2
         where a.colvalue = t1.colvalue
         and etc....
    UNION ALL
         select col1, col2, col3, col4 ..... col20
         from TABLE(CAST(oType1 AS obj_table_t)) a,
         t3,
         t4
         where a.colvalue = t3.colvalue
         and different conditions etc....
    I have 4 UNION ALL's. Had to use this because of different where coditions.
    end if..
    The problem is with oType2......
    If oType2.Count > 0 then
    -- getting data from different database using dblink along with values from present database.
    -- resultset columns will be same as above
    -- Question is how to send these results in same refcursor.
    end if;
    Thanks for your time.

    Hi,
    I think that a plsql table is what you want and not a ref cursor. If you have a plsql table based on your user defined type you can keep assigning all the values you want to it and then pass it out of your procedure.
    null

  • "Shadow" next to cursor question

    Hello.
    Very basic question I'm sure but I only bought FCE as I couldn't adjust very well to the i-Movie change.....
    Anyway, I was happily dragging clips into the Timeline, putting some transition effects on them, adjusting, rendering and moving to the next bit. Very basic but what I needed to do.
    Now I must have changed some sort of mode as the cursor now has a small dark shadow to the right of it and I can no longer just grab a chunk on the Timeline and move it or adjust an effect in the same way as before.
    Blowed if I can find what I did or even where to start in the manual.
    Any help appreciated.
    Many thanks.
    Alastair

    I tripped over something similar a while back. I will describe mine and see if it matches yours. I have dozens of clips scattered over a few video tracks. I can select an individual clip then click select it and the 4 way move arrow shows up. I can then drag his clip anywhere. NOW here comes the tricky part.
    1 IF you choose to put this new clip on any particular track you will notice either a right arrow ( NOTE how your tracks are split into 2 parts by a long horizontal gray bar) if your cursor is above the horizontal divider the cursor showsa right arrow --OR a down arrow if your cursor is below that horizontal divider.
    Right arrow means insert ie it will drop your clip right there and shove everything on every unlocked track to the right
    Down arrow means superimpose - it will write over anything on the track you are dropping it onto. Nothing else gets shoved out of the way.
    THe fact it showed up in the middle of a project is bogus --- it may have showed up after you added enough effects etc to have not enough space to put your clip neatly in without over writing what is under it . I jsut tried it and i always see the 2 arrows when i move things around .
    In re only one frame transition i cant help you -- you can set those timers up in some place i cant find right now --
    -- ALso groping around ...

  • Third-party keyboard security question

    Hello everyone,
    Apple says that third-party keyboard developers have access to all of the data user types. Then it says "If you enable Full Access", developers are permitted to access, collect and transmit the data you type".
    So my questions are:
    1. Do developers have access to the data I type with full access enabled or no?
    2. If I'm using apple keyboard but third-party keyboard is installed do they still have access to the data I type?
    For example: When I access to my credit card I will use apple keyboard but while I'm chat in Facebook or watsApp I use third-party keyboard. Do they(Third-party keyboard devs) have access to my credit card password?

    NO.  The 3rd party keyboard is only communicating with your iPad.

  • Safari keyboard shortcuts questions

    1. Often when a page loads, one has to click somewhere on the page in order to use the arrow keys to scroll up or down. Why does this happen? Is there a keyboard alternative to clicking?
    2. When one wishes to type in a text field, one hits tab until the field is active and the cursor blinks there. Subsequent tabbing makes other fields on the page active. But is there a keyboard command to leave the text fields (aside from clicking) so that one can again scroll down using arrow keys or other commands? (I've found that Option-Tab, which activates buttons on the page accomplishes this, but only if there are buttons on the page.)
    Message was edited by: bookmanjb

    Hi,
    Often when a page loads, one has to click somewhere on the page in order to use the arrow keys to scroll up or down. Why does this happen? Is there a keyboard alternative to clicking?
    Clicking on a webpage makes it active.
    Keyboard shortcut alternative to clicking?
    Safari: Browser Window and Menu Shortcuts
    When tabbing through form fields on a webpage, it depends on how the HTML in the webpage was written. Some you can tab through, others you have to use your mouse to click so the insertion bar blinks, or you use your back and forward keys.
    Carolyn

  • Keyboard layout question

    Out of interest, is there an easy way to make/print/download or otherwise obtain a visual keymap for the Mackbook - what keys do what with given modifiers etc?
    I know you can use the keyboard viewer, I was thinking of something hardcopy for a visual reference.
    On that note, can anyone tell me what fn-6 on the UK keyboard (a sort of square box with a superimposed 'x') is for?
    Thanks in advance.

    Hey there henripla,
    I compared your keyboard to a great list i found on wikipedia, I believe it most closely resembles a Portuguese Brazilian Keyboard. Looking at it key for key, it is an exact match with the exception of the E key. Hope this helps!
    Oh and also just to help, here's the part list for the T420 keyboard!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • Keyboard illumination question.

    I just bought a 15 in macbook pro. the question I have is that I thought the keyboard was only suppose to illuminate when there was no light. My keyboard stays lit up all the time. I even used it in a brightly lit room and it is still on. Do i need to change some settings or what? any help appreciated, thanks.

    You think it should do the complete opposite of what it does, which, imo, is only logical. The illumination stays on all the time, even when it's lit, but then gets dimmer when the light goes down (if you have the key illuminations set to full and then turn the light off, you'll see it goes down halfway). I'm like you, this seems backwards, but for some reason this is the way Apple has set it up. I wrote them a message saying I thought this was stupid. You should too. Maybe they're fix it.
    Message was edited by: Rael12345678

  • Jumpy Keyboard / Cursor ?

    So I received my CookBook pro just over a week ago, and so far am pretty happy with it. (It gets warm, but not so hot I can't pick it up. It does get uncomfortable on my lap, however.)
    This is both my first Mac and my first "laptop".
    I do a lot of coding for the web: Mostly PHP with HTML, and trying out different text editors. Right now I'm using Subethaedit, which I like a lot.
    Anyway, sometimes when I'm typing, the cursor will jump up a number of lines. It will type everything I've entered, but just not where I intended it. So then I have to cut and paste back to where I was working.
    Is this common among laptop keyboards? I would ask whether or not it's a case of sensitivity, but sometimes I stop to type characters One At A Time, nice & slowly, and it still hops.
    Does anyone know why? I can type upwards of 60+ WPM, and having a jumping cursor is no good. Could it possibly be some "combination of keys" is a shortcut to "go up X lines"?
    Thanks for your time.

    In system preferences under mouse/keyboard under trackpad settings make sure that you have selected ignore accidental trackpad input.
    Intead of Subethaedit I use BBedit which costs a couple bucks but is worth it in my opinion. You should check it out. It has a lot of integrated features (like subversion support) and is a really mature product.

  • Terminal keyboard shortcut question

    Hello. I'm asking this question on behalf of a tech who works in our school. He would like to know what the keyboard shortcut on a Mac is to take you to the end of a line or the beginning of a line. (Apparently on a pc it is the home and end keys but on the Mac that takes him back to the very start of to the very end.) Sorry if this is a silly question.
    Jenny

    The standard keys to move to end of line is Ctrl-E.
    Ctrl-A will take you to the beginning of the line
    Other useful control characters include Ctrl-T (transpose two characters) and Ctrl-U (erase line)

  • Multiple USB keyboard controller question

    hey everyone ... Happy new year by the way !
    quick question .. i want to use 2 USB controllers to play one source ( software synth )
    I have a USB audio interface with a midi keyboard  controller patched in the mdi input jack and would like to use another USB keyboard ( in another available USB port ) to access the same source track .
    When I record enable the track with the instrument , my midi controller can the synth but the USB one won't
    I checked the audio midi setup utility and coreMidi recognizes both midi inputs but Logic Pro X won't
    Does this has to be set up through the environment window of Logic ? I thought that coreMidi would take care of things automatically for me .
    thanks for your help !

    Hi
    Under normal circumstances, 2 keyboards that show up OK in Audio MIDI Setup should work fine.
    In Audio MIDI Setup (MIDI Window), click the "Test Setup" button and play some notes on each keyboard. You should see a blue flash on the Interface Icons in AMS, and you should hear a beep through the System Audio when you release the keys. (Turn this off when done).
    In Logic, check the MIDI transmission channels of each keyboard (some instrument plugs are channel-sensitive).
    CCT

Maybe you are looking for

  • Error in Nokia updater software

    when installing last Verison of nokia software updater i get error message : ERROR 1720 . there is a problem with this windows installer package . ascript required for this install ....... custom action Kill_process script error -2147217406 : line 5

  • Slideshow -- Ken Burns effect

    IPhoto slideshows not only has the ability to dissolve between photos, but includes the Ken Burns effect. While the ability to use transitions like dissolve in a slideshow is supported in Aperture, I have not found a way to float the photo to the lef

  • How to determine who performed the last full database dump before cumulative dump

    Hello, ASE 15.7 SP100 allows cumulative backups, and if cumulative dump is tried before a full dump, ASE shows this error: You cannot execute an incremental dump before a full database dump. From my experiments, it seems that it does not matter how t

  • Developing a data mining tool

    Can anyone help me find any relevant source code to develop a data mining tool with cluster analysis capabilities. I have found bits of source code here and there in C/C++ but haven't found any in Java. I really need to see the source code for a full

  • Credit Card Processing With Web Tools

    If you have web tools installed with standard SAP B1, can you take a web credit card order and only authorize it on the web side and then later complete the credit card transaction at shipping time?  If so, can someone point me in the right direction