JButton loses Focus after a KeyPressed Event

Hello.
I have a simple form with a few textfields and buttons, everyone of this components has a KeyPressed Event associated, but i pressed a key (ENTER) on a button, it loses the focus and the next button catch it (i have a specified order setted).
The point is this only happens in the buttons, the textfields and receiving the event don't lose the focus.
Can someone tell what is wrong ?
Thank you.

I tryed to make a minimalist example to post here, but i couldn't reproduce the error, so i went back to try figure out what i missed.
I commented all the lines where i had button.setEnabled(..) and now works great, still don't know why, but it seems at some point the button loses the focus when is setEnabled(false)this is what i was doing:
private void LoginOKButtonKeyReleased(java.awt.event.KeyEvent evt) {                                         
        if (evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER)
           button.setEnabled(false);
           WorkerLogin worker = new WorkerLogin();
           worker.execute();
public class WorkerLogin extends javax.swing.SwingWorker<LoginResposta, Void>
         * Main task. Executed in background thread.
        @Override
        public LoginResposta doInBackground()
         * Executed in event dispatching thread
        //@Override
        public void done()
            try
                LoginResposta resposta = get();
                button.setEnabled(true);
}Edited by: noe.rocha on Feb 14, 2008 9:56 AM

Similar Messages

  • TextInput loses focus after a collection.refresh()

    Hi!
    I have TextInputs inside AdvancedDataGridHeaderRenderers in my ADG making filters by columns.
    But everytime I press a key (and collection.refresh() is called) to make the filter, the target text input loses focus after the call to the collection.refresh() method.
    The ADG headers inputs have the same focusManager object of my parent IFocusManagerContainer, but they are inacessible by TAB (and they do not TAB to each other).
    A note: My collection.refresh() method is called from inside my ADG override of commitProperties method.
    Any ideas?
    Thanks!

    I'd first make sure you need to make a change that requires a refresh.
    There are various ways to avoid/block refresh. It will depend on your needs.
    There is an API on ICollectionView, there is making certain properties not
    bindable and there is capturing and stopImmediatePropagation on the change
    events themselves.

  • Window Loses Focus After Modal Dialog is Dismissed

    hi,
    I need a JDialog to be opened when i click on a button in JFrame.and it should be modal so that user must not get control to its parent window and rest of the windows can be accessed.
    So, i tried setting property like setModalityType(Dialog.ModalityType.DOCUMENT_MODAL), but still unable to access all the windows not only its parent until the dialog gets closed.
    Another issue i was facing is when i close out the dialog i need to get the parent to Front of other windows in application. But in my case it was not happening.After closing the dialog, i am getting the last focussed window to front but not its parent. I tried calling getParent().toFront() in windowClosing() Listener of that dialog, But still not able to solve the problem.
    Hope someone understands my problems and give me solution.
    Hoping for quick response and thanks in advance.

    shrikanthhyd wrote:
    I need a JDialog to be opened when i click on a button in JFrame.and it should be modal so that user must not get control to its parent window and rest of the windows can be accessed.
    So, i tried setting property like setModalityType(Dialog.ModalityType.DOCUMENT_MODAL), but still unable to access all the windows not only its parent until the dialog gets closed.Perhaps you can fix this by calling the first dialog either without a parent or not as a JDialog but rather as a JFrame. Then the second dialog's modality will not impinge on the visibility of the original parent window. For instance:
    import java.awt.Dimension;
    import java.awt.Window;
    import java.awt.Dialog.ModalityType;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    class SwingFu2
        private JPanel mainPanel = new JPanel();
        public SwingFu2()
            mainPanel.setPreferredSize(new Dimension(400, 400));
            JButton showDlg1Btn = new JButton("Show Dialog 1");
            showDlg1Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg1Action(e);
            mainPanel.add(showDlg1Btn);
        private void showDlg1Action(ActionEvent e)
            Window frame = SwingUtilities.getWindowAncestor((JButton)e.getSource());
            JPanel dlg1Panel = new JPanel();
            dlg1Panel.setPreferredSize(new Dimension(300, 300));
            JButton showDlg2Btn = new JButton("Show Dialog 2");
            showDlg2Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg2Action(e);
            dlg1Panel.add(showDlg2Btn);
            //JDialog dialog1 = new JDialog(null, "Dialog 1", ModalityType.MODELESS); // either of these will work
            JFrame dialog1 = new JFrame("Dialog 1");  // either of these will work
            dialog1.getContentPane().add(dlg1Panel);
            dialog1.pack();
            dialog1.setLocationRelativeTo(null);
            dialog1.setVisible(true);
        private void showDlg2Action(ActionEvent e)
            Window window = SwingUtilities.getWindowAncestor((JButton)e.getSource());
            JPanel dlg2Panel = new JPanel();
            dlg2Panel.setPreferredSize(new Dimension(200, 200));
            JButton showDlg2Btn = new JButton("Show Dialog 2");
            showDlg2Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg2Action(e);
            dlg2Panel.add(showDlg2Btn);
            JDialog dialog2 = new JDialog(window, "Dialog 2", ModalityType.DOCUMENT_MODAL);
            dialog2.getContentPane().add(dlg2Panel);
            dialog2.pack();
            dialog2.setLocationRelativeTo(null);
            dialog2.setVisible(true);
        public JPanel getMainPanel()
            return mainPanel;
        private static void createAndShowUI()
            JFrame frame = new JFrame("SwingFu2");
            frame.getContentPane().add(new SwingFu2().getMainPanel());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    Another issue i was facing I don't know on this one. Good luck.

  • Adobe Reader XI moves to background (loses focus) after printing

    I have noticed that if another window is open (windowed or maximized) and you print from Adobe Reader (windowed or maximized) then as soon as you send the doc to the printer, the other window will suddenly be in front of your adobe reader window and you will have to click the Adobe icon at the bottom to bring it to the front again.
    It's sort of minor but annoying for some people here and I was wondering is anyone else noticing this and does anyone have an idea how to stop the window from jumping to the back as soon as you print?
    Please help me!!!!!

    Thanks for your response. I found the problem 1/2hr after posting my question. It had to do with the setting after hitting the print que. After installing the Adobe Reader XI the setting for destination in the print window change to save as PDF. Before it was set to my default printer. I never knew that there was other places for these documents could go. Never had to use them either.
    Again thanks for responding.

  • Using web.show_document the first time makes new browser window lose focus

    Hi,
    In our application we use show_document(url, '_blank') to open our reports (as pdf) in a new window.
    Our environment is Application Server 10g Release 2 with Forms 10g Release 2 and jinitiator 1.3.1.22.
    The first time I call a report, the new browser window containing the pdf is shown but loses focus after about 1 second. The focus is then returned to the applet window. When calling a report again it always keeps the focus.
    After closing the applet window and restarting the application, the same thing happens: first report called loses focus, all others keep the focus.
    Does anyone have any idea why this is happening? We want the focus to stay on the new browser window every time...

    Hi Jeroen,
    I m also facing a problem something similar to yours. If you got any solution please let me know.
    Problem-
    Currently my application is running on Forms 9.0.4.2 and my form calls another third party which displays the image in image viewer in new browser. When user clicks on the button to display image, then I m using the following Code -
    -- Method: displayDocuments ([Ljava/lang/String;)Ljava/lang/String;
    FUNCTION displayDocuments(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JARRAY) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'com/hli/imaging/adapter/LK_FormsImagingAdapter', 'displayDocuments', '([Ljava/lang/String;)Ljava/lang/String;', args);
    END;
    Image is displaying fine but the focus is staying on the newly opened browser. I want it to get back the focus to the forms window.Is this possible ???
    Thanks in advance
    Sai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Second window loses focus

    Hi all,
    I set up a navigation between two wd applications within the portal. The navigation will open a new window once the user clicks a button in the first application. The navigation itself works well, however, the new window is always shown behind the portal page, in other words, it loses focus after it is opened.
    Does anyone know a way to bring the new window to the front?
    Thanks!
    Hart

    hello thomas!
    is this problem with the losing focus when you open a second window fixed now?
    can i set the focus in a new opening window manually?
    thanks for your help...
    peter

  • After recent update to ff 10 my ff loses focus when opening non-active window. ALready tried everything. Any sugestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

  • Is there a way to keep the ADL open when testing CS5.5 Air apps after it loses focus?

    When I test Air applications (specifically targeting mobile) it seems that when the ADL (Air Debug Launcher) launches, it will automatically terminate the session when I click on anything else other than the ADL window.  I have been trying to use 3rd party application debuggers that provide improved memory diagnostics, but these debuggers only seem to be able to work when the application is launched through the Flash Player and not through the ADL.  Unfortunately, the Air specific code will only work in the ADL.  Is there some way to keep the ADL running even when it loses focus?  I have tried using the ADL from the Flash CS5.5 IDE as well as from the command line and both will terminate upon losing focus.

    - Transfer the app to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Connect the iPod to the computer and make a backup by right-clicking on the iPod under Devices in iTunes and selecting Back Up.
    - Restore the iPod from that backup. That should also update the iPod.

  • Lose focus when tabbing out of autoSubmit text box in IE

    Hey,
    Using JDEV 11.1.1.4 I have a problem with tabbing from one textbox to another textbox in IE. Both text boxes have autoSubmit=true and to reproduce the problem it's like so:
    I type a value or edit the existing one into text box 1 and press Tab. The submit is done and focus is given to the second text box but only momentarily before it loses focus. The focus then is given to the window it would appear, because if I press Tab again it begins from the top of the page. This is only happening in IE (v8 is all I have tried so far). This ONLY happens when the value of the second box is null. If it has a value all works fine.
    I tried implementing various solutions including using the ExtendedRenderKitService to write javascript to the client from the bean to set focus on the text box after the partial render. The javascript is called and focus is set but then something else calls blur on it afterwards. I have verified this by putting a blur event listener on it and it gets called after I set focus on it from my own javascript!
    Has anyone experienced something similar? Just to note: It only happens in IE, and it only happens when the second text box is empty.
    Thanks,
    Ross

    Hey John,
    In reply to your message
    1). Tried on 11.1.1.6 to see if the issue is still there?Not really an option to try and upgrade and test if it works there.
    2). Made a simple test case removing as many variables as possible (e.g. do a simple screen with no DB interaction and only two fields) to see if it reproduces or it's something with your screen?Tried this an it works fine which means it is something unique to my code.
    3). Filed an SR at https://support.oracle.com with your test case
    As above it looks like it's not a problem with ADF so I will keep looking at it.

  • I need to execute a formatted search when the field loses focus

    Is this even possible?  I do NOT want to force the users to press shift-f2 every time to validate/search on every field on the form.  This is absurd.  How can I trigger a formatted search on a field when it loses focus?
    I tried activating menu item #7425, but it's not executing the one on the field that loses focus, but a different one.  I guess it only works on the active field??
    I tried catching an earlier event, but after it executes the formatted search on the right field, it places the value on whatever field just gained focus instead of the one it was assigned to.
    Any ideas here?  We cannot force our users to press shift-f2 on all these fields!
    The only other idea I have is to not use a formatted search but instead try to create some sort of popup form with a grid and my own query.  There has to be an easier way, right?

    Bryan:
    I use the following on a KeyDown event for when the User tabs out of a field after entering data if the data they entered is not valid.  Perhaps you could try this in the LostFocus event:
    g_B1Connection.Application.SendKeys("+")
    Also, I have used this in the KeyDown event:
    DisplayLookup("txtWO0")
    Private Sub DisplayLookup(ByVal objText As String)
            Try
                WOItem = WOForm.Items.Item(objText)
                WOItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                g_B1Connection.Application.SendKeys("+")
            Catch ex As Exception
                g_B1Connection.Application.MessageBox(ex.Message, "Ok", 1)
            End Try
        End Sub
    Thanks,
    EJD

  • JFileChooser in Applet keeps focus after selection of a directory

    I have spent several days on the following issue, but haven't found any solution so far...
    When I open a JFileChooser out of an Applet and select a Directory, the FileChooser closes as expected, but a text field located on the main applet pane cannot be selected any more (the mouse pointer goes to "text cursor" style when hovering over it, but the text field does not get the focus when clicked). Strangely, the other button on the same pane still reacts to mouse clicks. This happens only when I select a directory, but not when I choose a file. Also, it does not happen, when I click "Cancel" instead of "Open". Furthermore, the problem occurs only using the Firefox plugin, not in the AppletViewer. I even tried to remove the text field from the root pane and add a new one after the file chooser execution, but still it won't regain focus.
    Here's the stripped-down code:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class TestApplet extends JApplet {
        private static final long serialVersionUID = 1L;
        @Override
        public void init() {
            final JPanel rootPanel = new JPanel();
            rootPanel.setLayout(new BorderLayout());
            getContentPane().add(rootPanel);
            final JButton fileChooserButton = new JButton("Start");
            fileChooserButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    JFileChooser fc = new JFileChooser();
                    fc.setAcceptAllFileFilterUsed(false);
                    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                    fc.setMultiSelectionEnabled(false);
                    fc.showOpenDialog(rootPanel);
            JTextField textField = new JTextField();
            rootPanel.add(fileChooserButton, BorderLayout.CENTER);
            rootPanel.add(textField, BorderLayout.SOUTH);
    }And this is the applet.html:
    <applet code="TestApplet.class" codebase="file://home/administrator/workspace/Test/bin" width=100 height=50></applet> This concerns: Ubuntu 9.04 / Firefox 3.6.9 / JVM 1.6.0_20
    Any help or ideas for a workaround would be much appreciated...

    AndrewThompson64 wrote:
    JWS was available as a separate download since Java 1.2. It became bundled with the JRE around 1.4.2, not sure of the micro-version, but it was in the 1.4 era. 1.4 has been relegated to the 'obsolete' pile now, so I think you are safe expecting the end user to be prepared to update to 1.5+ if needed.You don't know my grandma: she isn't prepared to anything, but she wants things to just work ;-)
    For ensuring the user has a minimum of 1.5, see the [Java&#153; Rich Internet Applications Deployment Advice|http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html] for details of the deployJava.js script. It is useful for both applets and apps. deployed using JWS.
    Yes, I already use this script for my Applet, but I hadn't realized that it worked for JWS as well.
    Do you mean like a corporate intranet?Exactly. Another example could be centrally managed laptops connecting over Internet to your application (like the traveling salesman connecting to his task planner)
    ... Can you do a search of the bug DB and if nothing shows up, submit one? The only chance these things will get fixed is if they are reported.I agree with you on that question and I've already had a look (didn't find anything so far)
    Embedded applets are a PITA. I wouldn't disagree, but again, if you want to bring a rich client to the masses, sometimes that's the way to do it (unless you go for ActiveX, which is definitely not an option for me). Anyway, I'll give JWS a try.. and then I'll ask the customer help desk if it was a good idea...
    For example, is there any programmatic way to determine if the embedded applet is not acting as expected? If so, monitor that and on detection, pop a dialog to the user explaining the situation and offering the free floating version from a button click.Well, I have to think a bit more about this. Probably I will just to check if the text field gets the focus after a mouse click, by adding some kind of test inside a MouseListener. If it doesn't get the focus, I would be quite sure that there's a problem... I'll look into this.
    On the other hand, to work around the whole problem, I have found some Open Source Directory Chooser (http://sourceforge.net/projects/jfolderchooser), which looks nice at a first glance, but I didn't have the time to go into it in more detail. I'll just quote you here:
    I cannot say if this will fix the problem. Or perhaps it will fix the problem in that browser/JRE combo., but break it in another. ;)Words full of truth :)

  • Jframe lose focus with jdk 1.4 beta90

    My jframe has two JInternalFrame. One contains a jtree, another contains a jeditorpane. A jpopup menu will appear, after I click the jtree. After I finish the jpopupmenu action, my jeditorpane can not recieve any keyboard event. The only workaround is to switch to any other application, then click jeditorpane again.
    I trace the status of the JFrame.
    1. JFrame get focus
    2. after click jtree, JFrame lose focus
    3. After finish the jpopup menu action, JFrame should gain focus. but JFrame doesn't get that.
    How can I figure it out. Any advice would be highly appreciated.

    i believe it is a bug of jdk14

  • KeyPressed Event in Swing

    In keyPressed Event Iam calling dispatchEvent on the component passing the ActionEvent as argument.
    Iam expecting that, control should come back to actionPerformed as it happens in awt.
    But, it is not behaving like that. Can u guys figure it out Y??
    Here is my sample code:
    public void CancelButtonPressed () {
    ActionEvent actionEvent = new ActionEvent((Object)CancelButton,
         ActionEvent.ACTION_PERFORMED, CStrings.CANCEL);
    CancelButton.dispatchEvent (actionEvent);
    Note: CancelButton is my JButton object instance.
    Iam expecting that after dispatchEvent is called as above java should invoke actionPerformed.
    But it is not.

    I need to construct ActionEvent explicity since actionlisteners are set for the components in one class say A.
    From this class keypressed event is delegated to the other class say b.
    Here B class gets the component. Inour case its JButton. In class B, i cannot call the actionPerformed.
    What I do is.. I will call the dispatchEvent on this component. Thats why Iam creating ActionEvent.
    I hope you got my point.

  • Firefox 3.6.8 does not recognize subsequent mouseclicks - window loses focus

    After updating to firefox 3.6.8 on my macbook pro (OS X 10.4.11) Firefox fails to recognize subsequent mouse clicks. You can access the page initially, but then it seems to lose focus and become unresponsive to mouse clicks until you do something to break the cycle (clicking on desktop, minimizing and resizing window, etc). I reinstalled Adobe Flash update using full installer, since others have suggested that as a possible cause, but no joy. The browser window still does not recognize mouseclicks after an initially successful page load. You can tab to the next window (for example, if you want to enter something in search) but you cannot CLICK to enter the search window, nor can you click on links on the page, etc. It is totally unresponsive.
    == This happened ==
    Every time Firefox opened
    == I updated Firefox to the version just before 3.6.8 -- then I updated to 3.6.8 to see if that fixed it -- it's still broken

    This started happening to me yesterday. All plugins are disabled, didn't help. All plugins uninstalled, didn't help. Downgraded to SP3, didn't help. I've also noticed this happen in Thunderbird, though it seems OK now.
    Sadly I've had to start using IE8 :(

  • TextInput in iOS gains then immediately loses focus won't open softkeyboard. FocusManager says still

    Dev Environment: Flash Builder 4.7<br/>
    SDK: Flex 4.6.0 (build 23201) AIR 3.5<br/>
    Arguments: -local en_US -swf-version=16<br/>
    Testing Platform: iOS 6 on iPad 2
    Severe bug, I believe.  Renders iOS apps developed using these technologies utterly unusable.
    Situation:  Whenever I touch the TextInput component on the testing platform device, it will do one of two things:
    It will perform as it is supposed to.  It gains focus (focusIn event dispatched), a blue focus rect surrounds it, the prompt text is replaced by a flashing cursor, the soft keyboard activates and is displayed (all expected events dispatched).
    It will fail.  It will gain focus (focusIn event dispatched), and the blue focus rect will appear briefly and then disappear, the prompt text remains displayed and there is no cursor in the field (focusOut event dispatched). The softKeyboardActivate event is dispatched and immediately the softKeyboardDeactivate event is dispatched.  The keyboard does not appear even briefly.
    I can tap tap tap tap and eventually one tap (no different than any other) will be successful and #1 will happen instead of #2.
    Here's the oddest thing.  The focusManager tells me that the DisplayObject that has the focus is the same object when the focusIn event is dispatched and after the focusOut event is dispatched (and if I check every 10ms using a timer, the results don't change... the correct DO has focus.
    Below the code is the trace output.
        <?xml version="1.0" encoding="utf-8"?>
        <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                    xmlns:s="library://ns.adobe.com/flex/spark"
                                    xmlns:mx="library://ns.adobe.com/flex/mx"
                                    xmlns:c="components.*"
                                    width="100%"
                                    creationComplete="creationCompleteHandler()">
            <fx:Declarations>
                    <s:DropShadowFilter id="dropShadowFilter" blurX="6" blurY="6" alpha="0.5" distance="6" angle="60" strength=".5" quality="{BitmapFilterQuality.HIGH}"/>
            </fx:Declarations>
            <fx:Script>
                    <![CDATA[
                            import flash.filters.BitmapFilterQuality;
                            import mx.utils.ObjectProxy;
                            import spark.skins.mobile.TextAreaSkin;
                            import views.tools.MakeAToolBase;
                            [Bindable]
                            private var pad:Number = 15;
                            [Bindable]
                            public var dataProxy:ObjectProxy;
                            [Bindable]
                            public var v:MakeAToolBase;
                            protected function creationCompleteHandler():void
                                    trace("LearnItListItemRenderer FUNCTION creationCompleteHander()");
                                    dataProxy = new ObjectProxy(data);
                                    dataProxy.choosePictureButton = choosePictureButton;
                    ]]>
            </fx:Script>
            <s:layout>
                    <s:HorizontalLayout horizontalAlign="center"/>
            </s:layout>
            <s:HGroup id="listItem" gap="33" paddingTop="15" paddingBottom="15" horizontalAlign="center" paddingLeft="15" paddingRight="44"
                              verticalAlign="middle" width="100%" height="210" filters="{[dropShadowFilter]}">
                    <s:Group height="100%">
                            <s:Rect height="100%" width="100%" radiusX="5" radiusY="5">
                                    <s:fill>
                                            <s:SolidColor color="0xffffff" alpha="1"/>
                                    </s:fill>
                                    <s:stroke>
                                            <s:SolidColorStroke weight=".5" color="0x000066"/>
                                    </s:stroke>
                            </s:Rect>
                            <s:Label text="{dataProxy.numberLabel}" fontSize="32" color="#000072" verticalAlign="middle" verticalCenter="0" paddingLeft="12" paddingRight="12"/>
                    </s:Group>
                    <c:ChoosePictureButton id="choosePictureButton" height="{listItem.height-pad-pad}" width="{(4*(listItem.height-pad-pad))/3}"/>
                    <s:VGroup id="textInputBoxesGroup" height="100%" width="100%">
                            <s:TextInput id="behaviorNameTextInput" color="#000000" textAlign="left" width="100%"
                                                    prompt="Enter Behavior Name..."
                                                    needsSoftKeyboard="true"
                                                    interactionMode="touch"
                                                    skinClass="spark.skins.mobile.TextInputSkin"
                                                    returnKeyLabel="done"
                                                    showPromptWhenFocused="true"
                                                    touchBegin="trace('touch');"
                                                    softKeyboardActivate=  "trace('#############################    SoftKeyboardActive    #####################################');"
                                                    softKeyboardDeactivate="trace('############################# SoftKeyboardDeactivating #####################################');"
                                                    softKeyboardActivating="trace('#############################  SoftKeyboardActivating  #####################################');"
                                                    focusIn="trace('TEXTINPUT FOCUSIN: '+this.focusManager.getFocus())"
                                                    focusOut="trace('TEXTINPUT FOCUSOUT: '+this.focusManager.getFocus())"
                                                    creationComplete="{data.behaviorNameTextInput=behaviorNameTextInput;}"
                                                    />
                            <s:Spacer id="behaviorSpacer" height="2"/>
                            <s:TextArea id="behaviorDescriptionTextArea"
                                                    fontFamily="verdana" fontSize="16"
                                                    verticalAlign="top" textAlign="left" width="100%" height="100%"
                                                    verticalScrollPolicy="on"
                                                    interactionMode="touch"
                                                    color="#000000" prompt="Enter Behavior Description..."
                                                    softKeyboardType="{SoftKeyboardType.DEFAULT}"
                                                    needsSoftKeyboard="true"
                                                    showPromptWhenFocused="true"
                                                    skinClass="spark.skins.mobile.TextAreaSkin"
                                                    creationComplete="{data.behaviorDescriptionTextArea=behaviorDescriptionTextArea}"/>
                    </s:VGroup>
                    <c:YesNoVerticalButtonsGroup/>
            /s:HGroup>
        </s:ItemRenderer>
    Trace output [ edited for brevity ]
        TEXTINPUT FOCUSIN: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedVi ewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSki n35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.L istSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.te xtInputBoxesGroup.behaviorNameTextInput
        #############################  SoftKeyboardActivating  #####################################
        ############################# SoftKeyboardDeactivating #####################################
        TEXTINPUT FOCUSOUT: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedVi ewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSki n35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.L istSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.te xtInputBoxesGroup.behaviorNameTextInput
        ############################# SoftKeyboardDeactivating #####################################
    [  FAILED ATTEMPTS 2 - 22 REMOVED FOR READABILITY ]
        TEXTINPUT FOCUSIN: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedVi ewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSki n35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.L istSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.te xtInputBoxesGroup.behaviorNameTextInput
        #############################  SoftKeyboardActivating  #####################################
        #############################    SoftKeyboardActive    #####################################

    ..and I found this block on  my (flex 4.7) error log
    java.version=1.6.0_31
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86_64
    !ENTRY org.eclipse.debug.core 4 125 2013-03-11 14:44:53.687
    !MESSAGE An exception occurred while dispatching debug events.
    !STACK 0
    java.lang.NullPointerException
    at com.adobe.flexide.launching.multiplatform.MultiPlatformDebugPortManager.getPortForLaunchURL(MultiPlatformDebugPortManager.java:73)
    at com.adobe.flexide.multiplatform.ios.internal.IOSDebugLaunchListener.handleDebugEvents(IOSDebugLaunchListener.java:70)
    at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1117)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1151)
    at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:415)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Maybe you are looking for