Where is the focus??

I have several applets on a page.
Under 1.4.0 I could see where the focus was & control it.
I am now using 1.4.1 and the focus is nowhere to be seen - I have put focus listeners in all of the components & the focus is gone from all of these by the time the applets finish loading.
I know there are a lot of posts about focus & 1.4.1, but none of them have helped.
I also know that there are changes with focus management in 1.4.1, but why would this mean that nothing has focus? Surely something must have the focus?
Thanks for any help.

Thanks for your input, however Java definitely lets you apply focus to yor applet.
I finally solved this, by finding out exactly where the focus was ending up - and it was ending up in one of the components in the main applet. This component is not even visible, and it's certainly not editable (it was the parent of the applet), so why the focus was going there, I don't know. So much for 1.4.1 fixing all the focus issues, though I must say the new API calls came in use in figuring this out.
Here is some duke $$ because you made an effort.

Similar Messages

  • Where is the focus after executing a statement in worksheet ? (804)

    After executing a statement in the sqlworksheet by hitting the 'execute statement' button, 'execute script' button or ctrl-enter the focus is no longer in the worksheet, forcing us to point/click the mouse to the edit area each time.
    Using pre-release 2.
    Can this be fixed ?
    regards,
    Ronald.

    This loss of focus had been an issue but we did fix this in v804. Did you do a clean install? If so, what os are you installed on? I just double checked on my Windows XP box and my focus was fine.
    -- Sharon

  • Unable to use the focus feature on a field

    hi,
    I have the need to manipulate the focus event of a field. This is my pdf body structure :
    form1 ----> form
    |_ a ----> page
    |_b ----> textfield
    |_c ----> textfield
    The idea is to test if the user pressed the key "ESC", "TAB" or "ENTER" when exiting from field "b". If so, and after testing the content of the field, i wanted to set the focus on that same field "b" to let the user proceed with the correction.
    I tried with the "xfa.event.commitKey" to see if the "ESC", "TAB" or "ENTER" keys where pressed while exiting the field. I then redirected the focus to different fields named "ESC", "TAB" and "ENTER" just to be sure that i was getting the correct keys.
    This feature works if i set the focus in a different field than the one i'm exiting.
    Then, i tried a different approach. On the exit event of the field, i placed the following code :
    app.setTimeOut("this.getField('form1[0].a[0].b[0]').setFocus()", 1000);
    This would do the same as the setFocus after a while.
    For what i could see, catching the events with the "xfa.event.commitKey" for the "ESC", "TAB" or "ENTER" key works alright. The problem is to set the focus to the current field ( the one where the exit event is being analyzed ). However, if i change the destination field to any other field on the form, all the scripts work.
    Following the structure that i have on top, it the exit event is being analyzed on field "b" and the "setFocus" or the "app.setTimeOut" scripts indicate field "b" as destination, it doesn't work.
    If i change the destination field to be "c", all the scripts work as expected. It seems like there is a problem with setting the focus on the field that i'm exiting from.
    Any ideas on this ???
    Thanks.

    Does anyone have a solution to this problem?
    I'm urgently trying to find a workaround, but nothing seems to work.
    The focus on the current field works in acrobat reader versions above 8.0, but in 8.0 it just doesn''t work...
    To reiterate:
    On the exit event of a textbox I need to display a validation message if a certain condition is met. I then need to refocus on the same textbox after the "ok" button is clicked in the validation warning.
    My setFocus code is correct, but it just doesn't work in 8.0.
    Thoughts?

  • How to get the focus in a Table Control

    Hello Experts,
                         I have a simple Table control in my screen . I want to know under which column my cursor is ? Basically i want to get the focus the table control . How can i achieve this  ?
    Thanks
    Vivek

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

  • How to get the focus of particular UI Element

    Hi All,
    How to get the focus of particular UI Element in webdynpro Page,
    I have a page where i am creating a ALV, I want to get that keyboard focus is on that element is there or not?
    Can anyone please give some update?
    Best regards,
    Rohit

    I would suggest try invoking REFRESH of ALV on the ON_CELL_ACTION event.
    Below excerpt is from Thomas
    The Events of inner UI elements are not exposed directly as they normally would be if they were standalone. Generally you can capture them using either the
    ON_DATA_CHECK:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c8/6c80dbedfe42d1a93f8e6df1d7244a/frameset.htm
    This gets trigger for any press of ENTER, so it generally works like the Input Field onEnter.
    You could also consider ON_CELL_ACTION:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/12093591152464e10000000a1553f7/frameset.htm
    It is a higher level Event that encompasses both ON_DATA_CHECK and ON_CLICK.
    if you want to capture & refresh on some hot key combination then refer to this thread
    [https://www.sdn.sap.com/irj/scn/profile?editmode=true&userid=3760417]

  • Where is the best practice to have the controlling logic in scenarios....

    The following steps need to executed in the system:
    1> Need to store the data that User has selected in the screens that he has visited till now (selecting data is not part of this step 1 for now); focus of step 1 is there is some data which needs to be stored in session.
    2> After keeping data in session, the system needs to check and if current user's account is Not created then force the user to create user account;
    3> The system then checks If user is Not logged in. If not forces the user to login;
    4> Process the data that has been searched and selected in step 1;
    EJBs are used for providing the solution;
    Now, the problem i have been having is where should the controlling logic (basically the block which invokes the above 4 steps in sequence) needs to be sitting?
    Should it be in the EJB tier or WEB tier?
    If we decide to store the data in the session bean, Should data get stored in session bean and then should control go back to front controller servlet in web tier;
    Should the enclosing function making checks for steps 2 and 3 and followed by invoking the step 4 be in Front controller servlet or in business delegate or in stateful session bean?
    Any thoughts or any useful links to let me know what is feasible / not feasible.
    I mean, whether such controlling logic which requires ui to be brought up and then control come back can never be sitting in session bean -- is feasible or not.
    Thanks in advance.
    Message was edited by:
    VMR
    Message was edited by:
    VMR

    (Assuming you mean Essex in the UK), go here https://selfsolve.apple.com/GetWarranty.do and enter your iPod's serial number to start with. (Change the country in the drop-down menu if you're not in the UK.) This will guide you to an Authorised Apple Service Provider (AASP) local to you.

  • Where is the "blur kernel" one click deblur in Photoshop CS6?

    Where is the "blur kernel” one click deblur in Photoshop CS6? (Pretty sure it’s not there.)
    Is deblur still in development? Or was it killed? Is there any status update on the progress of the deblur function? An overwhelming majority of the information available reference the same October 2011 Adobe Max conference demo.
    (Adobe showed off the new deblur prototype at its Adobe Max conference in October during a set of feature sneak peeks...)
    The way the feature was described was:
    "The prototype feature uses a computer algorithm to analyze how the image was blurred and then creates what Adobe called a "blur kernel." After the kernel is generated, it can show you information such as what the motion trajectory of the camera was while the shutter was open -- causing the blur in the first place. The next step is to simply hit a "restore sharp image" button and the photograph is fixed."
    It was cited by some sources as being an upcoming Photoshop CS6 feature while other sources were more vague with statements resembling "It's not clear if or when the new unblur feature will make it into a future version of Photoshop, as the company warned all sneak peek features were just prototypes with no concrete product plans."
    Where is the latest with the Adobe Photoshop "blur kernel” and the Adobe Photoshop one click deblur feature?

    one of the things I think about as an engineer is that in order for something like this to work,  you should probably start with manuals adjustments to processing the the out-of-focus blur first. after you have finished with this, you can do the motion blur.  I would have to really think hard about it to see if there is an algorithm such as a kernel or something to convert an image into a path. one problem is you are stuck with the image boundaries. if they weren't there, things would be so much easier (but it would also take infinitely long to process).  the image boundaries MIGHT skew the kernel, depending on how you handle the boundaries (for example, usually you just assume those values are black or 0's, or you may choose a 50% gray, whatever fits best with the kernel you are working with).
    adobe may be on to something there, but they only had half of the equation with the idea.
    I used to tinker with image processing many yarns ago back for fun in BASICA/GWBASIC.
    if you have the kernel
    [-2 0 2]
    [-2 0 2]
    [-2 0 2]
    which amplifies vertical lines, you would want to handle the boundaries by processing them as 0's.
    NOTE TO ADOBE: it might start getting into Machine Vision technology when you start doing the path recognition. or AI.
    if you can get the imge into a path kernel, it's essentially a bitmap of a path.  you can trace that path using akima spline curves. (will lose 1-2 samples off each end), but the tracing program might just exist out there somewhere.  just google "bitmap to akima spline curve".  and akima spline curve has all the
    points along its path, unlike a bezier. I like akima spline curves, I have been trying to get ps engineers to use them for a while for good reason. this is one of them.
    there are also cubic splines as an alternative. 
    chances are that the curve will have rounded corners due to the weight of the camera.
    now that you have the path,it's simply a matter of taking samples along the curve wherever you want. (usually in an array which you can linearly inerpolate across the points in the array for simplicity if you want)

  • Where is the CML Personal version?

    I have had people asking where is the personal version, why isn't it available, why did we say it was coming and change, and so on. Below is an explanation with a little history to explain what happened and why. For those reaching out to me directly and to you reading this, I can only say sorry! for any confusion.
    Where is the Personal Version?
    Back in CiscoLive Milan there was discussion of a CML personal edition, what happened?
    After that event, the team running Devnet also announced the same personal version and that it would be free. If you were are CiscoLive USA earlier this year, you may have also seen the presentation by Joel Obstfeld (BRKARC-2020) talking about the free Devnet VIRL release.
    Rather than have two products in the same space, the CML team decided to focus on the Corporate solution and allow the personal version to come from Devnet.
    CML is now released and can be purchased through your Cisco account teams. The Devnet team recently advised that the Devnet VIRL product is still coming but postponed whilst they sort out some business aspects.
    When do you choose one of the other?
    CML is a Corporate sized solution supported by full time development and support teams (via TAC). The product can scale to hundreds and soon thousands of nodes and is focused on people looking to perform network modeling, what-if scenarios, testing production upgrades, designing and prototyping new services, and so on. CML will be releasing in the near future (early 2015) Layer 2 switches, NX-OS, and other Cisco products.
    The Devnet version, called VIRL, is targeted for the SDN Developer, has community support, tracking of use, limited node count, and has been reported as being free [pricing model to be confirmed]. This product could also be suited for people looking to study.
    There is also another Devnet solution, for people wanting to study, called All-in-one. This provides a topology of 3 IOS routers. There has been some confusion because people saw a file name called VIRL and thought it was the VIRL product, it's not. It's a free solution for people wanting to get hands-on CLI experience of a router.
    Hope this helps to answer the questions
    -Craig

    Folks,
    There have been some questions on this forum related to support for the newly release VIRL product, referenced above in Craig's post.  As there is no support for VIRL in this forum, I've placed a link to the VIRL Support site in the Links Panel that is visible in the top right of the home page for this forum.  Just click on it and it will take you to the VIRL site.
    Alternatively, you can click http://community.dev-innovate.com/c/virl
    Cheers,
    DavidM

  • After clicking on an open tab, how to make the focus automatically go to the body of page?

    After clicking on an open tab, how to make the focus automatically go to the body of page?
    Right now, clicking in an open tab and using arrow keys now moves through the open tabs. I liked the old versions where right after clicking in a tab you could directly go to navigate the page with the arrow keys.
    Is there a something I can change in about:config to change this behavior?
    Thanks in advanced.

    Firefox should still set the focus the the browser area if you click a tab.<br />
    Only with very old browser versions you could set the focus to a tab by clicking a tab.
    This behavior is likely caused by an extension.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Where is the email address stored in the com.microsoft.outlook.plist file ?

    I had a customer with approximately 600 Mac users who changed their email domain. The email address field in Preferences>Accounts shows the old email address. We need to change that to reflect the new email address. I'd like to know where in the plist
    the email address is so that we can try to automate the change.
    The mail system is exch 2010 SP3.

    Hi,
    This forum focuses on questions and feedback for Windows-based Microsoft Office client. Since your query is directly related to
    Office for mac, I would suggest you to post in the forum of
    Office for Mac.
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Hi just want to know where is the best way to type the statement?

    just to ask you what is the best way to write the statement please

    Could you please explain what the topic and statement is about?
    Helps to narrow the focus, down to a specific hardware or software
    question pertaining to the Apple products involved, where applicable.
    Basic word processing can be accomplished in TextEdit, if you do
    not have Pages or any other software to write with, for example.
    Yet, there is no indication of the purpose, direction, or problem.
    Good luck & happy computing!

  • Can someone explain how to set the focus to a component

    Hello,
    What is the best way to ensure that a component gets the focus with code. I have tried requestFocus and requestFocusInWindow and none of them seems to do there work. The frame containing the components that should get the focus is displayed, the component is focusable so that is not the problem. What I found out is that if the component is deep in a nesting of panes (where the top pane is in the frame) is that calling requestFocus or requestFocusInWindow does not give the component where this focus is called on the focus but either the pane that contains it, one of the parent panes of this pane or one of the components in these panes, in almost all cases the component requesting the focus does not get the focus at all. I always have to write a work around in defining a focus listener for all these panes that transfer the focus back to the component that requested the focus originally, I can't believe that this is the way to ensure that a component has the focus via code. I have searched for documentation but found nothing on what requestFocus(inWindow) is actually dooing (a lot about focus traversibility but I don't want to control this, just make sure that a component gets the focus).
    Again I'm pretty sure that the toplevel window is activated and that the component that requested the focus is focusable (I had created a derived version of the DefaultFocusManager that showed who has focus). Personally I think (and I'm not alone if you do a search in this forum on focus management) that there is either a big problem in the documentation of focus management or that it is still not possible to even try to set the focus on a component in a easy way.
    Marc

    Hello,
    thanks for your reply, here is some example code that illustrates the problem I have (the actual code is to big to show here, which is the raison why I did not posted it here). The code wil create a frame with a JPanel with a JTextField, a 'New' Jbutton and a 'Delete' Jbutton, a tabbed pane in the center ('New' will create a new JPanel, add it to the tabbed pane and set the focus on it, either by calling RequestFocusInWindow() directly or by calling it via InvokeLater (someone on this forum suggested to use this). I changed also the focusmanager to show the component that has the focus when you type something. To test compile and run the program (either with a call to requesteFocusInWindow directly or indirectly (by changing the comments), on my system I get the following behaviour:
    1. requestFocusInWindow called directly
    Start program en type, the tabbed pane has the focus
    Press New and type something, a button has the focus not the created panel
    Press New again and type something, a button has the focus not the created panel
    2. requestFocusInWindow be called indirectly
    Start program and type, the tabbed pane has the focus
    Press New and type, the created panel has the focus (I thought at one moment that I had found the solution there, but alas ...)
    Press New again and type something, a button has again the focus.
    Note that with my real program it is not always a button that will have the focus, sometimes it is a combobox or a TextField (I tried to get this with the example code (the JTextField) but did not succeed.
    Hopes this clarify the problem a little bid, what I want is when the window is visible to set focus on newly created panes (or in the real program on the panel that is selected via the tabbed pane or via a key combination to shift the focus between the panels) but requestFocusInWindow seems to behave unpredicatable. I can't imagine that what I see is a bug so I must make some assumptions which are not valid but I don't see them, btw listening on the WindowListener is I think not the solution because the frame is already displayed when I want to set the focus and I do not use a modal dialog box.
    The example code follows here
    Marc
    * Main.java
    * Created on December 21, 2004, 8:58 AM
    package testfocus;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * @author marc
    public class Main
    static int counter;
    /** Creates a new instance of Main */
    public Main()
    * @param args the command line arguments
    public static void main(String[] args)
    JFrame frm=new JFrame();
    JPanel content=new JPanel();
    frm.setContentPane(content);
    final JTabbedPane paneContainer=new JTabbedPane();
    JPanel bar=new JPanel();
    JButton create=new JButton(new AbstractAction("New")
    public void actionPerformed(ActionEvent ev)
    counter++;
    final JPanel pnl=new JPanel();
    pnl.setName("test"+counter);
    paneContainer.add(pnl);
    pnl.setFocusable(true);
    pnl.requestFocusInWindow();
    /* Either use this or the previous line
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    pnl.requestFocusInWindow();
    JButton delete=new JButton(new AbstractAction("Delete")
    public void actionPerformed(ActionEvent ev)
    int i=paneContainer.getComponentCount()-1;
    if (i>=0)
    paneContainer.remove(i);
    JTextField dummy=new JTextField("Test");
    bar.add(dummy);
    bar.add(create);
    bar.add(delete);
    content.setLayout(new BorderLayout());
    content.add(bar,BorderLayout.SOUTH);
    content.add(paneContainer,BorderLayout.CENTER);
    frm.setSize(300,400);
    FocusManager.setCurrentManager(new DefaultFocusManager()
    public void processKeyEvent(Component component,KeyEvent ev)
    System.out.println("Focus owner"+getFocusOwner());
    super.processKeyEvent(component,ev);
    frm.setVisible(true);
    }

  • Where is the page up key on the bluetooth keyboard

    I'm an ex-windows guy and I'm having issues with shortcut keys in Pages & Numbers. I have downloaded whatever documents that I found.
    Ex:
    Go to previous sheet
    Command–Page Up
    Where is the page up key?
    Scroll to beginning of sheet
    Home
    Scroll to end of sheet
    End
    Where are the home & end keys?

    Page up, on a keyboard without the Page Up key is fn-up arrow; Page down is fn-down arrow.
    Add command to the combination for 'up one sheet' or 'down one sheet.'
    Home: fn-left arrow
    End: fn-right arrow
    These will scroll to the top and botom respectively of the active sheet. Note that the focus (selected cell) does not change.
    Regards,
    Barry

  • Where's the Advanced|Document Processing|Batch Processing menu gone in Acrobat 11?

    I have Acrobat 8.3.1 Professional at work, we're migrating to new machines (Win7) with Acrobat 11 Standard.
     I've run into a problem:  In 11 Standard, where is the equivalent to the Advanced|Document Processing|Batch Processing menu command from Acrobat 8 Pro??
    I have 2 sequences I need to be able to run for docment filing with Court.
    Both sequences focus on a specific folder where I put (sometimes quite large) batches of documents converted from Word to PDF.
    The 1st sequence goes through however many files are in the target folder.  For each file, it turns on the thumbnails, and turns off the menu bar.
    I then do some tinkering en mass with them in Acrobat.
    Then I run the 2nd sequence, which turns off the thumbnails, and turns the menu bar back on - this is a requirement from Court.
    I just started tinkering with Acrobat 11 on my new machine, and the menus seem quite different!
    Currently, as each sequence runs, I have to sit there clicking "OK" for each and every file, which is tedious at best!  I'd love to find something that'll give me the same functionality, with Acrobat doing all the grunt work!

    Ugh.  I kinda thought that someone might say this.
    Ironically, the same situation arose a couple years ago when we got the machines we're migrating *from* - The Powers That Be thought that 8 Standard would work, and I quickly educated them that "nope, yer gonna hafta spring for me a copy of Pro!"
    So, it looks like "here we go again!"
    Thanks anyway!
    Now I get to cause our purchasing folks NEW grief!  I've told them repeatedly that they should REALLY involve me in these purchases, so I can do the pre-purchase research, and save everyone a lot of bother.

  • Setting the focus to a text field on a subform in the form initialize event.

    I have a form that checks the rawValue of a text field to determine whether or not the focus should be set on a particular text field. Here is the logic:
    if(txtEmailVisible.rawValue == "visible")
    frmEmailData.presence = "visible";
    xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
    else
    frmEmailData.presence = "hidden";
    For some reason the focus isn't going to that object, instead it is still going to the first field in the tabbing order. Am I calling this in the wrong event, which is causing the tabbing order to over ride my setFocus call?
    Thanks,
    Chad

    Try using setTimeout for this from the DocReady event.
    app.setTimeout("xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
    ", 250);
    There are several occasions where code must be executed after init/formReady/DocReady, etc. has been completed. This is one of them.

Maybe you are looking for

  • In Pages, How can I get headers and footers to show up on more than the first page of each section?

    In Mountain Lion, I considered myself a fairly expert user of Pages. Since "upgrading" to Mavericks, I can't get even basic things to work anymore. My current problem is that the headers and footers are only showing up on the first page of each secti

  • Where can I get Flash 8?

    Well, my CS3 trial is done, and I can't use it anymore. Plus, I didn't really like. I really liked Flash 8 when I had it, but I don't anymore, I got rid of it to make room for CS3. Now, I want it again, and I've googled it, and all the download links

  • ASA5510 to

    Greetings- I'm having trouble connecting an ASA5510 to a sonicwall.  The VPN session says it comes up, on both sides, but I'm not getting any traffic to / from either site. So its maybe an access-list or a NAT issue. What do you think? What are the n

  • How do I get an XY graph to auto append data?

    "Here is my problem. I have a Visual C program getting info from a user. That info is appended to a log file everytime the user hits "enter". Now, my labview program has to display the data in a graph, but I only want to see the 30 most recent points

  • Drummer feature for IOS 7.

    Is the new feature "drummer" available on the IOS 7 GarageBand. If so where? I have IOS 7 on my iPod touch 5. I did pay for GarageBand.