Tab click focus event management

My form includes a JTable and a few JButtons. The JTable is allowed for only single selection. Once i click on a row in my editable JTable the default functianality is that on click of the TAB KEY, focus shifts from one column to another in the same row and then from row to row.
I would like to use the TAB KEY to shift the focus from the table into one of the buttons in the form.
Is there any way to achieve this functionality

Seems like that article missed a keystroke, Ctrl+TAB which shifts the focus from the table to the next Component.

Similar Messages

  • Dealing with Event Management

    Dear All,
    Our client - an Indian PSU wants to manage the events ( any show's , special events ) happening on their premises  handled by them  in SAP .
    Kindly suggest the SAP module in which it will suite the best . As there are two modules like - Training and Event Management (HR) and SAP Event Mangement (SCM) under HR and SCM. Which will be the best module for handling Event Mangement .
    Suggest me the best with more information if you have come across such a senario's.
    Thanks in advance..
    Alok

    Hello Alok,
    SAP Event Management is used for Tracking and Tracing in your Supply Chain. You can e.g. track a container and send out events in case of delays or if a proof of delivery is posted.
    More information is available on [SCM |http://service.sap.com/scm] on the right hand side click on Event Management and hava a look e.g. on SAP Event Management 7.0 - Overview
    Regards
    Berthold

  • Event manager - all my alarms have gone II

    Hi,
    When loading the alarms tab, when the event manager fails to to connect, the SMC console presents the following in its log:
    nfo    August 13, 2009 11:27:28 AM activator: Probe connection is not available with:snmp://x.x.x.x:163/mod/eventmgr/probe?runadhoccommand.probe
    info    August 13, 2009 11:28:22 AM activator: Probe connection is not available with:snmp://x.x.x.x:163/mod/eventmgr/probe?runadhoccommand.probeDoes this mean anything, apart from the obvious?
    rachel

    Sounds like there may be problems with your Event Manager. You might want to rerun setup on the Sun MC server. Is this in a production environment? Before doing so, you could send me your logs and I can further look into the problem for you.
    Run our diagnostics utility and send our experts the resulting file:
    http://www.halcyoninc.com/support
    Usage and email addresses can be found on the page above.
    regards,
    bobby
    [www.HalcyonInc.com|http://www.halcyoninc.com/support/index.php]

  • ITunes gets unresponsive when I click on Podcast tab in the device management window.

    Hello,
    I run the iTunes 11.1 on MacOX 10.8.5.
    iTunes gets unresponsive each time I click on Podcast tab in the device management window. (when my iPhone5 is connected, running iOS7)
    There was no bug before I upgrade iTunes and iOS.
    Is this a know bug?
    What Can I do?
    Will this be fixed in a next update?
    There is another bug, which may be related to the first one:
    before, in the podcast tab of my iphone management window, I chose to sync a smart playlist. Before the upgrade, the sync worked fine.
    But now, the sync seems OK on iTunes (the playlist is well displaied in my iPhone section), but I need to shutdown/restart my iPhone to get it updated on it. Othewise, I still see its content as it was before the sync.
    Please notice that this playlist contains only podcasts.
    Thanks a lot for any help.
    Beru

    Opening in the side bar is the default for bookmarks that are created via a link or button on a website.<br />
    You can check the Properties of a bookmark via the right-click context menu in the side bar (Ctrl+B; Cmd+B on Mac).<br />
    In the Bookmarks Manager (Bookmarks > Organize Bookmarks) you can click the More button in the Details pane at the bottom right.<br />
    Make sure that "Load this bookmark in the side bar" is not selected.<br />

  • Connect the device to your computer. Open iTunes. Select iPhone, iPad, or iPod in the Devices list. Click the Summary tab and select "Manually manage music and videos". Click Apply. but after that say's everything on my iPhone will be deleted

    Connect the device to your computer.
    Open iTunes.
    Select iPhone, iPad, or iPod in the Devices list.
    Click the Summary tab and select "Manually manage music and videos".
    Click Apply.
    than it says it'ss erase my iphone and sync with itunes library.
    what should i do?

    It wil only erase the music and videos. Nothing else.

  • 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

  • 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.

  • Tabbed Pane Focus Problems

    Focus traversal doesn't appear to be working on tabs added after the JFrame is initially displayed (at least on JDK 1.4.2):
    1) Run the program. Focus is on the last field on the 3rd tab. Use the tab key to cycle through all components. It successfully tabs to the button, the tab, and each text field. This is working ok.
    2) Create a new tab.
    a) Focus should be on the last text field, but no component appears to have focus. (why???)
    b) Type some character. They are added to the last text field. So focus was placed on the last text field, but the caret was not painted (why???)
    c) Use the tab key to cycle through the components. When tabbing through the text fields the caret is not painted to indicate focus, except for the last text field (why???)
    d) Click on a text field and use the tab key to cycle through all compnents. This time the caret will be painted for the last text field and the text field you just clicked on. (why???)
    Any suggestions on how to fix this wierd behaviour? Here's my test code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TabbedPaneFocusTest
         static int columns = 0;
         public static void main(String args[])
              final JTabbedPane tabbedPane = new JTabbedPane();
              newTab(tabbedPane);
              newTab(tabbedPane);
              JComponent component = newTab(tabbedPane);
              JButton button = new JButton("Add Tab");
              button.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        newTab(tabbedPane);
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add(tabbedPane);
              frame.getContentPane().add(button, BorderLayout.SOUTH);
              frame.setSize(400, 200);
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
              // Select tab 3 and set focus on the last text field.
              tabbedPane.setSelectedIndex(2);
              component.requestFocusInWindow();
         private static JComponent newTab(JTabbedPane tabbedPane)
              columns++;
              JComponent component = null;
              JPanel panel = new JPanel();
              for (int i = 0; i < columns; i++)
                   component = new JTextField("TextField" + columns + i);
                   panel.add( component );
              tabbedPane.add( panel, "" + columns );
              tabbedPane.setSelectedIndex( tabbedPane.getTabCount() - 1 );
              component.requestFocusInWindow();
              return component;
    }

    I tested the last code in Java 1.5.0 (build 1.5.0-b64) on a Linux platform, and it does not seem to work. To determine who has the focus, I added a slithy modified DefaultKeyboardManager that printed out the focus owner, when I run the modified code, it seems that the focus is placed on the last textfield when the panes are created before displaying the frame, this works ok however when I created a pane using the button, the focus is on the button and not on the text field. Apparantly pressing the button does a requestFocusInWindow() on the button after the actionPerformed is executed, overruling the requestFocusInWindow() (just my humble opinion). The modified test code follows below:
    Marc
    package testfocus;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Main
         static int columns = 0;
         public static void main(String args[])
              FocusManager.setCurrentKeyboardFocusManager(new DefaultKeyboardFocusManager()
                             public void processKeyEvent(Component c,KeyEvent e)
                                  System.out.println("Focus owner: "+c);
                                  super.processKeyEvent(c,e);
              final JTabbedPane tabbedPane = new JTabbedPane();
              newTab(tabbedPane);
              newTab(tabbedPane);
              JComponent component = newTab(tabbedPane);
              JButton button = new JButton("Add Tab");
              button.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        newTab(tabbedPane);
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add(tabbedPane);
              frame.getContentPane().add(button, BorderLayout.SOUTH);
              frame.setSize(400, 200);
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
              // Select tab 3 and set focus on the last text field.
              tabbedPane.setSelectedIndex(2);
              component.requestFocusInWindow();
         private static JComponent newTab(JTabbedPane tabbedPane)
              columns++;
              JPanel panel = new JPanel();
              tabbedPane.add( panel, "" + columns );
              tabbedPane.setSelectedIndex( tabbedPane.getTabCount() - 1 );
              for (int i = 0; i < columns; i++)
                   panel.add( new JTextField("TextField" + columns + i, 5) );
              JTextField component = (JTextField)panel.getComponent(columns - 1);
              component.requestFocusInWindow();
              return component;
    }

  • Training and Event Management - internal instructor

    Hi people,
    I am working on R/3 4.7 Ext 110 HR module. While creating a training event in Training and Event Management, I need to include the name of the internal instructor (not external). Where exactly do I do this? I do not find this option in PV10. Kindly help.
    Thank you.

    Hello Phoebe,
    For this, first you need to maintain the Relationship A 022 (Requires) for the Business Event using the Tcode OOET with the Resource Type (Instructor).
    Then use the Tcode PV10 and select data screen for the Business Event. Then make the necessary entries on the screen and then select Resource Selection on the left top of the screen. After this the new screen will pop-up of all the resource type with which u maintained the relation. Select instructor from there and click on the select resource in the left side. Again a new window will appear and select Temporarily Add Resource from there.
    Hope this will help you, try and let me know.
    Thanks & Regards,
    Esha

  • Training and Event Management Implementation based on competencies

    Dear Friends,
    My client is going ahead for Training and Event Managment Implementation. They have a basic requirement to start with and that is :
    1) They have done competency mapping for all its employees and they want that the competencies of each employees(along with the skill levels) to be recorded in the system and that has to be the starting point of using Training and Event Management module.
    2) They want, if the competencies can flow based on Job/ Position.
    3) Some identifier to the competencies, whther it has flowed from Appraisal or any other sources in the Final Training Needs.
    Kindly provide me help, as to how I will be able to achieve that and in what Infotypes the data pertaining to Training and Event Managment will be stored.
    If u all can kindly share with me the User Manuals and Configuration Docs of Training and Event Management, it will be of great help.
    Thank you all.

    Hi,
    Competencies can be stored as qualifications in PD and then by activation of PD PA intergration can be seen from pa30 infotype 24.
    Qualifications can be stored against a Job/Position and are called as the Requirements. They are seen as a separate Tab and to which ever position the person is linked to the corresponding qualifications of the position will appear in the requirements tab.
    You can maintain the proficiency and a note along with the qualification when assigned to a person.
    Also Appraisals can have qualifications in the template rather than criteria and criteria groups.
    Also after training is completed during the follow up we can create an appraisal and transfer the qualifications or simply transfer the qualifications to the employee.
    Regards,
    Divya

  • TRAINING AND EVENT MANAGEMENT - ERROR

    Dear SAP Experts,
    I am working on the module TRAINING AND EVENT MANAGEMENT.
    While using transaction PSV2 - DYNAMIC BUSINESS EVENT MENU, when i click on BUSINESS EVENT TYPE in that create W/O RESOURCES, I get an error.
    PLANNING PERIOD IS NOT IN BUSINESS EVENT TYPE INTERVAL.
    Can you please guide me in this.
    Please tell me where i am going wrong
    Thanks in advance.
    Regards
    Aniruddha

    Hi all,
    PLANNING PERIOD IS NOT IN BUSINESS EVENT TYPE INTERVAL (on LSO_PSV2)
    I have the same error ...
    Does anyone know?
    thanks in advance, Sony

  • Appraisal/Feedback form in training and event management.

    Hi Expert
    I want to create appraisal feed back form or template in training & event management, where attendee can appraise the business event and instructor vis-a-versa.
    My query is that-----
    When I go to IMG node called appraisal under Training & event management node and click on appraisal catalog (t-code OOAM) than only one category group (personnel appraisal) is available however, I can create appraisal category and appraisal template under business event group for TEM appraisal.
    Pls do let me know the steps to create the business event and attendee category group.
    In integration table t77s0 I have set the following integration.
    HAP00 REPLA set to A
    SEMIN EVAPA is set to 3
    AEMIN EVAEV is set to 2
    Looking forward to your error resolving solution
    REGARDS
    SACHIN

    Hi Expert
    I am getting an informational message ( select the business event) while booking the attendee to business event through t code PV00.
    when I execute the t code PV00 than I found only business event type field instead of business event than why this message is displaying.
    Due to that message I am not able to book attendee to business event.
    Pls let me know where I am wrong.
    Regards
    Sachin

  • Can't hide a particular event using Event Manager X?

    I got Event Manager X yesterday to save the hassle of hiding Events manually.
    It appears to work OK but I have one Event which I just cannot hide.
    I deselect it, click the Move button and when FCP X reopens it's still there in the Event Library and it's still selected in Event Manager X.
    Has anyone else experienced this?

    Problem solved!
    It appears that I had an identically named Event already in the "hidden" folder.
    Once I altered its name I was able to hide it.
    My only puzzle now is how I created 2 identical events in the first place.

  • SAP TM and Event Management

    Hello all,
    I am a student of informations systems and currently I am writing my bachelor-thesis about SAP Transportation Management 7.0 and SAP Event Management 7.0 in view of Supply Chain Event Management focused on a Fulfillment-Process. I have a few questions belongs to the practicability of this process with SAP TM 7.0.
    Usually you use SAP APO to implement SCM-Fulfillment-Processes. But instead of using SAP ERP LES it is also possible to use SAP TM for Transportation Management especially for Transportation Planning, Execution and Service Provider Selection (Integration between SAP ERP LES and SAP TM e.g. via IDocs), isn't it?
    I have got a few experience in customizing SAP TM and SAP EM for a Transportation Execution (FCL) and Tracking Szenario. For this reason, i want to implement e.g. a partial re-planning of the Transportation Execution in SAP TM if there is a variation between planned and actual data (e.g. because of traffic jam).
    I don't want to know, how to implement this in SAP TM, I just want to know, if is it reasonable to implement this and the scenario above with SAP TM? Or is it recommend to use SAP APO only? 
    Kind regards,
    Christian
    Edited by: Christian Beining on May 5, 2009 10:35 AM
    Edited by: Christian Beining on May 5, 2009 11:09 AM

    Hello guys,
    currently we are handling some problems with the integration of SAP Event Management and SAP Transportation Management. Both are running on the same system.
    The Situation:
    I had set up a RFC-Connection between SAP EM and SAP TM. In SAP TM I definied the corresponding settings for EM-Relevance of SRQ. In "Integration with other mySAP.com Components" I defined, the Business Process Types, Application Objects Types and the Event Types.
    After creating a SRQ, I got the message, that event tracking for the expected shipment request type is activated. While debbuging I found out, that SAP TM found the corresponding Business Proccess Type and Application Object Type to the Shipment Request Type. SAP TM also found the Event Manager which I defined in  "Integration with other mySAP.com Components" --> "Define EM" and got the RFC-Destination.
    The Problem is, after creating a SRQ there is no message in the Application Log, like "Event Handler was created successfully". The corresponding tables are empty, too.
    Has got anybody an idea? Maybe the configuration of the RFC-Connection is wrong or something else?
    If you need more detailed information, let me know.
    Thanking you guys in anticipation,
    Regards,
    Christian.

  • Focus Event

    I have a problem like this:
    I have a form with 2 text fields: Text1, Text2. If focusing on Text1 and pass focus-event to Text2, a Message_Box will show to confirm: "Do you want to change focusing from Text1 to Text2 (Y/N)?". If you choose Yes then focus on Text2, otherwise keep focusing on Text1.
    I have tried with following codes but it shows Message_Box 2 times when choosing No.
    Please help me to solve this issue.
    Thanks alot.
    import com.fss.swing.*;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import java.awt.BorderLayout;
    import java.awt.Rectangle;
    import javax.swing.*;
    import javax.swing.JButton;
    import java.awt.event.FocusAdapter;
    import java.awt.event.FocusEvent;
    import java.awt.Dimension;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: FSS-FPT</p>
    * @author not attributable
    * @version 1.0
    public class test extends JFrame
         public test()
              try
                   jbInit();
              catch(Exception ex)
                   ex.printStackTrace();
         private void jbInit() throws Exception
              jTextField1.setText("jTextField1");
              jTextField1.setBounds(new Rectangle(21,65,226,19));
              this.getContentPane().setLayout(null);
              this.getContentPane().add(jTextField1,null);
              jButton1.setBounds(new Rectangle(132,128,73,23));
              jButton1.setText("jButton1");
              this.getContentPane().add(jTextField2);
              this.getContentPane().add(jButton1);
              jTextField2.setText("jTextField2");
              jTextField2.setBounds(new Rectangle(267,66,64,19));
              jTextField1.addFocusListener(new FocusAdapter() {
                   public void focusLost(FocusEvent e){
                        if(e.isTemporary())
                             return;
                        int i = MessageBox.showConfirmDialog(test.this,"Do you want to change focusing from Text1 to Text2 (Y/N)?","Confirm");
                        if(i == MessageBox.YES_OPTION)
                             jTextField2.requestFocus();
    else
    jTextField1.requestFocus();
         JTextField jTextField1 = new JTextField();
         JTextField jTextField2 = new JTextField();
         JButton jButton1 = new JButton();
         public static void main(String args[]) {
              test t = new test();
              t.setTitle("Test");
              t.setSize(new Dimension(400,300));
              t.setVisible(true);
    Edited by: googlecomvn on Jul 4, 2008 3:23 AM

    The way I've seen to cancel focus events is using a VetoableChangeListener:
    [http://java.sun.com/j2se/1.5.0/docs/api/java/awt/doc-files/FocusSpec.html#FocusAndVetoableChangeListener]
    import java.awt.KeyboardFocusManager;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyVetoException;
    import java.beans.VetoableChangeListener;
    import javax.swing.BoxLayout;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    public class FocusTest extends JFrame {
       public FocusTest() {
          final JTextField field1 = new JTextField("type \"text\"");
          final JTextField field2 = new JTextField("then click on me!");
          setLayout( new BoxLayout( this.getContentPane(), BoxLayout.Y_AXIS ) );
          add(field1);
          add(field2);
          pack();
          KeyboardFocusManager.getCurrentKeyboardFocusManager().addVetoableChangeListener(
             new VetoableChangeListener() {
                public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException {
                   if ( evt.getOldValue() == field1 ) {
                      if ( !"text".equals(field1.getText()) ) { //simple validation
                         throw new PropertyVetoException("Invalid value for field1", evt);
       public static void main(String[] args) {
          new FocusTest().setVisible(true);
    }You'd definitely get in trouble with using a JOptionPane in the change listener, though (as it would throw more focus events, requiring more JOptionPanes, etc).
    Edited by: endasil on 4-Jul-2008 8:50 AM

Maybe you are looking for