InputField's Lost Focus Event?

Dear All,
The input field does not seem to support an onLostFocus event.
Is there a work around?
How can the lost focus be detected?
Thanks and regards,
Mayuresh

Hi,
As far as i know no work arounds, If you try work arounds it will be too costly in terms of performance.
Only option is users mercy and handle it in onEnter
Regards
Ayyapparaj

Similar Messages

  • How to catch cell lost focuse event of matrix

    Dear all
    can you tell me how to catch the cell lost fouc event of matrix.
    i want to check the value is entered the that cell, which is not greter than the extising value..
    thanks in advance......

    Hi
    For that you can use either validate or lost focus event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' BubbleEvent sets the behavior of SAP Business One.
            ' False means that the application will not continue processing this event.
            ' Validate event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
              (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
            'Lost focus event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
             (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
        End Sub
    Hope this helps
    Regards
    Arun

  • ItemEvent - Event Type - Lost Focus Event

    Hi,
    Just want to ask whether what eventtype i should use for this situation.
    I want to do something when the itemcode in marketing document been key in correctly.
    At first i use the lost focus event. but i after i find that the lost focus event will keep on check where the itemcode is key in correct or not when it lost focus. Actually I want this effect but this will caurse the scoll bar cannot move.
    For example. when i put the cursor in item code column. then i go and scoll the bar. it will keep on fire the lost focus event make me cannot scoll the bar or the matrix become wrong disappeared. Any idea on it?
    Sorry i maybe not explain well. But i don know how to explain on it. Hope you all understand what I mean la.
    Regards
    Wong

    Hi Wong
    1st Try to split them
    2nd use beforeAction=true and ItemChanged = True
    If you have 2005/2007 version on the item code et_choose_from_list and validate are similar...
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE then
      if pVal.ItemChanged=True And pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    or
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_choose_from_list then
      if pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    Regards,
    J.

  • Re:Lost focus event

    Hi all,
    I have written some code in lost focus event.But the lost focus event is not firing.i didn't set any filters.please help me to sollve my problem.
    Regards
    Mohana

    Hi,
    try this
    If pVal.ItemUid = "Uid" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.BeforeAction = False  and pval.charpressed=9 Then
    end if
    '9'  is the item which gets fired when tab is pressed
    it's better to write keydown if ur using tab
    and coming to firing a event i gave the code before._refere to ur previous replie's_

  • TLF lost focus event?

    Is there something like a lost focus event (like onBlur in JS)?

    It is supposed to inherit InteractiveObject events such as flash.events.FocusEvent.FOCUS_OUT ("blur" in JS)

  • Retrieving data upon lost focus event

    Hi all..
    Is is possible to make some data displayed in a table, whenever the focus lost event happen on a textfield?

    Yes

  • Lost focus event litesner vs Mouse event litesner

    hi all, I having problem with JSwing components in window environment. Below is the phenomenon.
    1.) create a JFrame.
    2.) drag JTextField and JButton put onto the JFrame.
    3.) Add FocusLostEvent into the JTextField lostFocusListener.
    4.) At the event code this:-
    if (lostFocusEvent.isTemparory())
    return;
    javax.swing.JOptionPane dialog = new javax.swing.JOptionPane(
         "Error",                         javax.swing.JOptionPane.INFORMATION_MESSAGE,                         javax.swing.JOptionPane.DEFAULT_OPTION
    dialog.createDialog(this,reslabels.getString("Error_Input_Error") ).show();
    5.) run the program.
    6.) focus your cursor in the JTextField. Next, use your mouse click on the JButton.
    7.) You should see this. Message Dialog pop-up.
    8.) Well, don't click the OK/NO button from the Dialog box.
    9.) Now, point your mouse to the button and see what will happen to your JButton.
    10.) The JButton is Armed.
    By right the Jbutton should not be armed because the focus should has gained by the dialog box.
    After all, we try create the same program using MS VC++. It does not have this problem because logical enough the focus has obtained by the dialog Box. Jbutton should not perform any action. Otherwise, it is some kind of degrade the dialog show modal.
    If you has above experience and solutions, please do share with me. Thanks.
    regards,
    elvis
    scjp

    WWWizard, It doesn't work. below is the source code. Please take a look and compile it and run at your window environment.
    1.) Focus you cursor at the JTextField.
    2.) Once ready, click on the JButton. You should see the Dialog msg pop up. Do not close the Dialog at this moment.
    3.) Move your mouse pointer to the JButton that you just clicked. Why the JButton is Armed? It shouldn't happen in window environment.
    ========start==========
    package test.lib;
    import java.awt.*;
    import javax.swing.*;
    * This type was generated by a SmartGuide.
    public class TestCustLib extends JFrame {
         private JPanel ivjJFrameContentPane = null;
         private JPanel ivjTestCustLibPane = null;
         IvjEventHandler ivjEventHandler = new IvjEventHandler();
         private JTextField ivjJTextField1 = null;
         private JButton ivjJButton1 = null;
    class IvjEventHandler implements java.awt.event.FocusListener {
              public void focusGained(java.awt.event.FocusEvent e) {};
              public void focusLost(java.awt.event.FocusEvent e) {
                   if (e.getSource() == TestCustLib.this.getJTextField1())
                        connEtoC1(e);
         private lib.ButCus ivjaa = null;
    * TestCustLib constructor comment.
    public TestCustLib() {
         super();
         initialize();
    * TestCustLib constructor comment.
    * @param title java.lang.String
    public TestCustLib(String title) {
         super(title);
    * connEtoC1: (JTextField1.focus.focusLost(java.awt.event.FocusEvent) --> TestCustLib.jTextField1_FocusLost(Ljava.awt.event.FocusEvent;)V)
    * @param arg1 java.awt.event.FocusEvent
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void connEtoC1(java.awt.event.FocusEvent arg1) {
         try {
              // user code begin {1}
              // user code end
              this.jTextField1_FocusLost(arg1);
              // user code begin {2}
              // user code end
         } catch (java.lang.Throwable ivjExc) {
              // user code begin {3}
              // user code end
              handleException(ivjExc);
    * Return the aa property value.
    * @return lib.ButCus
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private lib.ButCus getaa() {
         if (ivjaa == null) {
              try {
                   ivjaa = new lib.ButCus();
                   ivjaa.setName("aa");
                   ivjaa.setLocation(243, 160);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjaa;
    * Return the JButton1 property value.
    * @return javax.swing.JButton
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JButton getJButton1() {
         if (ivjJButton1 == null) {
              try {
                   ivjJButton1 = new javax.swing.JButton();
                   ivjJButton1.setName("JButton1");
                   ivjJButton1.setText("JButton1");
                   ivjJButton1.setBounds(60, 146, 85, 25);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJButton1;
    * Return the JFrameContentPane property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getJFrameContentPane() {
         if (ivjJFrameContentPane == null) {
              try {
                   ivjJFrameContentPane = new javax.swing.JPanel();
                   ivjJFrameContentPane.setName("JFrameContentPane");
                   ivjJFrameContentPane.setLayout(new java.awt.BorderLayout());
                   getJFrameContentPane().add(getTestCustLibPane(), "Center");
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJFrameContentPane;
    * Return the JTextField1 property value.
    * @return javax.swing.JTextField
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JTextField getJTextField1() {
         if (ivjJTextField1 == null) {
              try {
                   ivjJTextField1 = new javax.swing.JTextField();
                   ivjJTextField1.setName("JTextField1");
                   ivjJTextField1.setBounds(54, 64, 126, 20);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJTextField1;
    * Return the TestCustLibPane property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getTestCustLibPane() {
         if (ivjTestCustLibPane == null) {
              try {
                   ivjTestCustLibPane = new javax.swing.JPanel();
                   ivjTestCustLibPane.setName("TestCustLibPane");
                   ivjTestCustLibPane.setLayout(null);
                   getTestCustLibPane().add(getJTextField1(), getJTextField1().getName());
                   getTestCustLibPane().add(getJButton1(), getJButton1().getName());
                   getTestCustLibPane().add(getaa(), getaa().getName());
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjTestCustLibPane;
    * Called whenever the part throws an exception.
    * @param exception java.lang.Throwable
    private void handleException(java.lang.Throwable exception) {
         /* Uncomment the following lines to print uncaught exceptions to stdout */
         // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
         // exception.printStackTrace(System.out);
    * Initializes connections
    * @exception java.lang.Exception The exception description.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initConnections() throws java.lang.Exception {
         // user code begin {1}
         // user code end
         getJTextField1().addFocusListener(ivjEventHandler);
    * Initialize the class.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initialize() {
         try {
              // user code begin {1}
              // user code end
              setName("TestCustLib");
              setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
              setSize(460, 300);
              setTitle("TestCustLib");
              setContentPane(getJFrameContentPane());
              initConnections();
         } catch (java.lang.Throwable ivjExc) {
              handleException(ivjExc);
         // user code begin {2}
         // user code end
    * Comment
    public void jTextField1_FocusLost(java.awt.event.FocusEvent focusEvent) {
         if (focusEvent.isTemporary())
              return;
         //int li_Ok = javax.swing.JOptionPane.showConfirmDialog(this,"Don\'t click me!!! Move your mouse to JButton1.","Oops",     javax.swing.JOptionPane.DEFAULT_OPTION,javax.swing.JOptionPane.QUESTION_MESSAGE);
         javax.swing.JOptionPane.showMessageDialog(this,"Don\'t click me!!! Move your mouse to JButton1.");
         //javax.swing.JOptionPane.showInputDialog(this,"Don\'t click me!!! Move your mouse to JButton1.");
         //javax.swing.JOptionPane.showOptionDialog(this,"Don\'t click me!!! Move your mouse to JButton1.","Don\'t click me!!! Move your mouse to JButton1.",javax.swing.JOptionPane.YES_NO_OPTION,javax.swing.JOptionPane.WARNING_MESSAGE,null,null,null);
         //javax.swing.JOptionPane.showInternalMessageDialog(null,"ta");
         return;
    * Starts the application.
    * @param args an array of command-line arguments
    public static void main(java.lang.String[] args) {
         try {
              /* Set native look and feel */
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              /* Create the frame */
              TestCustLib aTestCustLib = new TestCustLib();
              /* Add a windowListener for the windowClosedEvent */
              aTestCustLib.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowClosed(java.awt.event.WindowEvent e) {
                        System.exit(0);
              aTestCustLib.setVisible(true);
         } catch (Throwable exception) {
              System.err.println("Exception occurred in main() of TestCustLib");
              exception.printStackTrace(System.out);
    ========end==========

  • ALV Grid Handle Edit Event (Lost Focus)

    Hi all,
    I have some problems with the ALV Grid.
    Target:
    I have an ALV Grid with editable Column. If the user insert, update or delete the content of the column and leave the column (column lost focus) i'd like to do somthing - this means I need a event for this action. Can anybody help me to solve this problem?
    Thanks Stefan

    Use Event data_changed and data_changed_finished of the cl_gui_alv_grid.Then all you have to do is registering your event to the ALV and fill the methods with what you want to do.In ALV Grid, There is no event to capture the lost focus of a column if you don't modify it.
    CLASS lcl_event_receiver DEFINITION.
        METHODS:
    *$ Check the change
           handle_data_changed FOR EVENT data_changed
                                   OF cl_gui_alv_grid
                               IMPORTING er_data_changed
                                         e_ucomm
                                         e_onf4
                                         e_onf4_before
                                         e_onf4_after,
           handle_data_changed_finished
                               FOR EVENT data_changed_finished
                                   OF cl_gui_alv_grid
                                IMPORTING e_modified
                                         et_good_cells
                                         sender,
    ENDCLASS.                    "LCL_EVENT_RECEIVER DEFINITION

  • Using Child Panels - cannot FOCUS events are lost?

    Hi all,
    I am working with some legacy code that my boss would like updated.  We have a background (parent) panel with many child panels that can come and go.  Typically, we have two panels - one with controls and one with a graph - visible almost all the time.  I have been trying to use FOCUS events to do some things, but one child panel (the control) appears to constantly get and lose focus.  I'm seeing this in debug mode with the breakpoints at the event code for the panel callback.  I'm careful to move the code windows away from this panel so the mouse isn't over it, but that seems to make no difference.  Do child panels get the events of the parent panels?  Also, the child panels do not appear to have max/min or close buttons in the title bar like standard windows.  Is there some way to put them there without taking the child panel out of the parent panel?
    Other things:
    1.  The boss would like to be able to resize a panel down to the point where clipping occurs, then automatically rearrange the controls so they line up vertically on one side of the panel and stop the resizing when they begin to be clipped.  I have seen this done in Java with the Layout Manager, but never in C. Any suggestions?  I know we can set a minimum resize value for a panel, but are there any easy ways to move the controls the way he wants? 
    2.  An alternative is to make a toolbar with the controls inside, but he likes the windows icon tool buttons which I don't believe we have access to in CVI.  I know we can make a command button and import an image to it, but is there a package that has the standard windows tool buttons that we can use?
    Thank you for any and all help.
    Judy Harrigan

    Hi Roberto Bozzolo
         For the parent panels and the children panels,I have some questiones to ask you ,could you tell me how I should do? Monthes ago ,I have asked the same question in NI.COM ,you  cansee the uir:http://forums.ni.com/t5/LabWindows-CVI/menubar-and-toolbar-enveloped-by-the-childpanel/m-p/1112563,
    I use :GetPanelAttribute (mainPanel, ATTR_SYSTEM_WINDOW_HANDLE, &parent);
              GetPanelAttribute (mlsPanel, ATTR_SYSTEM_WINDOW_HANDLE, &child);
              oldparent = SetParent((HWND)child, (HWND)parent); to create an mainPanel and a childPanel.
    For the mainPanel ,it contain the menubar and the toolbar,when I load the childPanel and move it,or
    click the maximize,the menubar and toolbar for mainPanel enveloped by the childpanel.I want the
    menubar and toolbar on top of the childPanel,can you tell  me  what I shoud do?
        you can see ,when I maximize the child panel,the menubar and the toolbar for the parent panel are enveloped by the child panel,also the title for child panel display under the parent title,this are very inaesthetic.and how I should do to make the child panel and the parent panel works as the windows style like the under-side example? 
        When click the maximize button for the child panel,the title for child panel disappeared and the "minimize button","renert button",and "close button" for the child panel display on the top right of the parent menubar.To all of this,how I should do,could you please help me?
    Attachments:
    result.JPG ‏91 KB

  • Text Input header render lost focus on grid data refresh

    I have create a text input  type header render for datagrid as a filter.  On change event I am dispatching my custom event which refresh the datagrid from
    server side filter but in this the text input in which I am typing lost focus and gain it again on mouce click
    Alreadt tried setFocus and focusManager
    Thanks
    Abha

    I'd probably wait for updateComplete and then call setFocus again.  And/or
    use callLater to defer setting focus.

  • JTextField losts focus

    Dear all,
    I have encountered a strange problem on writing GUI with Java.
    My JFrame contains serveral JTextFields, sometimes the cursor will lost, even though I click on the JTextFields, the JTextFields cannot gain the focus.
    On the other hand, sometimes there are more than 1 blinking cursor appears in some JTextFields, but neither of them received keyboard input.
    Once it happen, I will have to restart the program since it can't be recovered.
    Have you encountered such a problem? Is there any way I can solve it?
    Thanks in advance,
    Alphonso :)

    I've seen this a few times. I suppose it could be considered a Swing bug (since you should never see two blinking cursors in two places..), but each time I witnessed this bug, I realized that it was happening as a result of inappropriate code relating to focus-event-handling. Perhaps you should post the specific code and/or the user interaction that makes this bug reproducable -- then we could track down how to code around it...
    /Logan

  • Focus events being received out of order

    I have a complicated applet where each component is registered with multiple focus listeners. I have several pairs of JTextFields and JButtons - textfield A, button A, textfield B, button B etc. Clicking on a JButton normally causes a JTable to be popped and focus transferred to it. Clicking on the table header or selecting a table row causes the table popup to close and the focus transferred to the textfield associated with the button.
    I'm running into a strange case where the focus is initially on textfield A. Clicking on button B causes a temporary loss of focus on textfield A. The trace shows that the focus owner is null and the permanent focus owner is textfield A. The table still gets launched. Selecting a table row causes it to close but no component has focus any more. Focus owner continues to be null, and permanent owner continues to be textfield A.
    After working on other windows in the meantime, and returning to this window I find that the focus in now back to textfield B, as it should. However, the trace shows that B has received permanent focus events. This is followed by receiving permanent focusLost events on A and then permanent focusGained events on A. At the point all in said and done, the focus appears on B.
    Does someone know why the focusGained event on B appears before focus events on A? Another strange thing in the trace was that some focus gain/loss method invocations were interrupted, another focus method invoked and the previous method resumed. I could possibly take care of this by using synchronized on all focus gain/loss methods. Also, some methods show only part of execution and not even resumed. This is still a mystery to me. I'll appreciate if someone can shed light on this.

    One of the things you'll notice is that when a text field loses focus to a right-click JPopupMenu, it is never just one foucs lost/gained pair, but rather they trade focus back and fourth a few times. This is the same when the popup closes, the focus trades back and fourth a few times.
    You are describing a similar situation between a button and a text field.
    There never was any guarantee the gained/lost events happen in any order. Also, if there is a chain of focus events, the information in the intermediate events may not be useful.
    If you really do need to understand the focus changes at an actionable level, you might want to consider writing a focus helper class that can be used to answer semantic questions about focus changes, such as, did this component lose focus because of a button click? Or was it a Popup? Or was it a Tab-keystroke?
    The focus helper can store 'hidden' information in any JComponent using JComponent.setClientProperty(Object key, Object value)...
    So instead of creating a focus listener like:
    myComponent.addFocusListener(new FocusAdapter() {
      public void focusGained(FocusEvent e) {
        // do stuff here
    });You can do it like this:
    myComponent.addFocusListener(FocusHelper.createTextFieldToButtonListener());and in that method it creates the listener like this (you might need to pass some parameters):
    public static FocusListener createTextFieldToButtonListener() {
    FocusAdapter adapter = new FocusAdapter() {
      public void focusGained(FocusEvent e) {
        recordEvent(e);
        // do stuff here
    return adapter;
    }The helper method "recordEvent" tags those components with additional information about permenant and temporary focus ownership. Also it clears hidden information that is no longer useful.
    Then later on you can give the focus helper a FocusEvent, and ask it, is this text field gaining focus because of a Tab-In, or is it because of a popup menu has closed?
    The helper constructs answers based on the hidden properties it finds in the e.getOppositeComponent() and e.getSource(). It put those properties there, so it knows what they mean, and it uses them to distinguish between useless information in the focus event chain, and the important things you want to know.

  • Capture lost focus for a screen field !!

    I was more into Visual basic programming so the event name "Lost focus" !!
    Basically i want to validate a field after the user enters a value in that and before he moves to the next field.
    how to do that ? if the value entered is wrong I will display a message using MESSAGE IXXX(FF) with ".....".
    whats the event to be captured and where ? how do i code it ?
    thks

    If it is module Pool program then you can use the FIELD Fieldname module Modulename under PAI event.
    in side the module you can raise the error message.
    If it is report programming then you can use AT SELECTION-SCREEN ON <PARMETER>.
    and raise the error message.

  • JTable, cells lost focus

    How can I get or listen to event when my cell lost focus ??

    The correct answer is to... well, that should be saved for the Swing forum. or alternatively, its in the text for THE FIRST google result for "jtable cell listener".

  • An unnatural focus event is killing MOUSE_RELEASE on XP

    I only have this error being reported from people with XP PRO.
    So I overrode the dispatchEvent method so that I could monitor every event
    that was occuring because for some reason when a window lost focus then
    gained focus java acted like the mouse was still held down. These are the
    results I found:
    So this is in reference to a TEXT_AREA. A person clicks on the desktop so the text_area has lost focus and then they click back on the text_area. Below are the events that are fired when the user clicks back on the text_area and it regains focus..
    WIN98 WORKING:
    WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0
    WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0
    FOCUS_GAINED,permanent,opposite=null
    MOUSE_PRESSED,(11,8),button=1,modifiers=Button1,extModifiers=Button1,clickCo
    unt=1
    MOUSE_RELEASED,(11,8),button=1,modifiers=Button1,clickCount=1
    MOUSE_CLICKED,(11,8),button=1,modifiers=Button1,clickCount=1
    Focus gained and 3 proper mouse events are fired
    NOW
    WINXP PRO:
    FOCUS_GAINED,permanent
    MOUSE_PRESSED,(353,221),mods=16,clickCount=1
    FOCUS_LOST,permanent
    FOCUS_GAINED,permanent
    MOUSE_CLICKED,(353,221),mods=16,clickCount=1
    INVOCATION_DEFAULT,runnable=sun.awt.GlobalCursorManager$1@3e0e27,notifier=nu
    ll,catchExceptions=false
    MOUSE_MOVED,(353,220),mods=0,clickCount=0
    MOUSE_MOVED,(352,218),mods=0,clickCount=0
    Focus is gained, mouse is pressed, then focus is lost?????? then immediately
    gained???? and then mouse is clicked. The mouse released never gets fired
    thus when I move the mouse around the text field it just highlights things
    as if I'm holding down the mouse button. Somewhere in that odd gain and then focus the event is getting lost.
    ideas?? or workarounds??

    Hmmm that could be it. I've had a couple people report the problem though and they were all on XP PRO, maybe the drivers in XP are acting funny. Thanks for the idea, hopefully that's the problem.
    I did find out a little more out about the focus events.
    I have a class called AsmEditWindow that extends Frame.
    In this frame I have two different TextAreas, each of these textAreas have there own separate focus listeners that I've set up using inner classes. So like:
    msgarea.addFocusListener(new MsgAreaFocusListener());
    textarea.addFocusListener(new TextAreaFocusListener());
    Now on the functioning windows 98 system I Get:
    java.awt.event.FocusEvent[FOCUS_GAINED,permanent,opposite=null] on text0
    java.awt.SequencedEvent[] on text0
    java.awt.event.MouseEvent[MOUSE_PRESSED,(11,8),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on text0
    java.awt.SentEvent[] on sun.awt.windows.WToolkit@11946c2
    java.awt.SentEvent[] on sun.awt.windows.WToolkit@11946c2
    java.awt.event.MouseEvent[MOUSE_RELEASED,(11,8),button=1,modifiers=Button1,clickCount=1] on text0
    The first focus event is on text0 then the mouse listeners proceed without a problem.
    On the non-functioning windows XP system I get:
    java.awt.event.FocusEvent[FOCUS_GAINED,permanent] on frame1
    java.awt.event.MouseEvent[MOUSE_PRESSED,(353,221),mods=16,clickCount=1] on text0
    java.awt.event.FocusEvent[FOCUS_LOST,permanent] on frame1
    java.awt.event.FocusEvent[FOCUS_GAINED,permanent] on text0
    So frame1 gains, then mouse is pressed, then frame 1 loses and text0 gains focus and the mouse_release event never gets thrown.
    Is there something more that I should be posting to give insight? The code section to setup the Frame is about 95 lines so I was thinking that was too long to put in the post. If this assumption is incorrect tell me what part of the code would be useful, and I'll post it.
    Thanks

Maybe you are looking for