Using Enter key on the TextField

How to complete filling of the text to a TextField after pressing key "Enter"?

pressing enter causes any ActionListener objects to be notified. checkout the java tutorial to see how to do this:
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
(note this actually uses a JTextField but it's pretty much the same with TextField)
jonesy (sun developer support)

Similar Messages

  • I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. don't need the caps/lock or ctrl key and due to an injury my daughter can only use her left hand to type. She is using a text to speech app to verbaliz

    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
    The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
    Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
    Sami's mom

    Sami\'s mom wrote:
    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
    You cannot.

  • I'm using LR 5.6.  The Enter key should increase the exposure but it increases Contrast instead.  How can I make the Enter key adjust the exposure?

    Hello
    As explained in the heading, I'm using LR 5.6 on a PC (Win 7).  The Enter key should increase the exposure but it increases Contrast instead.  How can I make the Enter key adjust the exposure, as it should?  I have reset the settings to Default in the Develop module but to no avail.  Please help!  Thanks.
    Kind Regards
    Farrukh Hyder

    I am not aware that the ENTER key should increase exposure, and it certainly does not increase exposure (or any other slider) on my Lightroom 5.6 (Windows 7)
    If you click on the word Exposure, then the + and - keys increases or decrease exposure by 0.1 or -0.1

  • Af:inputListOfValues sets value of first item in result set when using enter key or tab and component set to autosubmit=true

    I'm using JDev 11.1.1.6 and when I type a value into an af:inputListOfValues component and hit either the enter key or the tab key it will replace the value I entered with the first item in the LOV result set. If enter a value and just click out of the af:inputListOfValues component it works correctly. If I use the popup and search for a value it works correctly as well. I have a programmatic view object which contains a single transient attribute (this is the view object which is used to create the list of value component from) and then I have another entity based view object which defines one of its attributes as a list of value attribute. I tried using an entity based view object to create the LOV from and everything works as expected so I'm not sure if this is a bug when using programmatic view objects or if I need more code in the VOImpl. Also, it seems that after the first time of the value being replaced by the first value in the result set that it will work correctly as well. Below are some of the important code snippets.
    Also, it looks like it only doesn't work if the text entered in the af:inputListOfValues component would only have a single match returned in the result set. For instance given the result set in the code: Brad, Adam, Aaron, Fred, Charles, Charlie, Jimmy
    If we enter Cha, the component works as expected
    If we enter A, the component works as expected
    If we enter Jimmy, the component does not work as expected and returns the first value of the result set ie. Brad
    If we enter Fred, the component does not work as expected and returns the first value of the result set ie. Brad
    I also verified that I get the same behavior in JDev 11.1.1.7
    UsersVOImpl (Programmatic View Object with 1 transient attribute)
    import java.sql.ResultSet;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.JboException;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.server.ViewRowImpl;
    import oracle.jbo.server.ViewRowSetImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed Sep 18 15:59:44 CDT 2013
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class UsersVOImpl extends ViewObjectImpl {
        private static ADFLogger LOGGER = ADFLogger.createADFLogger(UsersVOImpl.class);
        private long hitCount = 0;
         * This is the default constructor (do not remove).
        public UsersVOImpl () {
         * executeQueryForCollection - overridden for custom java data source support.
        protected void executeQueryForCollection (Object qc, Object[] params, int noUserParams) {
             List<String> usersList = new ArrayList<String>();
             usersList.add("Brad");
             usersList.add("Adam");
             usersList.add("Aaron");
             usersList.add("Fred");
             usersList.add("Charles");
             usersList.add("Charlie");
             usersList.add("Jimmy");
             Iterator usersIterator = usersList.iterator();
             setUserDataForCollection(qc, usersIterator);
             hitCount = usersList.size();
             super.executeQueryForCollection(qc, params, noUserParams);
        } // end executeQueryForCollection
         * hasNextForCollection - overridden for custom java data source support.
        protected boolean hasNextForCollection (Object qc) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             if (usersListIterator.hasNext()) {
                 return true;
             } else {
                 setFetchCompleteForCollection(qc, true);
                 return false;
             } // end if
        } // end hasNextForCollection
         * createRowFromResultSet - overridden for custom java data source support.
        protected ViewRowImpl createRowFromResultSet (Object qc, ResultSet resultSet) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             String user = (String)usersListIterator.next();
             ViewRowImpl viewRowImpl = createNewRowForCollection(qc);
             try {
                 populateAttributeForRow(viewRowImpl, 0, user.toString());
             } catch (Exception e) {
                 LOGGER.severe("Error Initializing Data", e);
                 throw new JboException(e);
             } // end try/catch
             return viewRowImpl;
        } // end createRowFromResultSet
         * getQueryHitCount - overridden for custom java data source support.
        public long getQueryHitCount (ViewRowSetImpl viewRowSet) {
             return hitCount;
        } // end getQueryHitCount
        @Override
        protected void create () {
             getViewDef().setQuery(null);
             getViewDef().setSelectClause(null);
             setQuery(null);
        } // end create
        @Override
        protected void releaseUserDataForCollection (Object qc, Object rs) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             usersListIterator = null;
             super.releaseUserDataForCollection(qc, rs);
        } // end releaseUserDataForCollection
    } // end class
    <af:inputListOfValues id="userName" popupTitle="Search and Select: #{bindings.UserName.hints.label}" value="#{bindings.UserName.inputValue}"
                                                  label="#{bindings.UserName.hints.label}" model="#{bindings.UserName.listOfValuesModel}" required="#{bindings.UserName.hints.mandatory}"
                                                  columns="#{bindings.UserName.hints.displayWidth}" shortDesc="#{bindings.UserName.hints.tooltip}" autoSubmit="true"
                                                  searchDesc="#{bindings.UserName.hints.tooltip}"                                          
                                                  simple="true">
                              <f:validator binding="#{bindings.UserName.validator}"/>                      
    </af:inputListOfValues>

    I have found a solution to this issue. It seems that when using a programmatic view object which has a transient attribute as its primary key you need to override more methods in the ViewObjectImpl so that it knows how to locate the row related to the primary key when the view object records aren't in the cache. This is why it would work correctly sometimes but not all the time. Below are the additional methods you need to override. The logic you use in retrieveByKey would be on a view object by view object basis and would be different if you had a primary key which consisted of more than one attribute.
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) {
        return retrieveByKey(viewRowSetImpl, null, key, i, false);
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) {
        RowSetIterator usersRowSetIterator = this.createRowSet(null);
        Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId")));
        usersRowSetIterator.closeRowSetIterator();
        return userRows;
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) {
        return retrieveByKey(viewRowSetImpl, null, key, i, b);

  • Using Enter key to submit a form, Attn: Didier

    Hi,
    I have an ADF form on my page and want to use Enter key to submit the form. I submit the form using a CommandLink which has a method bound to it as its action in a managed bean. I have set submitCL as the Id of this CommandLink and has set this in my form:
    <af:form defaultCommand="submitCL">
    but the Enter does not work. I'm using IE 7.0 and JDeveloper 10.1.3.2.
    Thanks in advance,
    S/\EE|)

    Hi Saeed,
    not sure if this is related or not, but I would test it with another browser as IE is not supported. See http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.3/install.html#browsers
    Also, when the command button is in the header facet of a table or treeTable, the value of defaultCommand must also contain the table or treeTable ID.
    For example: <af:form defaultCommand="theTreeTableId:submitCL" ...>Regards,
    Didier.

  • Use Enter key to execute report.

    I have a report that needs to be executed in background.It has a selection screen.The program should get executed when user presses 'ENTER' while he is inside the selection screen.At present,when 'ENTER' key is pressed,only validation is done.To execute we are  either pressing 'F8'  key or click execute button in screen.
    Now how to trap the 'ENTER' key press in  a report?

    Hi Jayaprakash,
    All PAI processing will depend on the Function Code that has been triggered at the selection screen.
    The ENTER key has no function code, whereas the "Execute" button has the function code 'ONLI'. SO what can be done is, when the user hits the ENTER key, we can programmatically set the function code to 'ONLI'. I shall give you a very small peice of code to illustrate my point.
    ===================================
    tables sscrfields.
    parameters p_vblen like vbak-vbeln obligatory.
    at selection-screen.
    if sscrfields-ucomm eq space.
    sscrfields-ucomm = 'ONLI'.
    endif.
    start-of-selection.
    write p_vblen.
    ===================================
    The above code will trigger the report output on hitting the ENTER key at the selection screen.
    What you only have to note here is that unlike with screen processing, in selection-screen processing, the function code will be made available in the field UCOMM of the structure SSCRFIELDS. However, you will have to declare this structure in your program ( using the TABLES statement as shown above ).
    Hope the explanation has been clear enough to drive the point home for you. Please get back to me otherwise.
    Regards,
    Anand Mandalika.

  • Why I cannot tab to enter instead of using enter key?

    For example. When I want to log in a website that I have an account. After typing username and password, I can not tab  by trackpad to enter. I have to use enter key to login. Why? Have how to fix that?

    Does your cursor work? I take it this is only a problem at login. You can move the cursor,but nothing happens when you try clicking on it? Have you tried a pram reset. Command/Option/P/R keys at startup for three chimes.

  • Navigation in multi row field using ENTER key

    Contents of the field are deleted when I use ENTER key in a multi line field.
    Any solution?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nadeem Ameer ():
    Contents of the field are deleted when I use ENTER key in a multi line field.
    Any solution?<HR></BLOCKQUOTE>
    the normal that when you press an Enter key
    in a field which is a multi line field the cursor is moving to the next line.
    sol:verify that you don't write any wrong code in the key-enter trigger
    & check that you set the multi_line property of that item to yes.
    null

  • The "enter" key on the numeric keypad of my external mac keyboard has stopped working. Help!

    The "enter" key on the numeric keypad of my external mac keyboard has stopped working with my Macbook pro.  If I plug the keyboard into any other computer, that entier key works fine. I'm using a standard Mac wired keyboard, & it's worked fine for 2 years now. Help!
    This is the keyboard I am using: http://store.apple.com/us/product/MB110LL/B/apple-keyboard-with-numeric-keypad
    Not sure what I might have accidentily done to disable the enter key. (The normal enter key works fine, just the one on the numeric keypad.)
    Thank you for your help.

    Hi there,
    Do you have any resolution to this problem in the end? Because it happened to me an exact same thing.
    Please share if you have found a solution to your problem. I also cannot think of what I did wrong to disable the Enter key.
    Best Regards,
    Jeffri

  • In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it does'nt work there . Means the page is not navigating towards the address. Kindly solve the problem

    In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it doesn't work there . Means the page is not navigating towards the address. Kindly solve the problem

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • How do I remove  the enter key on the numeric keypad as a command key?

    How do I remove the enter key on the numeric keypad as a command key.  I want to use the enter key as a return key.

    Don't.  It will void the warranty.  Take is to an Apple store or an AASP and have them do it.

  • Using Enter key from numeric keypad to enter and switch to next element in an array control

    Hello all,
    I have a question regarding a simple but annoying problem, of which I did not found a solution yet.
    I have written an application in which I have to enter data manually in a numeric array control.
    If I want to enter the value and go to the next element in the array control, i am forced to use the Tab key on my keyboard, or risk RSI using the mouse.
    How can I assign the Enter key of the numeric keypad section of my keyboard to to the same as the Tab key?
    Kind regards,
    Raymond

    [email protected] wrote:
    Can you convert the example in a image or can you convert in to 8.2.1 version?.
    Best regards
    Saved in 8.2.1 for you.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Change Array Event.vi ‏16 KB

  • Agentry WinCE Enter key close the screen

    Hallo,
    we create a detailscreen with a listField which you can see in the screenshot. If we navigate to the screen in the WinCE Client and do nothing and press the enter key on the keyboard from the WinCE-client the screen closed. If we navigate to the screen an select something like a field or a list row and press then the enter key on the keyboard from the WinCE-client nothing happen.
    How can i prevent that the screen will close when i press the enter key. We try to set the initial focus to a the field "Ort" but the screen has closed again.
    Thanks,
    André

    Hello,
    we have a workaround found. We set the initial focus to the filed of list type. So it select a entry from the list and the enter button select the entry. Thats ok for us.
    Best regards,
    André

  • Pressing the enter key on the keyboard

    Need to know the trigger or the way to attribute code to pressing de enter key on the Keyboard!!!???
    Thanks!!!!!

    Hi Carlos,
    By default, the ENTER key takes the cursor to the next navigable item in the block.
    To override this default behaviour it is necessary to modify the forms resource file to revise the key mapping details.
    Refer to article 209671.1 on Metalink: How to Change / Customize the Key Mappings for 6i and 9i Webforms?
    Read the section 'B: Mapping for ENTER to fire KEY-ENTER-TRIGGER over the Web'
    Regards,
    Monica

  • Help! Enter key on the Number Keypad not working on wired Apple Keyboard

    Help! The enter key on the number keypad has stopped working and it's making me soooo frustrated. I've looked around my preferences and can't figure out what is going on.

    I'd recommend doing a SMC reset, if this doesn't take care of it the key board may have a broken key and will need to be replaced. Here is are the instructions for a SMC reset:
    _SMC RESET_
    • Shut down the computer.
    • Unplug the computer's power cord.
    • Press and hold the power button for 5 seconds.
    • Release the power button.
    • Attach the computers power cable.
    • Press the power button to turn on the computer.
    Regards,
    Roger

Maybe you are looking for

  • Can install Oracle 10g release 2 on Windows 2008 R2 Server  64-bit machine

    Hi All, Can we install Oracle 10g Release 2 on Windows 2008 Server R2 for 64-bit machine? If yes then is there any patche requirement for this, So suggest me. Regards, Rizi

  • Cannot find symbol class mailclient

    im trying to send the mail using javamail.... but ends up with an error of "class mailclient is not found".... pls help me out....

  • How to create a war file from extracted file-system on server?

    Hi! On a weblogic I have to offer a test environment where users can exchange classes in the folders of the extracted archieve for faster testing. Now I need a command (should be easily to use) where you can achieve the following logic create war-fil

  • Start cycle date in maintenance plan

    Hello Every one, In my project i have uploaded all the plans in production server with start cycle date. Now when i am going in change mode i cant see the start cycle date even thoug i can see the scheduling overview in plan as correct date but i m n

  • Again hashcode() question ?

    thanks for your several answers, but i want a clear and definitive answer for this assertion ? i want to use instance of ObjectX in a HashTable. if i overide the equals() methode for objectX, have i to do the same for hashCode(), and if yes how can i