TextField doesn't get focused directly using Firefox

I have a login dialog which contains userNameInput textField. Upon the application load, I want the userNameInput be fucused and cursor blinking. And I can type without clicking on the screen.
In loginDialog.as, creationComplete I have
     callLater(setDefaultFocus, new Array(null));
And setDefaultFocus function:
     focusManager.setFocus(userNameInput);
     focusManager.showFocus();
This works perfectly in IE. But it's not working in Firefox.
Can anyone tell me why this is not working in Firefox? Is this a Flex issue or Firefox issue? And is there any work around exist?
I've searched online and tried the following ways, no one works so far.
      1. stage.focus = userNameInput;    
      2. navigateToURL(new URLRequest("javascript:document.getElementById('UxFlashApplication').focus();"),"_self");
      3. userNameInput.setSelection(userNameInput.length, userNameInput.length);      
I've also tried set wmode to opaque, this works but it breaks something else in the application ( e.g. mouse scroll), I prefer not to do anything with wmode.
Envoironment: Flex 3/4, windows 7, Firefox13 and 16
Any help would be appreciated!

Having the same problem. Trying to work out if the 3GS has an actual moving part in the camera to focus or whether it 'sharpens' it digitally... I'll keep you posted if I find out

Similar Messages

  • My laptop has been stolen (the Baterds) now is wndows protected by password but if they get inside and use firefox with sync the can come a long way. how can i stop that from happening. can I block that laptop from syncing? thx Rick

    my laptop has been stolen (the Batserds) now is windows protected by password but if they get inside and use firefox with sync they could come a long way. How can i stop that from happening. Can I block that laptop from syncing? thx Rick

    * https://support.mozilla.com/kb/ive-lost-my-phone-how-do-i-deactivate-sync

  • Why my textfield can not get focus?

    I put a textfield on the first tab of a tabbed panel. I need this textfield to get the focus when I open the first tab. I tried to use grabfocus() method in the constructor of class, but it does not work. Does anybody know why? and how can I solve it?
    Thanks!

    No, I didn't call grab/requestFocus on the event thread.
    My code is like this:
    public class GeneralPane extends JPanel {
    JPanel ltPane;
    private JTextField txtCountry;
    public GeneralPane() {
    initComponents();
    private void initComponents(){
    setLayout(new BorderLayout());
    //Add another Panel to contain Labels and Text fileds
    ltPane = new JPanel();
    FocusListener mFL = new FL();
    txtCountry = new JTextField("US", 20);
    //this listener is used to store the data in the textfield into a variable
    txtCountry.addFocusListener(mFL);
    // add the textfield into ltPane
    mUtil.insertTextPane(txtCountry,ltPane);
    //txtCountry got focus
    //txtCountry.setFocusable(true);
    ltPane.requestFocus();
    //txtCountry.requestFocusInWindow();
    Then in the main program, I create an instance of this class and then use addTab(...) function into the my tabbedPanel.
    The logic is simple, but the textfield still couldn't get focus when I open the tabbedPanel.

  • Z2 Camera doesn't get focus, photo is burred

    Hello. I didn't have any problem with my z2 for 3 months, but from 3 days ago the camera now is not getting focus, the photo/image look like blurred, I've tried the manual focus but also didn't work. Someone had the same problem? How did you solve?
    Thank you

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    That sounds strange, have checked so there are no dirt or similar at the camera lens? You can also try to clear data for the camera via Settings > Apps > The tab "All" > Camera > Clear data.
    Otherwise, I suggest that you perform a software repair on your phone via PC Companion:
    http://support.sonymobile.com/global-en/tools/pc-companion/
    In PC Companion you press start on Support Zone > Start on Update the phone/tablet software > Repair phone/tablet (the blue clickable link in the message) > Follow these steps without having your device connected to the PC.
    Follow the instruction that appears in the program and do not connect your device until this guide tells you how to connect it.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Hi some of my mail doesn't get through. Using mail and me/mac/icloud addresses

    Hi ... I'm losing mail and I can't figure out why it's not getting through. Have three devices (iMac & MacBook, running Mac OS X 10.7.5, and iPhone 4, running iOS 6.0.1). I use apple's mail program and have icloud account. Yet some folk can't send me mail. Any ideas???

    Thanks for picking up on this issue. The mail doesn't bounce back, so they think it's gone out OK. We've established that emails come through as long as there is no attachment. The sender is in my address book, so I'm at a loss as to what else I can check/do. Any suggestions?

  • How can I copy and paste from Google "Keep"? Whenever i try, the copied text doesn't get copied on the Firefox clipboard, it copies to my 'default' clipboard.

    I can't get the Firefox clipboard to appear when i try to copy from Google Keep. Please help, thanks.

    Hi again LvScience:
    (jsoulless40's advice (thanks js40!) of trying the desktop site in Firefox when using the Keep web app is fine but i think you are using the Keep App right, not the web app version right?)
    Thanks for the device info: "Android OS is 4.1.2 on a Samsung Rugby Pro". I don't have that tablet but I do have two android samsung tablets running 4.x
    I should have asked before:
    '''What exact steps where you following when you copied and pasted into a "newly opened document"'''
    My steps were (on my Samsung Tab S 10 running 4.4.2):
    # in Firefox selected and then copied some text
    # switched to Google's Keep app
    # '''successfully pasted the text in Keep into the "Add quick note", also tapped on the new note icon and pasted the text into a new note'''

  • My track pad on my air doesn't always respond when using firefox and trying to scroll up or down in the page

    when in firefox my track pad doesn't always respond when I want to use fingers to scroll up or down in the screen...any thoughts?

    it is possible that zoom maybe enabled i think double taping with three fingers should disable it.
    or you can go into settings>general> assessability> zoom and turn it off.
    hope this helps

  • How do I get get my email using Firefox?

    I have no idea how to get to my gmail account.

    Firefox is a browser, you can check mail using the mail provider website like gmail, yahoo, outlook
    Thunderbird is email client, there you can configure and read your emails in offline(without Internet connection).
    Know more about Thunderbird
    *http://kb.mozillazine.org/Thunderbird
    *http://en.wikipedia.org/wiki/Mozilla_Thunderbird

  • Does anyone have problems getting onto youtube using firefox on OS10.6.8 ?

    I do. It's very hit and miss (usually miss) if I'll get there at all, or if I do, if I'll see the page correctly or be able to stream videos.

    Mac OS X 10.6.8
    imac 21" (metal)
    Processor 3,06 GHz intel core i3
    memory 8Gb 13333 MHz DDR
    It's not a plug-in issue in Firefox as the latest Safari has the same problem.
    For some reason I want to suspect 'java', but that's just a feeling.
    Anyway, it's miserable because everytime I want youtube it doesn't work. Other times, whe I'm not so bothered it does.

  • Please help: data doesn't get through when using NIO's UDP

    Hi there, I have a 2D client-server game, using NIO's UDP. Whenever the clients send data to server, the data just disappears and not exception nor error appear at the server side.
    Following are the portions of the code where the problem occurs, please help me have a look, many thanks.
    (Please note, I'm using non blocking mode for both client and server, and have no problems with other portions of code, communication was fine, data did get through the network and processed by the server/client. Also, client's DatagramChannel "dChannel" is connected to server, however server's DatagramChannel is not connected to any one).
    //***client's sending code***
    public void sendEventToServer(int[] values) {
        prepWriteBuffer(values);
        try {
          dChannel.write(writeBuffer);
        catch (Exception ioe1) {
          System.out.println("Error when send event to server");
    public void prepWriteBuffer(int[] values) {
        writeBuffer.clear();
        writeBuffer = ByteBuffer.allocate(128);
        if (values[0] == 1) { //fire event
          writeBuffer.putInt(0, firePacketNum);
          firePacketNum++;
        else if (values[0] == 2) { //positional event
          writeBuffer.putInt(0, positionalPacketNum);
          positionalPacketNum++;
        else {
          writeBuffer.putInt(0, -1);
        int j = 4;
        for (int i = 0; i < values.length; i++) {
          writeBuffer.putInt(j, values);
    j += 4;
    writeBuffer.flip();
    //***server's code*****
    public void sReceive(long startTime){
        do {
          readBuffer.clear();   //note, readBuffer is 3072 bytes, bigger than client's sending buffer
          InetSocketAddress sourceAddr = null;
          // read from the channel into our buffer
          try {
                 sourceAddr = (InetSocketAddress) dChannel.receive(readBuffer);
          catch (Exception ioe) {
                 System.out.println(ioe);
          // check for end-of-stream
          //I tried with "if (readBuffer.hasRemaining())", getting the same "data disappearing" problem
          if (sourceAddr == null) {
                 //*********Problem: no matter how often the client is sending, this "if" clause is always entered
                 //that is, data disappeared
                 System.out.println("Server got nothing so breaks.");
                 break;
          else {
                 //******Problem: client keeps sending, but this "else" is never entered.
                 System.out.println("Server now got someting from client.");
                 readBuffer.flip();
                 broadcastEvent(readBuffer, sourceAddr);
        while ((System.currentTimeMillis() - startTime) < 134);

    Here's how the buffer filling stuff works, Ron Hitchen's JAva NIO O'Reilly press, has lots of good diagrams of this.
    buf = ByteBuffer.allocate(10)  // creates new buffer
      0----1----2----3----4----5----6----7----8----9----10
      |    |    |    |    |    |    |    |    |    |    |
      ----------------------------------------+
      ^                                                 ^
      |                                                 |
    position=0                                       limit=capacity
    buf.putInt(5);  // relative put, updates position
      0----1----2----3----4----5----6----7----8----9----10
      | 00 | 00 | 00 | 05 |    |    |    |    |    |    |
      ----------------------------------------+
                          ^                             ^
                          |                             |
                       position=4                    limit=capacity
                       updated
    buf.putInt(4,12);  // absolute put doesn't update position
      0----1----2----3----4----5----6----7----8----9----10
      | 00 | 00 | 00 | 05 | 00 | 00 | 00 | 0c |    |    |
      ----------------------------------------+
                          ^                             ^
                          |                             |
                       position=4                     limit=capacity
    buf.position(8);  // so we set the position ourselves
      0----1----2----3----4----5----6----7----8----9----10
      | 00 | 00 | 00 | 05 | 00 | 00 | 00 | 0c |    |    |
      ----------------------------------------+
                                              ^         ^
                                              |         |
                                         position=8   limit=capacity
    buf.flip();  // flip prepares for write
      0----1----2----3----4----5----6----7----8----9----10
      | 00 | 00 | 00 | 05 | 00 | 00 | 00 | 0c |    |    |
      ----------------------------------------+
      ^                                       ^         ^
      |                                       |         |
    position=0                             limit=8   capacity
    channel.write(buf); // write it out, assume all gets written
      0----1----2----3----4----5----6----7----8----9----10
      | 00 | 00 | 00 | 05 | 00 | 00 | 00 | 0c |    |    |
      ----------------------------------------+
                                              ^         ^
                                              |         |
                                  position=limit=8   capacity
    if it didn't all go out, the position would indicate the
    first unwritten byte.

  • Firefox has been unusable because of crashes; I want to delete it from my desktop and re-install; please, how can I do this? I'm stuck with using safari and I want to be able to get back to using firefox!

    firefox crashes on opening, every time, and very speedily; I have sent reports in, when it began, without receiving any help; since then I've been trying delete firefox and reinstall it, but have miserably failed; I have very little time to play around with it, so have fallen back to safari, but I want to get back to it as simply as possible! I am the opposite of a computer nerd, as you can imagine! But I know what I like ...
    Simple help, please? Many thanks.

    See Empty/corrupt library after upgrade/crash...
    tt2

  • Incredimail doesn't open anymore - directly after firefox install

    after the installation of the 4 beta 7 version my incredimail doesn't open anymore. I see the icon in the system tray, i can download mail headers etc, but the main screen doesn't open anymore.

    Try a clean reinstall and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\) before reinstalling a fresh copy of Firefox.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 14.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I am getting a message when I first get ready to use firefox and there is a warning to upgrade my firefox because old firefox can get attacks. Is this legit or a scam?

    can't remember exact wordage of statement

    That is a legitimate message from Mozilla. Support has ended for Firefox 3.5.19. You need to upgrade to a newer version of Firefox. The hyperlink takes you to a download page for Firefox 4.0.1 and Firefox 3.6.17 is available here - http://www.mozilla.com/en-US/firefox/all-older.html

  • Swing JTextFeild is not getting focus -  Using jdk-7u17-windows-i586

    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focus

    993277 wrote:
    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem.

  • Can't get focused a JTextField within a JTable cell

    I have a table and I placed a cell editor with a JText field on it for all cell editing,
    I want to do things when the focus is lost or gained and my app works fine when a cell is double clicked or f2 is pressed, but when a cell is selected (without double clicking) and just begin typing it produces no focus gained event.
    I tried by calling grabFocus method of that jTextField within the overriden prepareEditor method of the JTable but it doesn't get focus (doesn't even gains and loses it :s )
    Does anyone have an idea of how to force this component to grab focus?
    Thanks

    Hai,
    dont add the FocusListener to the EditorComponent.
    Try to use the JTable Functions - like this:
    import javax.swing.event.ChangeEvent;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.EventObject;
    import javax.swing.*;
    public class Test extends JFrame
         JTable table;
         JTextArea text;
         JScrollPane scroll;
         JTextField cellTextField;
         Test()
              DefaultTableModel model = new DefaultTableModel();
              cellTextField = new JTextField();
              text = new JTextArea();
              text.setEditable(false);
              scroll = new JScrollPane();
              scroll.setViewportView(text);
              table = new JTable(model){
                   @Override
                   public Component prepareEditor(TableCellEditor editor, int row, int column) {
                        text.append("Better use this to Start Edit!\n");
                        return super.prepareEditor(editor, row, column);
                   @Override
                   public void editingStopped(ChangeEvent e) {
                        text.append("Better use this to Stop Edit!\n");
                        super.editingStopped(e);
              model.addColumn("Column 1");
              model.addColumn("Column 2");          
              model.addRow(new String [] {"Cell 1", "Cell 2"});
              table.setCellSelectionEnabled( true );
              table.getColumnModel().getColumn(0).setCellEditor( new DefaultCellEditor(cellTextField));
              table.getColumnModel().getColumn(1).setCellEditor( new DefaultCellEditor(cellTextField));
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(table, BorderLayout.NORTH);
              getContentPane().add(scroll, BorderLayout.CENTER);
              setSize(300, 300);
              setVisible(true);
              setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         public static void main(String[] args)
              new Test();
    }

Maybe you are looking for

  • Help with Adobe PS Elements 10~

    I was having some problems w/ my Mac harddrive and Adobe PS was not opening. I uninstalled (so I thought) the program and when I tried to reinstall it, it keeps saying there are erros. I have NO idea what to do.. Any tips or help would be very much a

  • Web Banner with Video: How to start a flash animation ONLY after .flv is finished loading.

    Hi, I am making a 10 sec. web banner and am required to use a video that is on an external server. I had no problem getting the video file converted, uploaded to the external server and it is now playing back perfectly after exporting the .swf file.

  • Access bean events data with axbridge ?

    I build a bean and packaged with axbridge It works in c# but how can I get data from my Events ? I defined a listener in my bean public interface TestChangedListener extends EventListener{      void testChanged(TestChangedEvent e); and in c# the meth

  • Action Profiles for Order Confirmation

    Hello,   I need to set up basic action Profile for sending emails upon order confirmation. So I set up 2 actions inside an action profile 1. One action to send  an email  based on partner function Sold to Party 2. Another action to send email based o

  • HT4623 why do i not have an update on my iphone

    I don't have a setting on my iphone unless I am missing it..Does the Iphone 3's not have an update setting?