How to map keys(Key board) in forms6i

Hi all,
Would like to check ,is there anyway like with previous version of forms4.5,we can map our keys(keyboard keys vt220 e.g commit=F10,execute_query=F8 and so on).
We were using forms4.5(character mode) with Unix platform but now we decided to go for web but at the same time we still want to keep same mapping keys..
Thanks..
regds
Lasily Thomas

tou can user oracle terminal...

Similar Messages

  • How to Map one key to multiple values

    Hello Everyone
    Let's say I have a System. to access this system, one needs a username and a password. Now i have a Hashtable that maps passwords to their usernames. Now what if i want to store the Firstname and lastname of the person, in case he/she forgets the password or username? Is there a way to associate a key (Password) to multiple values(username, password, lastname)? if so, can you show me how to go about it?
    Edited by: Tonata on Apr 27, 2009 8:09 AM

    M.Murat wrote:
    Hello
    My suggestion is that you can create a map in which value is a list(for example Arraylist).
    You can store the items in that list and match that list to proper key.
    M.MuratCode smell: Object Denial+_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to map end key to "end of line"

    Is there a way to map the "end" key so that it goes to the end of the line, rather than the end of the document? I know I can use clover-right arrow to go to end of line, but I would like to map the end key to this functionality. Conversely, I'd like to map the home key to beginning of line.
    Thanks.

    Your wish is quite reasonable. I don't like the Cmd left/right arrow too.
    You can often use Ctrl-A to go to the start of a line and Ctrl-E to go to the end of line.
    First of all, have a look at this web page by Jacob Rus:
    http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
    A good explanation of key related things.
    In your personal Library folder create a folder KeyBindings.
    Then copy the following (starting on the line with { and ending on the line with }).
    (this will also make Shift Home and Shift End select to the start/end of line)
    /* home */
    "\UF729" = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";
    /* end */
    "\UF72B" = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";
    Paste this as PLAIN TEXT in an empty file in your favorite text editor (Smultron?) and save the file as
    ~/Library/KeyBindings/DefaultKeyBinding.dict
    (NB: use Unix line endings)
    (NB. You can do much more with keybindings
    Logout and login again and you should have what you want.
    This will work in most applications using the Cocoa text system.
    But not in some: Safari in the address field and in the Google search box; you have to use Ctrl-A and Ctrl-E.
    Berend

  • How to Maintain Surrogate Key Mapping (cross-reference) for Dimension Tables

    Hi,
    What would be the best approach on ODI to implement the Surrogate Key Mapping Table on the STG layer according to Kimball's technique:
    "Surrogate key mapping tables are designed to map natural keys from the disparate source systems to their master data warehouse surrogate key. Mapping tables are an efficient way to maintain surrogate keys in your data warehouse. These compact tables are designed for high-speed processing. Mapping tables contain only the most current value of a surrogate key— used to populate a dimension—and the natural key from the source system. Since the same dimension can have many sources, a mapping table contains a natural key column for each of its sources.
    Mapping tables can be equally effective if they are stored in a database or on the file system. The advantage of using a database for mapping tables is that you can utilize the database sequence generator to create new surrogate keys. And also, when indexed properly, mapping tables in a database are very efficient during key value lookups."
    We have a requirement to implement cross-reference mapping tables with Natural and Surrogate Keys for each dimension table. These mappings tables will be populated automatically (only inserts) during the E-LT execution, right after inserting into the dimension table.
    Someone have any idea on how to implement this on ODI?
    Thanks,
    Danilo

    Hi,
    first of all please avoid bolding something. After this according Kimball (if i remember well) is a 1:1 mapping, so no-surrogate key.
    After that personally you could use Lookup Table
    http://www.odigurus.com/2012/02/lookup-transformation-using-odi.html
    or make a simple outer join filtering by your "Active_Flag" column (remember that this filter need to be inside your outer join).
    Let us know
    Francesco

  • Key mapping/ remote key

    Hi All,
    I  have some understanding of key mapping internal functionality.
    my question is ... should I use this key mapping feature from all look up tables, main table while importing from remote systems?
    should all my feilds have REMOTE KEY enabled.
    Lets say I have loaded data into my repository from 3 different remote systems(R1,R2,R3) using remote key feature.
    Now, I want to see all the records that belong to R1 only or R2 only?
    Can this be seen using remote mapping feature? or how can I see only specific records for one remote system.... should i create another field that identifies the source and just map it? ....... generally how do we handle this?
    Also, have uploaded the data for my lookup table DIVISIONS,when i try syndicating it for remote R1......
    in my destination preview i can see some records that belong to only R2 and R3 also. I mean I am not able to see only the
    records belong to R1 system.
    I mapped
    division <-> div
    desc     <-> desc
    there are two more keys like remote key, v...... Should I also map these keys?
    Pls let me know,
    Thanks & regards,
    Vee

    Hi,
    my question is ... should I use this key mapping feature from all look up tables, main table while importing from remote systems?
    should all my feilds have REMOTE KEY enabled.
    1. It is totally dpeend upon business requirement which table you want to  make remote enable.
        The main reason to use remote key is to syndiacte the data to remote system specific.
         So if you are syndication your subtables to then it is good to make remote key enable.
    2. Only tables are remote key enabled not the fields.
    Lets say I have loaded data into my repository from 3 different remote systems(R1,R2,R3) using remote key feature.
    Now, I want to see all the records that belong to R1 only or R2 only?
    Can this be seen using remote mapping feature? or how can I see only specific records for one remote system.... should i create another field that identifies the source and just map it? ....... generally how do we handle this?
    This is not possible as standard way.
    But workaround is when you map the source field to remote key at destination side in import manager,just make the clone of source field and map it to the new fields to  store  the system from where the records came.
    So in data manager you can search on this field  to see only  records that is specific to some remote system.
    Also, have uploaded the data for my lookup table DIVISIONS,when i try syndicating it for remote R1......
    in my destination preview i can see some records that belong to only R2 and R3 also. I mean I am not able to see only the
    records belong to R1 system.
    I mapped
    division <-> div
    desc <-> desc
    there are two more keys like remote key, v...... Should I also map these keys?
    Yes you have to map these fields as well.
    Even after mapping this  option if you want to syndicate all the remote system records then there is option "override remote keys".after enabling this option  there is record generated for each remote system.
    hope it helps you.
    Thanks,
    Sudhanshu

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • How to build secondary keys dynamicaly in a generic entity definition class

    Hi developers,
    try to rebuild a generic entity definition class, where every instanced entity typ can has its own set of secondary fields. On the first moment it seems to be no problem, but now my problem is how to bind the annontation @Secondarykey... to the particular fields during construction of the entity shell be used?
    Hope I counld make the problem visible?
    Thanks for any help!
    ApeVeloce

    Hi Joachim,
    After understanding more about your application (off forum) I think I can answer your question more clearly. The general problem is: How can a dynamic, user defined schema be represented in Berkeley DB for multiple entity types, each with any number of properties, and arbitrary secondary keys for selected properties?
    There are many ways to do this and I'll describe one approach. I do not recommend using DPL for this case. In our documentation,
    http://www.oracle.com/technology/documentation/berkeley-db/je/PersistenceAPI/introduction.html
    we say: "Note that we recommend you use the DPL if all you want to do is make classes with a relatively static schema to be persistent." For a dynamic schema that is not represented using Java classes, the base API provides more flexibility.
    The common requirements for a dynamic schema are:
    1) Each entity has a type, which is roughly equivalent to a Java class. But unlike classes, types may be added dynamically. Queries are normally limited to entities of a particular type; this is not true for all applications, but I will make this assumption here.
    2) Each entity contains, at least logically, a Map of key-value properties. The property name is equivalent to a Java field name and the property value is equivalent to the field value. Properties may be added dynamically.
    3) Any number of properties for a given type may be defined as secondary keys. Secondary keys may be added dynamically.
    One approach for implementing this is as follows.
    A) A Database per entity type is created. This allows queries against a given type to be performed withing a single database. For simplicity the database name can be set to the name of entity type.
    The alternative is to have a single Database for all entity types. This works well for applications that want to query against properties that are common to all entity types. While such a schema is not common, it does occur; for example, an LDAP schema has this characteristic. If you do store all types in a single Database, and you want to query against a single entity type, you'll need to make the entity type a secondary key and perform a BDB "join" (see Database.join) that includes the type key.
    When queries are performed against a single type it is more efficient to have a Database per type. This avoids the extra secondary key for entity type, and the overhead of using it in each query.
    Another advantage to using a Database per type is that you can remove the entire Database in one step if the type is deleted. Calling Environment.removeDatabase is more efficient than removing the individual records.
    B) The properties for each entity can be stored as serialized key-value pairs. There are several ways to do this, but they are all roughly equivalent:
    B-1) If you use a SerialBinding, Java serialization does the work for you, but Java serialization produce larger data and is slower than using a TupleBinding.
    B-2) A TupleBinding can be implemented to write the key-value pairs. Each key is the string name. The value can also be a String, if all your data values are already Strings or if you convert values to/from Strings when they are used.
    B-3) If you have typed values (the type of each property is known) and you don't want to store values as Strings, you can write each value as a particular type in your TupleBinding. See TupleInput and TupleOutput for details.
    If your property values are not simple types (String, Integer, etc) then this approach is more complex. When using a TupleBinding, you will need custom marshaling code for each complex type. If this is too complex, then consider using a SerialBinding. Java serialization will handle arbitrary complex types, as long as each type is serializable.
    Another approach is to store each property in record of its own in a Properties database. This is a natural idea to consider, because this is what you might do with a relational database. But I do not recommend this approach because it will be inefficient to reconstruct the entire entity record from the individual property records. With BDB, we are not limited to the relational model so we can store the entire key-value map easily in a single record.
    However, this is one advantage to using a Properties database: If you commonly add or remove a single property, and entities normally have a large number of properties, and you do not commonly reconstruct the entire entity (all properties), then the Properties database approach may be more efficient. I do not think this is common, so I won't describe this approach in detail.
    C) To support any number of secondary keys, you will need to know which properties are secondary keys and you will need to implement the SecondaryKeyCreator or SecondaryMultiKeyCreator interface.
    C-1) Assuming that you have a Database per entity type, the simplest approach is to create a single SecondaryDatabase for each entity type that is associated with the primary Database for that type. The name of the SecondaryDatabase could be the name of the primary Database with a special suffix added.
    In this case, you should implement SecondaryMultiKeyCreator that returns all secondary key properties for a given entity. A two-part key should be returned for each property that is a secondary key -- {name, value} -- where name is property name and value is the value (either as a String or as a binary type using TupleInput/TupleOutput). When you perform queries for a given property, you will need to construct the {name, value} key to do the query.
    The SecondaryDatabase will need to permit duplicates (see SecondaryConfig.setSortedDuplicates) to allow any of the secondary keys to have the same value for more than one entity. If you have secondary keys that are defined to be unique (only one value per entity) then you will need to enforce that restriction yourself by performing a lookup.
    C-2) The alternative is to create a SecondaryDatabase for every property that is a secondary key. The database name could be the primary database name with a suffix identifying the secondary key.
    In this case you can implement either SecondaryKeyCreator or SecondaryMultiKeyCreator, depending on whether multiple values for each secondary key are permitted. And you can configure duplicates for the secondary database only if more than one entity may have the same secondary key value.
    Each secondary key consists only of its value, the name is not included because it is implied by the SecondaryDatabase in which it is stored. This approach is therefore more efficient than C-1 where we have a single SecondaryDatabase for all properties, because the secondary keys are smaller. However, there is the added work of maintaining the SecondaryDatabases each time the schema is changed: You must create and remove the secondary databases as the schema changes.
    For best performance, I recommend C-2.
    D) If you have a dynamic schema, you must store your metadata: the information that describes the names of each entity type, the properties allowed for that type (if restricted), and the list of which properties are secondary keys.
    I recommend storing metadata in a Database rather than in a file. This database could have a special name that cannot be used for any entity type. When metadata changes, you will be adding and removing databases. To ensure consistency, you should change the metadata and change the databases in a single transaction. This is possible only if you store the metadata in a Database.
    The Berkeley DB base API provides the flexibility to implement a dynamic schema in a very efficient manner. But be warned that implementing a data store with a dynamic schema is a complex task. As requirements grow over time, the metadata becomes more complex. You may even have to support evolution of metadata. If possible, try to keeps things as simple as possible.
    If you want complete flexibility in your schema and/or you want to store complex data types, you may want to consider storing XML. This is possible with Berkeley DB Java Edition since you can store arbitrary data in a Database, but you must implement secondary indexes for the XML data yourself -- this could be a very complex task. If you don't require pure Java, you should consider the Berkeley DB XML product. BDB XML supports many kinds of indexes as well as large documents, XPath, XQuery, and other features.
    Mark

  • How to display language key (0LANGU) in the query for BW report

    Hi,
    Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.

    hi,
    check if the infoobject is kept as lang dependent or not  for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
    regards
    laksh

  • Mapping custom keys

    Hi,
    I am using a Cyborg v7 keyboard for my arch system and while it works perfectly well, I don't know how to map the 12 'macro' keys. I tried using the 'showkey' program to find out what they keys are but they don't show up as sending an ascii,  scancode or keycode value. I would like to use them to switch between virtual desktops, so map them to 'Alt+F1' - 'Alt+F12'. I can't seem to find any keyboard specific information out there. Any help would be greatly appreciated. Thanks
    ellis

    I don't think it's software specific enough to be suitable for the ratpoison forum.
    I tried xbindkeys, and got the same problem as using showkey. The program detects any input successfully apart from those twelve macro keys. I'm starting to think it must be something to do with the way the keyboard is built means that those macro keys don't operate in the same way an ordinary key does.
    Thanks for the suggestions

  • Map F1 Key in Microsoft Dynamics NAV 2013 R2

    Hello Support,How to Program/Map F1 Key in Intermec Handheld device(CK3R) in Microsoft Dynamics NAV 2013 R2. I just attached mapping file. Can you help me out.  Regards, Kanthavel Ramachandran | MS Dynamics NAV Support Implementerwww.scsdynamics.com | [email protected] 330 N. Brand Blvd., Suite 870Glendale, CA 91203
    Office: 310.315.9660Direct: 310.953.9179Cell: 408-431-2163

    Hello RizaGrace,
    Thank you for your Interest in Azure.
    1. What exactly do you mean when you say 'best storage option', do you mean where will the Microsoft Dynamics NAV Server instances reside?
    There are two topologies of deploying Dynamics NAV on Azure. You can refer to this article that will give you information on 'Network Topologies for Microsoft Dynamics NAV on Windows Azure':
    http://msdn.microsoft.com/en-us/library/dn168979(v=nav.70).aspx
    Also refer to the article that wil give you inforamtion on 'Planning and Preparing for Deploying on Windows Azure':
    http://msdn.microsoft.com/en-us/library/dn168978(v=nav.70).aspx
    These are the example scripts for Deploying Microsoft Dynamics NAV on Windows Azure:
    http://msdn.microsoft.com/en-us/library/dn168991(v=nav.70).aspx
    I hope that this information is helpful. Please feel free to get back if you have any related questions.
    Thanks,
    Syed Irfan Hussain

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

  • How to create hot key?

    Hi all,
    I'm creating an application by using the J2SE v 1.4.2_10 SDK with NetBeans 4.1 Bundle. I have created 4 button and handles event each. I would like to create a hotkey for each button, "F2" key for jButtton2, "F3" key for jButton3, "F8" key for jButton4, "F1" key for jButton5, once i click on the key, the event will be triggered and the coding inside will be executed.
    Actually I have read through a few including How to Write a Key Listener, How to Write a Component Listener, How to Write an Action Listener, How to Use Actions, How to Use Key Bindings... but i really not so clear about that and don't know how to apply that into my task... Hope someone can help me...Thanks
    The following is part of my coding...
    * RegisterStudent_ADD.java
    * Created on November 15, 2005, 11:12 PM
    import java.awt.*;
    import java.sql.*;
    import javax.swing.*;
    import java.lang.*;
    public class RegisterStudent_ADD extends javax.swing.JFrame {
        /** Creates new form RegisterStudent_ADD */
        public RegisterStudent_ADD() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jDialog1 = new javax.swing.JDialog();
            jOptionPane1 = new javax.swing.JOptionPane();
            jLabel7 = new javax.swing.JLabel();
            jLabel6 = new javax.swing.JLabel();
            jLabel5 = new javax.swing.JLabel();
            jLabel4 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jLabel8 = new javax.swing.JLabel();
            jTextField2 = new javax.swing.JTextField();
            jTextField3 = new javax.swing.JTextField();
            jTextField4 = new javax.swing.JTextField();
            jTextField5 = new javax.swing.JTextField();
            jButton5 = new javax.swing.JButton();
            jSeparator2 = new javax.swing.JSeparator();
            jLabel1 = new javax.swing.JLabel();
            jSeparator1 = new javax.swing.JSeparator();
            jButton2 = new javax.swing.JButton();
            jButton3 = new javax.swing.JButton();
            jButton4 = new javax.swing.JButton();
            jLabel3 = new javax.swing.JLabel();
            jDialog1.getContentPane().setLayout(null);
            jDialog1.getContentPane().add(jOptionPane1);
            jOptionPane1.setBounds(0, 0, 262, 90);
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            setTitle("Register Student - ADD");
            jLabel7.setText("Student Phone No");
            getContentPane().add(jLabel7);
            jLabel7.setBounds(5, 180, 150, 14);
            jLabel6.setText("Student Address");
            getContentPane().add(jLabel6);
            jLabel6.setBounds(5, 155, 150, 14);
            jLabel5.setText("Student IC# ");
            getContentPane().add(jLabel5);
            jLabel5.setBounds(5, 130, 150, 14);
            jLabel4.setText("Student Name");
            getContentPane().add(jLabel4);
            jLabel4.setBounds(5, 105, 150, 14);
            jLabel2.setText("Student Code");
            getContentPane().add(jLabel2);
            jLabel2.setBounds(5, 80, 150, 14);
            jLabel8.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
            getContentPane().add(jLabel8);
            jLabel8.setBounds(130, 75, 160, 19);
            jTextField2.setColumns(8);
            jTextField2.setName("");
            getContentPane().add(jTextField2);
            jTextField2.setBounds(130, 100, 160, 19);
            jTextField3.setColumns(8);
            jTextField3.setName("");
            getContentPane().add(jTextField3);
            jTextField3.setBounds(130, 125, 160, 19);
            jTextField4.setColumns(8);
            jTextField4.setName("");
            getContentPane().add(jTextField4);
            jTextField4.setBounds(130, 150, 340, 19);
            jTextField5.setColumns(10);
            jTextField5.setName("");
            getContentPane().add(jTextField5);
            jTextField5.setBounds(130, 175, 160, 19);
            jButton5.setText("F1-Retry");
            jButton5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton5ActionPerformed(evt);
            getContentPane().add(jButton5);
            jButton5.setBounds(5, 34, 90, 23);
            getContentPane().add(jSeparator2);
            jSeparator2.setBounds(0, 30, 800, 2);
            jLabel1.setText("Register Student");
            getContentPane().add(jLabel1);
            jLabel1.setBounds(5, 10, 150, 14);
            getContentPane().add(jSeparator1);
            jSeparator1.setBounds(0, 60, 800, 2);
            jButton2.setText("F2-NxRec");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            getContentPane().add(jButton2);
            jButton2.setBounds(100, 34, 90, 23);
            jButton3.setText("F3-PreRec");
            jButton3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton3ActionPerformed(evt);
            getContentPane().add(jButton3);
            jButton3.setBounds(195, 34, 90, 23);
            jButton4.setText("F8-Save");
            jButton4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton4ActionPerformed(evt);
            getContentPane().add(jButton4);
            jButton4.setBounds(290, 34, 90, 23);
            jLabel3.setText("mode : ADD");
            jLabel3.setBorder(new javax.swing.border.TitledBorder(""));
            getContentPane().add(jLabel3);
            jLabel3.setBounds(680, 3, 100, 25);
            setBounds(0, 0, 800, 600);
        // </editor-fold>
        private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
    ......//some coding here.
        private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                             
    ......//some coding here.
        private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    ......//some coding here.
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    ......//some coding here.
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new RegisterStudent_ADD().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JButton jButton5;
        private javax.swing.JDialog jDialog1;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JLabel jLabel5;
        private javax.swing.JLabel jLabel6;
        private javax.swing.JLabel jLabel7;
        public javax.swing.JLabel jLabel8;
        private javax.swing.JOptionPane jOptionPane1;
        private javax.swing.JSeparator jSeparator1;
        private javax.swing.JSeparator jSeparator2;
        private javax.swing.JTextField jTextField2;
        private javax.swing.JTextField jTextField3;
        private javax.swing.JTextField jTextField4;
        private javax.swing.JTextField jTextField5;
        // End of variables declaration
    }Ning.

    Use the Action architecture (http://java.sun.com/products/jfc/tsc/articles/actions/):
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.KeyStroke;
    public class HotKeyComponent extends JPanel {
         public static void main(String[] args) {
              HotKeyComponent c = new HotKeyComponent();
              UselessAction a1 = new UselessAction("Action 1", "action.1", KeyStroke.getKeyStroke("F1"));
              UselessAction a2 = new UselessAction("Action 2", "action.2", KeyStroke.getKeyStroke("F2"));
              UselessAction a3 = new UselessAction("Action 3", "action.3", KeyStroke.getKeyStroke("F4"));
              c.addButton(a1);
              c.addButton(a2);
              c.addButton(a3);
              JFrame frame = new JFrame("HotKey Test");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setBounds(100, 100, 400, 300);
              frame.add(c);
              frame.setVisible(true);
         public void addButton(Action action) {
              Object command = action.getValue(Action.ACTION_COMMAND_KEY);
              KeyStroke stroke = (KeyStroke)action.getValue(Action.ACCELERATOR_KEY);
              getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(stroke, command);
              getActionMap().put(command, action);
              JButton button = new JButton(action);
              add(button);
         static class UselessAction extends AbstractAction {
              public UselessAction(String name, Object actionCommand, KeyStroke stroke) {
                   putValue(Action.NAME, name);
                   putValue(Action.ACTION_COMMAND_KEY, actionCommand);
                   putValue(Action.ACCELERATOR_KEY, stroke);
              public void actionPerformed(ActionEvent actionEvent) {
                   System.out.println("actionPerformed " + getValue(Action.NAME));
    }The example contains three buttons. You can either click them, or press the key which is mapped to an Action.

  • How to binding a key press event of "Esc" to "cancle" button

    I create a class extended JComponent. Than I add a button named "cancle " to it.
    Than I add the class's instance to a JDialog object.
    I try to get the key press event through add a keyListener to the class instance, but no works.
    I try to add a keymap and action map to the dialog 's getRootPane() also no works.
    Who can tell me how can I do?

    Thats the way I did it:
        // map escape key
        ActionListener escapeActionListener = new ActionListener()
          public void actionPerformed(ActionEvent e)
            cancelPressed();
        this.registerKeyboardAction( escapeActionListener,
                                     KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false),
                                     JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );

  • How to use a key file in the FTP Task using and SSL connection

    In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.
    Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site?  If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files
    from an SSL FTP site?  Thank you for any help offered.
    public void Main()
    ConnectionManager FTPConn;
    FTPConn = Dts.Connections["FTPServer"];
    FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);
    Dts.TaskResult = (int)ScriptResults.Success;
    Antonio

    You can use SFTP for this.
    This is a way of implementing SFTP in SSIS using standard tasks 
    http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
    also see
    http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to get Object key name

    var obj:Object = {a:"foo", b:"bar"}
    obj.a // foo keya=a value='foo'
    obj.b // bar keya=b value="bar"
    for each (var value:Object in obj){
    trace(value);
    Q: How can I get key from obj liking hash?

    var obj:Object = {a:"foo", b:"bar"}
    var retValue:String;
    for ( var key:* in obj)
    if ( obj[key] == "foo")
    retValue= key;
    break;
    return retValue;
    (you could of course return it straight from within the loop
    but thats not very good idea, so , you get the idea right?

Maybe you are looking for