Cursor/focus permanently lost

I've just migrated a Java applet from jdk 1.3.1 to 1.4.2. One visual component in the applet is called List of Values (lov) which consists of a JTextField and a JButton. Clicking on the button causes a pop-up to appear which contains a table (JTable) of allowed values for the text field. Clicking on a specific value in the table dismisses the pop-up and carries the value over to the text field. Clicking on the table header also dismisses the pop-up without disturbing the text field. This code had been working under jdk 1.3.1.
However, under the new jdk if another unrelated app is also running on the same PC, clicking on the lov button and selecting a value from the pop-up or just dismissing the pop-up without selection causes the focus to be lost completely. From that point on, none of the text fields can be clicked on. The lov button can be clicked on, but after dismissing the pop-up, the focus remains lost. At that point the form is totally unusable. Can somebody suggest a solution?

I've just migrated a Java applet from jdk 1.3.1 to 1.4.2. One visual component in the applet is called List of Values (lov) which consists of a JTextField and a JButton. Clicking on the button causes a pop-up to appear which contains a table (JTable) of allowed values for the text field. Clicking on a specific value in the table dismisses the pop-up and carries the value over to the text field. Clicking on the table header also dismisses the pop-up without disturbing the text field. This code had been working under jdk 1.3.1.
However, under the new jdk if another unrelated app is also running on the same PC, clicking on the lov button and selecting a value from the pop-up or just dismissing the pop-up without selection causes the focus to be lost completely. From that point on, none of the text fields can be clicked on. The lov button can be clicked on, but after dismissing the pop-up, the focus remains lost. At that point the form is totally unusable. Can somebody suggest a solution?

Similar Messages

  • Cursor focus during a PPR event

    Hi,
    I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus does not move to text2, even though the user did a tab out after entering a value in text1. Cursor focus returns again to text1.
    Also, I do not want to do a page forward, so that processRequest is called again. That would be a costly operation for us. Please let me know if there is a way to regain cursor focus to the right textInput bean.
    Note: This is IE 7.
    Thanks. Much appreciate your inputs.
    Raja

    Raja see this thread, i have replied this some time back:
    Re: How to set focus on a textinput/poplist using PPR
    --Mukul                                                                                                                                                                                                                                                                                                       

  • Gainer Focus and Lost Focus

    How implements the methods to gainer focus and lost focus?
    Thanks

    Use a node.focusedProperty() change listener to know when a field gains or loses focus.
    Call node.requestFocus() to ask for focus (for some reason I have to wrap this in Platform.runLater to get it to actually do anything).
    Call node.setFocusTraversable(false) if you don't want the user to be able to tab to the node, but still be able to click on the node to give it focus.
    Call node.setDisable(true) if you don't want the node to be focusable at all.
    I'm not sure how the focus traversable order is calculated, perhaps the order that items are added to the scene?
    Not sure how you would create a custom focus traverse if you needed one.
      @Override public void start(Stage primaryStage) {
        final TextField tf1 = new TextField("First but not initially focused");
        final TextField tf2 = new TextField("Second initially focused");
        Platform.runLater(new Runnable() { public void run() { tf2.requestFocus(); } });
        final TextField tf3 = new TextField("Can focus by clicking on, but not by tabbing to.");
        tf3.setFocusTraversable(false);
        final TextField tf4 = new TextField("Cannot focus at all.");
        tf4.setDisable(true);
        tf1.focusedProperty().addListener(new ChangeListener<Boolean>() {
            public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
              if (newValue) {
                System.out.println("First text field gained focus");
              } else {
                System.out.println("First text field lost focus");
        VBox root = new VBox(); root.setSpacing(5);
        root.getChildren().addAll(tf1, tf2, tf3, tf4);
        primaryStage.setScene(new Scene(root, 300, 100));
        primaryStage.show();
      }

  • When typing in a website after opening in a tab, the cursor focuses to the address bar and makes logging to things difficult, how do I change this?

    As stated in the question on any website I open regardless of whether it is a new tab or just a new destination, the cursor focuses on the address bar and makes logging in to sites very infuriating. Any help is much appreciated.

    Thanks for the help, it didn't help with this particular problem. I figured it out though, I had an issue with the AVG safe search. I had to just delete the file in the program files x86.

  • HELP!!!...Firefox 4...STOP cursor focus from going to Bing search box????

    I just installed Firefox 4....Now every time I open firefox the cursor will automatically jump to the bing search box.
    I want it to start and stay inside the address bar.
    A long time ago I had this same problem and searched online and found a solution. I don't remember exactly what it was, but it was something like going into about:config and switching some settings inside there. That fixed the issue and ever time I would open Firefox my cursor would START and STAY in the address bar.
    Can anyone help me figure this out again? I don't want any add ons or extensions, I want it back to the way it was this morning before I upgraded to version 4.
    Thanks in advance!

    ***SOLVED***
    I finally found the solution...
    I have a Windows 7 64bit laptop, but this should work for Vista users as well...possibly XP users too, if you switch a couple of the folders around, if you're an advanced user you shouldn't have a problem....
    add this code to your firefox '''''"prefs.js"''''' file, you can find pref.js here, just follow the steps...
    C:\Users\<you>\AppData\Roaming\Mozilla\Firefox\Profiles\f9cunhcx.default\prefs.js]]
    Now add this line to the bottom of the list. Keep in mind for changes to take effect you must have Firefox closed, otherwise it'll just over write any changes you attempt to make and nothing new will happen.
    '''user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");'''
    After adding the above line, save the pref.js file and reopen Firefox, you'll now notice your cursor won't be in the search box. You'll have to manually put the cursor to where you want it to be. I have my home page set to www.msn.com it would drive me nuts that as soon as I open the page my cursor focus would go to the bing search bar. It wouldn't be so bad if it went to the google search bar in the top right hand corner...but anyways I hope this helps someone else out. If it does please leave a comment on your experience for the next person.
    Thanks,
    James

  • HTML DB Cursor Focus

    Hi everybody,
    I work with HTML DB 1.6. My question is about Cursor Focus. In my page Cursor Focus is SET TO: First item on page
    My first item is a Select list, my second item is an other Select list and my third item is a Text area. My cursor is focus on my third item; WHY ?. I want on my first one.
    Another question, is it possible to move our cursor to the next item after entering data in an item or to choose to don't have cursor on some item?
    Thanks. Bye.

    Thank you Mr. Horowitz,
    But, I just have to write tabindex=''1'' for example or I have to add a tag.
    Thanks. Bye.

  • Cursor focus bug(?) in v10.5

    Didn't notice this until 10.5. It makes it hard to switch to iTunes and use space bar to pause/play.
    1. Play something in iTunes. Note the cursor focus is in the songlist area of iTunes so that you can use spacebar to pause/play.
    2. Hide the app (via the dock or by cmd-tab and hitting 'h').
    3. Switch back to iTunes.
    4. Try using spacebar to pause/play. You can't. The focus is in the entire iTunes window, so you need to click into the songlist area to use spacebar.
    I am **pretty** sure this did not use to be the case as it is a common behavior for me and it's not working anymore.
    Anyone else notice this?
    -Matt
    Message was edited by: Matthew Grayson. Spelling correction.

    OK, I will post more pictures.
    So, I try to customize the standard waveform graph in LV, but right-clicking on the plot and select Advanced-> Customize or Edit->Customize Control form the menu.  Go into Customize mode.
    In 8.2 and before, you used to be able to just right-click on the decoration for the plot legend and replace it with something from the clipboard, etc.
    In 8.5, this functionality has been removed.
    However, you can select the item and go to Edit->Customize Control (I show it here for the cursor legend, as it works).  You get a new control window.
    (Continued in next post)
    Message Edited by Matthew Kelton on 11-06-2007 03:23 PM
    Attachments:
    cursors customize.png ‏15 KB
    customize dec 8.2.png ‏12 KB
    customize dec 8.5.png ‏11 KB

  • Bug: No Cursor Focus with Instant Preview Message Replies

    When you receive an Instant Preview Message and click on this notification (not shortcut reply but click on the notification itself for bbm or text messages) this brings you into the Hub to reply to that message. 
    The cursor focus is now in the reply field blinking however the typing focus is not here. You must explicitly click in the reply field to re-set the cursor focus. Now you can type to reply.
    Is this a known bug? Is there a fix?
    Blackberry Q10
    OS Version: 10.2.0.1803

    cor-el, Thank you for the quick response. However, I am not a techie by any stretch and am totally disabled. Your answer basically made no sense to me, sorry. I also have something called Session Manager, in this case irrelevant as my FF page never stayed up long enough for me to do anything even to click on Restore.
    I have in the meantime, simply reverted back to an installation of 3.6.8 and everything is working fine right now. I hope others will find benefit from your response as it is way too deep for me to venture.
    Thank you again for your response.

  • Cursor Focus in PLSQL portlets

    Hi,
    Is there a way to set the cursor focus in a form created in a PLSQL portlet without using javascript?
    Thanks

    Hi,
    You cannot do it using plsql. You will have to use javascript.
    Thanks,
    Sharmila

  • Cursor  Focus issue

    Hello Everyone,
    I have added a remember my username checkbox with login box.
    If somebody clicks the checkbox it remembers the username.
    However, the cursor remains with the first item ie. username.
    I want to change the cursor focus to password field if username
    field is not null.
    Can anybody help me in setting the tabindex property for password field.
    I want to set the tabindex in my plsql procedure.
    Thank You,
    Parveen

    You can do that in your page header Javascript code as follows:
    function first_item(){
    if (document.getElementById("PX_USERNAME") )
    document.getElementById("PX_USERNAME").focus();
    else
    document.getElementById("PX_PASSWORD").focus();
    }where PX_USERNAME and PX_PASSWORD are your username/pwd fields...and then in your page HTML body code put :
    onLoad=first_item();Thanks,
    Sam

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • Cursor focus to error field.

    In APEX 3.0, when I use Validations, Type Function Returning Error Text:
    If :P1_ITEM is null then
    return 'Must enter a value';
    end if;
    Everything is fine, except the cursor goes to the first field in the page. How do I make the cursor go to the field that contains the error (back to the field that did the validation)? Thanks in advance.

    Hi Shirley
    Sorry I did not see this post but I did reply to your question you post about inserting caps.
    if you create another page item say P1_PAGE_FOCUS then as part of your validation you set its value.
    If :P1_ITEM is null then
    :P1_PAGE_FOCUS := 'P1_ITEM';
    return 'Must enter a value';
    end if;
    add this bit of javascript to your header
    function setFocus(FocusItem)
      try {
        var oFocus = document.getElementById(FocusItem);
        document.getElementById(oFocus.value).focus();
      catch(err) {
        null;
    }You should also that your pages Cursor Focus is not set to first page item. Then add the following to your HTML Body attribute
    onLoad ="setFocus('P1_PAGE_FOCUS');"
    This should then set the page item that you want to set focus to the invalid page item.

  • WebDynpro Popup Cursor Focus Problem

    Hello WebDynpro experts,
    since CE7.1 (SP6) I am observing that an input field refuses to take the cursor focus after calling a popup window for a lookup.
    Only after some seconds the cursor appears again. Clicking the right mousebutton in this input field the cursor appears at once.
    It only happens on Internet Explorer. It does not happen in Firefox(but again when applying IE engine in Firefox).
    In some environments (different company, different IE settings) it works fine.
    This did not happen in NW04S/7.0.
    Does anyone know the reason, a fix or a workaround.
    Has it to do with JavaScript-settings?
    Thanks a lot for Your answers,
    Erik

    Hi
    [Follow this|requestFocus() doesn't work anymore in NW CE 7.1;
    Best Regards
    Satish Kumar

  • Updated - Cursor focus in HTML text field in JEditorPane

    The last poster just save my bacon - so an update for others: Adding a JEditorPane to a JWindow will result in all the <INPUT type=text> form elements to be non focusable. Switching to JFrame does make things work again - but I would love to have a JWindow again (I don't want the title bar for a kiosk type operation).
    thanks!
    brian
    Here is the guy I do thank!!!
    ** PROBLEM
    How do I make cursor focus go into an HTML text field in a JEditorPane?
    My test appplication is a JPanel containing a JEditorPane and nothing else. The content type is text/html. The HTML text contains a form and an INPUT TYPE=TEXT tag. I use setEditable(false) because I do not want the user to edit the paragraph text, only to type in the text field.
    The text field does not get cursor focus. Tab does nothing. The user can click with the mouse to place focus in the text field, so the field is capable of receiving focus. I guess the field is in a View that stops it participating in the component hierarchy.
    Is there a way to make this work?
    ** SOLUTION! - ok, if you don't use JWindow
    It turns out that setEditable(false) is not enough. The JEditorPane still gets in the way of the focus cycle. It also needs setFocusCycleRoot(false) and setFocusable(false) to prevent it from participating in focus. Focus on the text field then works normally.
    fp

    I don't want the title bar for a kiosk type operation).You could use an undecorated frame. Read the API for more info.
    Or, maybe this posting will help:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=675445

  • Remove cursor focus

    I have a page with a bunch of checkboxes..
    (enough that the page has to be scrolled)
    at the bottom of all of the check boxes is a text field..
    when the page is run the cursor jumps to the text field at the bottom of the page..
    how do I keep it from setting the cursor focus to the text field so the page opens at the top instead auto scrolling to the bottom..

    In the page properties look for: Cursor Focus. What is it set to?
    If it's set to the first item and the page is still scrolling to the bottom, try changing the cursor focus to "Do Not Focus Cursor" and then write a JS function to set the cursor to your first checkbox.
    Martin

Maybe you are looking for

  • When I now open I Photo it asks "What photo Library do you want i photo to use?  Never did this before.

    What happened?  I have beed using iphoto to download scanned photos - all of a suddent it asks, "What photo lib do you want i photo to use?"   Never had to do this before and nothing is available to choose?  Where did the old lib go?

  • IDVD quits with no warning

    When I try to create a new project in IDVD and click on the "Save" button it just quits with no message and the project is not created. I can only modify the latest project and cannot create a new one. It quit working recently. I tried reinstalling i

  • Plot to Word using ActiveX

    Hello, could someone point me in the right direction.  I am trying to export an image of a plot into a blank Word document using ActiveX.  I have attached an image of my attempt.  I would like to export it directly without saving to file.  I only hav

  • Firefox appear in taskmanager but dont run,safe mode dont work,profile manager didnt start

    problem start after ff update to 3.6.6 ff installed completly but after lunch ff appear in task manager but nothing happend.it didnt start in safe mode(same situation) & profile manager too. i try to uninstall & reinstall it many time but problem not

  • Anyone recognize this mother board

    I sure would appreciate some information about this mother board: http://paulpinkstaff.com/20100116_Compaq_mother_board_web_ready/20100116_Compaq_mother_board/index.h... Some day, when I can get some money together, I would like to try and get a syst