How to map Keyboard Digit tot the JComboBox?

I want to use keyboard digit to navigate into the JComboBox instead of the arrow keys. What should I have to
do in case. I have use Input Map and Action Map to associate keys but it wont work.

How is this different from your earlier question?
[http://forums.sun.com/thread.jspa?threadID=5438753]
I'm locking this and it will be removed later. If you continue to start new threads with the same question you have already asked in an earlier thread, your user account is liable to be locked.
db

Similar Messages

  • How to map a query with the Multiprovider?

    Hello All,
    Can any one please tell me how to map a query with a multiprovider?
    Appreciate your help.
    Regards,
    Soumya.

    Hi,
    Can you please elaborate , do you mean how to create a query with multiprovider. if that is your question it is very simple just create the query on the multiprovider.
    What is the purpose for mapping the query with multiprovider

  • How to add defferently Font to the JComboBox .

    I want add a JComboBox in my applet,and want every items of the JComboBox hava differently color and font,what i can do it.could u like to give me some example code .help!thank u!

    Hi,
    I think you can use java's powerful way of renderring html...
    here is one example that can help you....
    import javax.swing.*;
    import java.awt.*;
    public class MyCombo extends JFrame {
         public MyCombo() {
              getContentPane().setLayout(new FlowLayout());
              setSize(200,200);
              JComboBox aJComboBox = new JComboBox();
              aJComboBox.addItem("<html><font color=red>1</font></html>");
              aJComboBox.addItem("<html><font color=blue>2</font></html>");
              getContentPane().add(aJComboBox);
              setVisible(true);
         public static void main(String argv[]) {
              MyCombo aMyCombo = new MyCombo();
    Hope it will help u...
    Kind Regards
    Chetan Chandarana

  • How to map Product Group for the Materials in BW.

    Hi All,
    We have an requirement for one of the report called as Progress validation Report.
    We have to craete thsi repotr which would pulll out Inventory value, Production Plan value, Total Lates, Current week deliveries and WIP for a quarter.
    Cube whihc provides details about production plan has data by Material, plant and product group wise.
    But rest of the cube from which we extract the key figures does not have data by Product grop wise.
    Product group is been picked from PGMI table in R/3.
    How I can related the materials  which are in other cube to the respective Product group.
    Material and the relevant prdoct group data doesnot flows in BW.
    There is even a scenario where ahve seen a material falls under 2 product groups..
    PLease guide as how i can realted already existing materials in the Cube to the product group.
    Points will be assigned
    Thanks & Regards
    Vaishali Patil

    Hi,
    Product Group is master data for material master. It is part of Matreial Clssification data in R/3.
    Please check if you are having the same already loaded as attribute of Material master. I guess it will be there, if it s not there then you should try to load the same in material master object which you are using in all the cubes.
    If the maintinenece in master data is nopt possible then you got to populate the same in cube.
    There will be a combination of keys (materail/plant/prduct family etc.. ( for which Product group will be unique). then load product with the help of these key combinations in all the cubes via update routine.
    There is one more way to have this but which is performance intensive.
    You may create one master data object called Product Group and keep material number as attribute (with compunding all other key fileds to get the unique combination). Then you may create an infoset using cubes and this master data object. Join the materail numbers in all. Display this object in report.
    I hope it will help.
    Thanks,
    S

  • How to color different elements in the JComboBox

    Hi,
    I have a combo box with say 10 items.I want to colour different items inside the combo box with differrent color.How to do this.?
    thnx & regards
    Neel

    hi,
    Thanks.It worked with the following Rendeerer
    class MyCellRenderer extends JLabel implements ListCellRenderer {
             Vector indexVec=new Vector();
              public MyCellRenderer() {
                  setOpaque(true);
              public MyCellRenderer(Vector indexVec) {
                  setOpaque(true);
                  this.indexVec=indexVec;
              public Component getListCellRendererComponent(JList list,
                                                            Object value,
                                                            int index,
                                                            boolean isSelected,
                                                            boolean cellHasFocus) {
                  setText(value.toString());
                  Color background=Color.WHITE;
                  Color foreground=Color.BLACK;
                 if(indexVec.contains(new Integer(index))){
                      foreground=Color.RED;
                 }else{
                      foreground=Color.GREEN;
                 setBackground(background);
                  setForeground(foreground);
                  return this;
          }but I have a problem now.previously for selection of a element or navigation from one item to the other item in the combo baox i used to get a dark blue background showing in which item I am presently now......but after adding this MyCellRenderer that is gone.
    Please help in what could be the prob....how to set that color..
    thnx
    ~Neel

  • How to map a calculation with the session ID

    Hi,
    we have been using HBR and as usual many a times we have concurrent rules that are being executed .
    now i can view the sessions in the admin services but i am not able to make out that which rule is the one thats running right now.
    is there any way that we can map the session Id that is apperaing in the sessions with the intersection on which that rule was executed or the name of the rule.for instance if we could get the session id details in th eHBR Launch log files then we can make out which rule is being executed whith which session ID.

    you have a detailed information under planning's job console and for more information you can match the time stamp with essbase session.
    Can help you up to some extant.

  • How to map new field in DSO

    I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.

    Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
    Edited by: Daniel on Nov 28, 2011 9:59 AM

  • How to mapping domain tables

    Hi,
    I am new one to Kodo and have a question about how to mapping with FK of the domain tables. For example, the magazine table has a fk refering to publisher table. So, the Magazine object has mag_id (pk) and publisher (fk, object of Publisher). The Publisher will have pub_id as pk. What kind of mapping it needs? By the way, the database has fk constraints on.
    Thanks in advance,
    Michael

    pk means primary key and fk means foreign key. I use kodo-jdo-3.4.1.
    You are right, the example is similar to the example in the user guide. Table magazine has mag_id as pk, publisher_id, a foreign key constraint with table publisher, and other columns. So, the publisher table is a domain table. The database has non-deferred foreign key constraint.
    I define the following classes:
    class Magazine
    String mag_id; //pk
    Publisher pub;
    class Publisher
    String pub_id; //pk
    I use one-one mapping at field pub of Magazine to publisher as Column.PUB_ID = "PUB_ID" in mapping file. However, it doesn't work.
    When I try to insert a new magazine record into magazine table, the database will check table Publisher for foreign key constraint, and then the kodo will automatically try to insert a new record into publisher table.
    I know something wrong in my mapping. What should I do?
    Thanks,
    Michael

  • How can I map a keyboard shortcut to the reacord button in the Audio Mixer Panel?

    I have been recording voiceovers in Premiere Pro CS5 for a while, but I would like to improve my work flow. Each time I record a take, I first press the record button (labeled as B below) with the mouse cursor and then press the Play button with the Spacebar keyboard shortcut. After I record the audio, I hit Stop and this toggles the record button off at the same time. I then must hit the record button again with the mouse to start the process over again.
    Is there a way to map a keyboard shortcut to the record button in the audio panel so that I don't have to touch the mouse when recording voiceovers?

    There is not currently a shortcut for this. That's a good feature request, though. You can submit feature requests here.

  • How do I get rid of the useless grey keyboard on my mini?

    I have been using a bluetooth keyboard and have had no trouble with the touch keyboard when the BT is off.  This week though a darker grey keyboard appeared that does not go away when the BT is off AND it does not function.  How do I get back to the normal touch keypad?  I looked in settings and nothing has changed!!!  The grey keypad blocks 1/2 of the screen all the time and does not allow me to access the apps it covers...very frustrating!

    I Edited my post after I saw that the image did appear. I assume that you edited your post as well because it wasn't there originally. I have no idea wh that is appearing, but try basic troubleshooting. Close all apps and reset your iPad. No data will be lost.
    Before you do that, you aren't using an add-on third party keyboard are you? So you use a Bluetooth keyboard at all? Do you use accessibility features?
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How to Map the Unit field  in case of DSO and INFOCUBE

    Dear Experts,
    I have a issue ,Please help me to solve this
    I have DSO as provider ,
    And, i have to map transformations  btw the Datasource and DSO.
    In generic Data source,  i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
    and normal Quantity fields  like KWMNG,OAUME(quantity related),OAUWE (value related).
    In DSO data fields as Key figure info objects like  0Quantity (which have 0Unit as unit of measure) and some other  key figures which have there respective unit of measure in info object  definition.
    So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
    (How it will be for both DSO and Info cube is there any difference?)
    Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PM

    Navasamol ,
    If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
    what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
    And i have  seen the Quantity fields  and there respective unit fields are mapped directly  to key figure info object
    in case of Info cube . Its working fine .
    If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
    why this difference btw DSO and Info cube can any one explain me in detail.
    Expecting your valuable suggestions.
    Thanks & Regards,
    Anjunath Naidu
    Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • TS3280 How can i enable both paired bluetooth and ios keyboard input at the same time?

    How can i enable both paired bluetooth and ios keyboard input at the same time?
    This is needed for the app im working on. Need some user input via keypad as well as scanner input via a paired bluetooth scanner.

    You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
    I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
    https://developer.apple.com

  • How to clear the selected values in the JCombobox

    Hi All,
    Can you please tell - how to clear the selected values in the JCombobox
    I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.

    In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.

  • How can I access and use the alphabetical keyboard of the phone ?

    How can I access and use the alphabetical keyboard of the phone ? I cannot find the answer in the manual of use.  Thanks for your help !

    Recently I was abroad and tried to contact my voicemail to check my messages. I was asked to enter a password and did not know how to use the letters below the figures on the keyboard.  I had to give up and wait until I was back in my country (no password is then needed).

Maybe you are looking for