How to Change keybord behaviour?

Hi, i am doing swing right now. I want to make "Enter" button to act like "Tab" button in java. For example; cursor will go to the next textfield or cell if user press Enter instead of Tab. Does anyone know how to do it? Can we achieve that in java?

You can do that with a KeyListener.

Similar Messages

  • How to change doubleclick behaviour?

    Hello.
    I just bought the iMac. I love it.
    One thing though is that I do not know how to change the behaviour so that when I doubleclick the primary key, instead of minimizing, i'd like it to be maximizing. How do I do that?
    Thank you so much,
    Keehun Nam

    Do you mean the minimizing effect of double-clicking
    on a window title bar?
    If that is what you hope to change, it is not
    possible. You can't change that behavior to a
    maximizing event.
    That is so unexpected! =D
    I thought Apple would be able to do that... Just add few lines to their OSX and I think this will be solved!
    C'mon Apple Devs... It'll take you what. 5 minutes to do this?
    Well, thanks for the answer. As soon as someone verified, this post will be solved!
    Keehun

  • 'enter' button submits message in Newsfeed/Sitefeed. How to change this behaviour?

    Hi there,
    When I hit 'enter' when writing a message in the textbox at the top of a Newsfeed or Sitefeed Web part, the message is published as soon as I press enter. Is it possible to change this behaviour?
    I noticed that in office 365 SharePoint the 'enter' button just brings me to a new line instead of immediately submitting the message. I would like to have this behaviour also on premise (SharePoint server 2013).
    Does anyone know if this is possible?
    Thanks!

    Hi,
    The Site Feed web part in SharePoint on-premise is different from the web part in SharePoint online.
    It is by design that the post will be posted in SharePoint on-premise when clicking Enter button in keyboard.
    As a workaround, if you need to turn to another row, you can click Shift+Enter in SharePoint on-premise.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to change the behaviour of the Cancel-Button of SSO-Login-Page (Forms)?

    Hi Folks,
    we use SSO-Login to authenticate users using Forms. How do I change the URL which is opened when a user clicks on the cancel button on the SSO Login page?
    In the formsweg.cfg file there is a parameter named ssoCancelUrl, but if I define it, it doesn't work anyway. Seems like it has something to do with ssoDynamicResourceCreate, but I don't exactly understand what.
    Can't I simply change the URL which is opened (globally), when a user hits the cancel button on any SSO-Loginpage.
    Thanks in advance.
    Regards.

    Exactly this does not work! Please watch my settings:
    Global Setting in formsweb.cfg
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=false
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    App-Specific settings in formsweb.cfg
    [proz]
    envFile=proz.env
    form=proz.fmx
    title=proz
    separateFrame=true
    width=1280
    height=960
    ssoMode=true
    ssoDynamicResourceCreate=false
    ssoCancelURL=http://machinename:port/zugangsportal/
    otherparams=useSDI=yes P_SERVER_URL=machinename:port P_REP_SERVERNAME=machinename_proz ZP_TARGET_ID=%ZP_TARGET_ID%
    When I now access http://machinename:port/forms/frmservlet?config=proz I got redirected to the SSO-Login-Page but the Cancel-Button still links to Middletier Home. Why?
    Regards.

  • How to change keybord map

    I have a trouble with keybordmap.Im using awesome wm and the keybord is us but in rc.conf it is croat.
    how to make awesome to use croat kaybord map

    rc.conf has nothing to do with X. rtfw

  • How to change colour of mailbox containing new mail

    I have Thunderbird sort my incoming mail into various mailboxes based on various criteria.
    Until recently, when new mail arrived in any box, the title of that box (in the list, left hand pane) turned red - thus making it easy for me to identify which boxes needed my attention. For some reason this has stopped. The incremental number showing the number of unread messages still changes, but the title colour remains black.
    Anyone know how to change the behaviour to highlight mailboxes containing new mail please?
    Thanks..

    My point is that until recently the behaviour was automatic - it changed the colour of box names as amatter of course. This has now changed, wth all box names being in black whether or not there is new mail in the box.
    I receive a lot of mail and being able to quickly distinguish which box had received new mail would make life easier..
    I suspect there is a setting within Thunderbird to enable this but I'm damned if I can find it..

  • How to change the default workspace polling behaviour

    Here are the instructions on how to change the polling interval in workspace:
    The workspace source project is usually under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace)
    The file that needs to be modified is SessionManager.as and is under  (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\foundation\src\lc\fou ndation)
    Set the value in a javascript file and then read this from the Workspace app.  You can see an example of this in the same createChannelSet() method wrt the “enableSmallMessages” variable. To do this:
    1- Add the following lines to the workspace-config.js file right after the enableSmallMessages var definition (the js file is in the sdk under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\ui\html-template\js) – note that my example sets it to 10 seconds:
    1- Then in the createChannelSet() method, define a new var with the same name and type=Number and default it to 3000 (to be consistent with the current behaviour):
                   var pollingInterval:Number = 3000;
    2- Then, in the existing block where ExternalInterface.available is true, add the line to read the new value from the js file like this:
                  pollingInterval = ExternalInterface.call(“pollingInterval”);
    3- Set pollingInterval on the channel with:
                 channel.pollingInterval = pollingInterval;
    4- Add this function to the workspace-config.js file
          // pollingInterval is the channelset polling interval in millisecs   
          function pollingInterval()
                return 10000;
    Compile this code and rebuild the workspace war, making sure the war contents contain the updated js file too, and then the polling interval will be read from the js file, making it much easier to change.
    Here is the doc on how to customize workspace: http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf

    Changing the Workspace Polling intervals just got a whole lot easier.  Go to http://blogs.adobe.com/ADEP/2011/08/workspace-polling-in-adep.html for more info.

  • HOW TO Change behaviour of attendance type

    Hi guys,
    I have a question for you:
    - I have an attendance "9500 Extra Time", for overtime, introduced through IT 2002, which belongs to attendance type "O" (Overtime). When time schema is executed, attendances of this type are added to table TIP (6th time pair):
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  O  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    But after that, when function "P2005" is processed, this time pair overwrites overlapped pair, and time pair type is changed to "M":
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  M  0310               P                                        1,0000 <----
    15.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   0,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    As you can see, one hour of the time pair 14.00-15.25 is overwritten by the presence "9500 Extra Time" This is all rigth.
    But I have other attendance "9000 Formation", which belongs to attendance type "B". This is the table TIP just before "P2005" execution:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000     <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    And after "P2005" execution. There is not overwriting in this case:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    Note: Function P2005 is called without parameters and IT 2005 is empty for this date and employee, so nothing is transfered.
    OK, THIS IS MY QUESTION:
    I need attendance "Formation" to work as attendance "Extra Time". I'm not going to change Formation's attendance type (B), so I want to know how can I change the behaviour of absence type "B" so overlapped time pairs are overwritten as now actually happens with attendance type "O".
    I don't know where to change this, could you please help me?
    Thank you a lot.

    Try to use TextField1.access = "readOnly";
    Jasmin

  • How do I change the behaviour of an update button.

    I have a variable - $UpdateFlag, which contains a string and updates a table with it on the click of the update button.
    The problem I have is that if the string is blank, I don't want to update, and I want the button to exit instead.
    here's the code. At the moment the button does nothing if $UpdateFlag is blank.
    How do I change the behaviour of the button so that it can update or exit based on $UpdateFlag?
    <?php
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1") and $UpdateFlag !='' ) {
      $updateSQL = sprintf("UPDATE offer SET status=%s WHERE offer_id=%s",
                           GetSQLValueString($UpdateFlag ,"text"),
                           GetSQLValueString($_GET['offer_id'], "int"));
      mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
      $updateGoTo = "Member2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
        echo OK;
      header(sprintf("Location: %s", $updateGoTo));

    Add an else statement to do what you want if the flag is empty.
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1") and $UpdateFlag !='' ) {
      $updateSQL = sprintf("UPDATE offer SET status=%s WHERE offer_id=%s",
                           GetSQLValueString($UpdateFlag ,"text"),
                           GetSQLValueString($_GET['offer_id'], "int"));
    mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
    $updateGoTo = "Member2.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
        echo OK; // <-- This will cause a parse error
      header(sprintf("Location: %s", $updateGoTo));
    } else {
      //do something else
    Note that your echo statement will cause a parse error. OK is a string, and should be in quotes. Also, it will prevent the redirect from working.

  • How can we change the behaviour of a method by using proxy ??

    Hi ,
    can anybody tell me how we can add or change the behaviour of a method in java using the proxy object ?? it would be better if u put ur idea with an example .
    Thanks ,
    Ganesh

    Please take your time to write full words: "you" instead of "u", "your" instead of "ur". It makes your posts a lot easier to read, especially for those of us who don't have English as their native language.
    You can not really "modify" the behaviour of a method by using a proxy, but you can create a proxy, direct all but one method to the original method and provide a separate implementation for the target method.
    This way you'll have two objects with the same interface (not only in the Java sense, but all methods look the same), but differing behaviour: the original object and the proxy.
    Now if you pass around the proxy instead of the original object, then it'll look as if you changed the behaviour of your object.

  • Windows File CS Content Crawler - How to change crawl method?

    Hi,
    I have encountered an odd issue. I am using a Windows File CS Content Crawler to pull in some PDF files from a remote folder.
    However I noticed the Windows File CS Content Crawler is crawling in the document title rather than the actual PDF filename.
    I have checked the admin screens and I cannot find any way to tell my Windows File CS Content Crawler portlet to grab filenames and use these as the file display name when crawled in.
    The business clients do not use the document title and meta features and will not use them in the future so the way the current Windows File CS Content Crawler portlet crawls documents into the portal will not work as most will not have a document title or will have some default internal name.
    For example the PDF documents I am crawling in have Document Title's that have no relevance to the document filename.
    We are only interested in the filename and not the document title (however we may use the field in the future for meta information). Apart from doing some development work to make a custom crawler is there any other way to change the behaviour of the Windows File CS Content Crawler.
    I had to go into each document property in portal and modify the name field to the correct filename as it was using the value found in the Document Title field (incorrect).
    This seems wrong to me, I can understand using the meta data information contained in files to do the crawling and make searching better however how do you do this with a PDF file that you cannot search against inside portal anyway?!

    You can acomplish by changing the Global Document Property Map.
    I don't have the specific screen in front of me so this is from memory.
    Change the Name property to File name
    Change the Title property to File name
    You might have to experiment a bit with some test documents.

  • How to change default compile directory tmp_ejb?

    Dear all,
    Someone knows how to change the default directory "tmp_ejb...." in WebLogic Server
    7.0?
    This is the default directory where WebLogic Server 7.0 generates and compiles
    the EJB's declared in config.xml.
    I try to specify the attribute TmpPath="ANOTHER_TMP_LOCATION_DIRECTORY_FOR_EJB"
    in the EJBContainer node but still doesn't work.
    The same thing happens when I test this attribute on EJBComponent declaration.
    Someone knows if there is an enviroment variable that specify this tmp_ejb location
    path?
    It's false that the tmp_ejb is located where the config.xml file is placed.
    I have 3 weblogic servers and they haven't the same behaviour.
    Someone can help me??????
    Thanks.

    I ran into the same problem and was wondering if you got an aswer the question you posted in BEA's news group: "How to change default compile directory tmp_ejb?
    Thanks

  • How to change default browser to Firefox.

    Hi,
    I've upgraded our Solution Manager 7.0 to EHP1. Most of the applications that I use: sld, smd, user admin, etc. run fine in my default browser, Firefox.
    But when I use a workcenter, RCA for example, and I open a webdynpro application which runs on a separate browser window, Internet Explorer is always used. How can I change this behaviour to choose the right default browser ?
    Regards,
    Joan

    Hi Joan,
    You can set in your Firefox. Go to Tools->Options. Choose the Main tabs, then press button Check Now in system default and if your firefox not set as default browser you will be asked to change the default browser from IE to firefox. I've been using firefox as default browser to test workcenter service.
    Hope it helps.
    Rgds,
    Desty.

  • How to change mount options on an install usb drive ?

    Situation:
    I did create an USB drive with three bootable partitions;
    - one bootable volume named “Install OS X Yosemite”, created with the ‘createinstallmedia’ command
    - one bootable volume named “Install OS X Mavericks”, created with the ‘createinstallmedia’ command
    - one bootable volume named “Install OS X Mountain Lion”, created by restoring the /Install OS X Mountain Lion.app/Contents/Shared Support/InstallESD.dmg image within the 10.8 Installer app
    Everything works fine, and I can select any of the three boot volumes in order to boot and install a computer with 10.8, 10.9 or 10.10.
    Here are my two questions:
    1. When booting with the Startup Manager, I can see the three boot volumes on the USB stick listed as startup options. When the first two are named “Install Yosemite” or “Install Mavericks”, the Mountain Lion one appears as “Mac OSX”. Is there a way to change this value / string ?
    NB: renaming the Mountain Lion volume on the USB drive using the Finder was done, but does not change in the way the volume appears in the Startup Manager
    2. When connecting the USB drive to a running OS X system, all volumes mount well, but the Mountain Lion one automatically opens a Finder window. Is there a way to change this behaviour, having the volume mounted, but preventing this Finder window to automatically open ?
    Read about the 'bless' command, but I am not sure this could solve the issue, as my Install Mountain Lion drive is already bootable and working ...

    I haven't had chance to test but bless looks promising…
    http://apple.stackexchange.com/questions/2350/how-can-i-change-the-title-of-a-bo ot-image
    http://apple.stackexchange.com/questions/19183/how-to-prevent-finder-windows-fro m-automatically-popping-up-when-i-attach-a-disk
    … in more ways than one.

  • How to change the caret/selection color of text input controls?

    Hello JavaFX Community,
    i'm new to JavaFX. I'm using it since i saw the huge steps forward with version 2.0.
    I have the task to migrate a software from Swing to JavaFX. As a part of our corporate design, we used a special color for the caret and text selection. I couldn't find any information about changing the caret color in JavaFX 2, so i'd like to ask you and i'd be very thankful for an advise.
    There is a cross-post at StackOverflow:
    http://stackoverflow.com/questions/10057989/how-to-change-the-caret-color-in-javafx-2-0
    Thanks and best regards.

    This might be possible, but it is not trivial. You cannot do it with a standard API at this time, you will have to look into creating a skin that allows for these properties to be controlled.
    For example, the color of the caret is currently controlled in the TextFieldSkin (look for the "caretPath" property). Just forcing a color change in a subclassed skin is not so hard. Something like this:
    public class MyTextFieldSkin extends TextFieldSkin {
      public MyTextFieldSkin() {
        this.caretPath.fillProperty().unbind();
        this.caretPath.fillProperty().set(Color.RED);
    }However, it gets trickier if this color must be dynamic and if you want other things to be changed as well. It is a place to start though.
    Many of the skins methods and properties are 'protected' though, so atleast in Skin subclasses you have a lot of options to introduce new features and behaviour.

Maybe you are looking for