Keyboard Access For a Column in JTable with default editor as JComboBox

I want to get Key board access for a column in JTable.
The user should be able to select from a drop down list for the column with default
editor set as JComboBox.
Presently,it works fine with mouse,also I am able to focus it with Keyboard using
ALT+Up keys,but how to make drop down list appear.
Plz help,it's urgent.
Thanks in Advance

Hi,
In addition to setting DO_SUM = 'X' you need to specify function in H_FTYPE field. It should be set to 'AVG' in your case.
ls_fielcat-do_sum = 'X'.
ls_fieldcat-h_ftype = 'AVG.

Similar Messages

  • Turning on Full Keyboard Access for PB G4

    I'm a new Mac user with a PB G4 15". I've searched the forums for an answer to this to no avail.
    In The Tao of Mac (http://the.taoofmac.com) the author says: "If you're keyboard-oriented, go into System Preferences | Keyboard and Mouse | Keyboard Preferences and Turn on full keyboard access. Now you can deal with dialog boxes the way you're used to, as well as accessing menus and toolbars with the keyboard."
    When I try this on my PB, there is no "Turn on full keyboard access" button - although the Keyboard Shortcuts tab does have a checkbox for "Turn full keyboard access on or off" with a shortcut of ^F1 (which doesn't seem to do anything).
    I'm very keyboard literate and would like to access menus in the same manner as i can with Windoze - i.e. Alt-underlined letter in menu, e.g. Alt-f brings up file menu.
    Any help most appreciated.
    Regards...john...
    Powerbook G4 15-inch   Mac OS X (10.4.3)  

    This may make-or-break my resolve to switch to Mac.
    While I adore the interface, the graphics power, the
    art/design tools and sensibility of the Mac, it
    really is like "typing with boxing gloves on" as
    someone warned. Makes sense for an OS that
    introduced the GUI and the mouse, I'm still finding
    it difficult to adapt to that style of work. For
    me, taking my hands off the keyboard to use the
    mouse is anathema.
    You have nearly as much keyboard control as on Windows, it's just different. And in some cases, better. For instance, when two menu commands start wit the same letter, the alt key can't be the same for both commands, so Windows assigns a different letter to one of them so you have to learn it. The Mac way can be faster because you don't have to learn the alt key; instead, you just start typing the command name and it's selected as soon as a match is made. For example, if I have two commands, "Slide Show Options" and "Save Slide Show as Movie," I know that there are no alt keys to memorize, as soon as I drop that menu with the keyboard, typing "sl" will select "Slide Show Options" and typing "sa" will select "Save Slide Show as Movie."
    In dialog boxes, be aware that many Mac developers have implemented single-key shortcuts for buttons, which do not require full keyboard access to be turned on. For example, if a "Save changes before closing?" dialog box comes up with "Save and Close," "Don't Save," and "Cancel" buttons, and "Save and Close" is the default, the Enter key will hit the default key, the Esc key will hit the Cancel button, and the D key will hit the Don't Save button. It is also possible, depending on the app, that the S key will hit Save and Close and the C key will hit Cancel.

  • To setup scrollbars for individual columns in JTable

    Hi,
    I need to setup individual scrollbars for the
    columns in JTable.
    Can anybody help?
    Thanks in advance.
    Rgds,
    sita

    Hi,
    I need to setup individual scrollbars for the
    columns in JTable.If i understand you correctly, you want to have a scrollbar for every column. If so, you will need a new instance of JTable and JScrollPane for every column, but that's a lot of work if you want to do it fancy.
    The good news, is you can reuse the table model.
    You could do something like that.
    for (int i= 0; i < model.getColumnCount(); i++) {
        JTable table = new JTable();
        table.setAutoCreateColumnsFromModel(false);
       //container
        someContainer.add(new ScrollPane(table), null/* or some layout constrains*/);
        TableColumn tc = new TableColumn(i, 120);
        tc.setHeaderValue(model.getColumnName(i));
        table.addColumn(tc);
    Can anybody help?
    Thanks in advance.
    Rgds,
    sita

  • Different number of rows for different columns in JTable

    hi
    I need to create a JTable with different number of rows for different columns...
    Also the rowheight should be different in each column...
    say there is a JTable with 2 columns... Col1 having 5 rows and column 2 having 2 rows...
    The rowHeight in Col2 should be an integer multiple of Rowheight in Col1
    how do I do this ??
    can anybody send me some sample code ?????
    thanx in advance

    How about nesting JTables with 1 row and many columns in a JTable with 1 column and many rows.
    Or you could leave the extra columns null/blank.
    You could use a GridBagLayout and put a panel in each group of cells and not use JTable at all.
    It would help if you were more specific about how you wanted it to appear and behave.

  • Disable row selection for certain column in JTable

    I have a JTable with several columns, one of which contains an "Info" button. I already have it worked out that when I click on the "Info" button, that event gets passed from the JTable to the button. I have multi-select enabled for the JTable, but I don't want clicking on the "Info" button to change the current selection. I have a klugy "fix" working where I save off the current selection, and then restore it after the user presses the "Info" button. However, this results in "flashing" - the row containing the selected "Info" button becomes selected briefly, then the original selection is restored. How can I avoid this? I would like to just ignore selection events on the "Info" column, but still pass the mouse click event through to the button.
    Any suggestions?

    try this
            JTable table = new JTable() {
                public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                    if (!getColumnModel().getColumn(columnIndex).getIdentifier().equals("Info")) {
                        super.changeSelection(rowIndex, columnIndex, toggle, extend);
                    }//else

  • In BI Publisher Report of excel output for one column is filled with spaces

    Hello,
    We have issue in BI Publisher report of excel output.
    In Excel output for one column few records are displaying as left alignment
    and few record are displaying as right alignment.
    If you are having any xml tag or any syntax for removing spaces for left side
    Please help on this issue.
    Thanks in Advance.
    Regards,
    Swaraj

    Please post the details of the application release, database version and OS along with BI Publisher.
    Is the issue with all reports or specific one(s) only?
    Do you have the patches in the following docs applied?
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 10g [ID 797057.1]
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 11g [ID 1276869.1]
    Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
    BI Publisher 10g RTF Template Changes Alignment Settings for Numbered Lists [ID 1418504.1]
    Thanks,
    Hussein

  • Assign access for the database to None with maxl?

    I need to assign access to the database to none with maxl. Any help will be appreciated. <img src="i/expressions/beer.gif" border="0">

    Do you mean setting the minimum access permission on the database?<BR>For that the command is 'alter database 'Sample'.'Basic' set minimum permission no_access;'<BR><BR>If you want to prevent users from logging on to the database then use something like<BR>'alter application 'Sample' disable connects;'<BR><BR>HTH<BR>

  • NetBeans SetAction Dialog box - can't customize with default editor

    I'm new to this so be patient....thanks..
    I used NetBeans IDE to create a basic jpanel that has a jfilechooser and three functional buttons of my own. I want one of the buttons to run a background task. According to the Neteans SetAction documentation, I should be able to go to the properties of the component (various ways), then click on the elipses (...) for action for the button, then edit the action to make it a background task. I was hoping to use the default editor wizard to make this button launch a background task.
    When I select the elipses for action (pulling up the SetAction Dialog box) I get the message that "Custom Editing of This Property is not Supported"
    Any ideas? This inability exits on other panels/buttons I have created in experimenting to solve this problem. Is there a global setting in NetBeans IDE that turns on/off custom editing of functions using default editor?
    Ultimately I want this actionPerformed to run in the background (I'm assuming this must implement SwingWorker??)....attempts at coding up the actionPerformed method to use SwingWorker to run the actionPerformed method haven't worked for me (yet). If I can get the IDE editor to do this for me I won't have to figure this part out.
    Thanks if you can help

    You may have better luck getting an answer for this if you ask this in a NetBeans-specific forum as this is not a Java problem. Good luck.

  • Help! coloring background one row for 3 seconds in JTable with SwingTimer

    Hi, I am struggling with this for the past three days but cannot come up with a solution.
    I have a JTable and when i insert a new Row, i want to give that row a backgroundcolor for 3 seconds/ or let it blink for 3 seconds and then let it return to its original background color. While the current row is yellow, i want to insert a new row which also would be yellow for 3 seconds. The previous row would return white earlier than the row after, because that row is inserted earlier.
    the problem is, that when i add a new row while the current row is yellow, the new row has the timer of the previous row, which means that the last row inserted will stay yellow for a shirter time, which i do not want.
    i want a 3 second bgcolor for everyrow inserted. how can i achieve this ?
    My code:
    startBlinking() is called when a new row is being added to the JTable
    public void startBlinking() throws InterruptedException{
    if (timer.isRunning()){
    timer.setInitialDelay(2);
    timer.start();
    ----------------------- in another class:
    //attributes
    Action updateCursorAction = getAction();
    Timer timer = new Timer(3000, updateCursorAction);
    public Action getAction(){
    updateCursorAction = new AbstractAction() {
    boolean shouldDraw = false;
    public void actionPerformed(ActionEvent e) {
    if (shouldDraw =! shouldDraw) {
    blinkingYellow();
    } else{
    blinkingWhite();
    timer.stop();
    return updateCursorAction;
    public void blinkingWhite(){
    receiverdata_Table.setRowSelectionInterval(0, 0);
    receiverdata_Table.setSelectionBackground(Color.white);
    public void blinkingYellow(){
    receiverdata_Table.setRowSelectionInterval(0, 0);
    receiverdata_Table.setSelectionBackground(Color.YELLOW);
    }

    Cant resist to point out the ease of doing something like this in Swingx <g>
    Basically, the way to go is
    - install a Highlighter with the visual property/ies you want to use for the highlighting effect
    - update its HighlightPredicate (aka: condition for applying the property) as appropriate
    Below is a code snippet (as usual runnable as-is in the context of SwingX test support). The candy is, that the exact same highlighting code is re-usable in JXList, JXTree and (probably, should check) JXComboBox
    Enjoy
    Jeanette
    * Created on 17.12.2010
    package org.jdesktop.swingx.renderer;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import javax.swing.Timer;
    import javax.swing.table.DefaultTableModel;
    import org.jdesktop.swingx.InteractiveTestCase;
    import org.jdesktop.swingx.JXTable;
    import org.jdesktop.swingx.decorator.AbstractHighlighter;
    import org.jdesktop.swingx.decorator.ColorHighlighter;
    import org.jdesktop.swingx.decorator.ComponentAdapter;
    import org.jdesktop.swingx.decorator.HighlightPredicate;
    public class DynamicHighlighterExperiments extends InteractiveTestCase {
        public void interactiveHighlightOnInsert() {
            final JXTable table = new JXTable(10, 4);
            final ColorHighlighter hl = new ColorHighlighter(HighlightPredicate.NEVER,
                    Color.YELLOW,  null);
            table.addHighlighter(hl);
            final List<Integer> recentRows = new ArrayList<Integer>();
            ActionListener l = new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    int insertedRow = table.getModel().getRowCount();
                    recentRows.add(insertedRow);
                    ((DefaultTableModel) table.getModel()).addRow(new Object[] {insertedRow});
                    table.scrollRowToVisible(table.convertRowIndexToView(insertedRow));
                    updateHighlighter(hl, recentRows, insertedRow);
            Timer insertTimer = new Timer(500, l);
            insertTimer.start();
            showWithScrollingInFrame(table, "highlight inserted rows");
        protected void updateHighlighter(final AbstractHighlighter hl,
                final List<Integer> recentRows, final Integer row) {
            hl.setHighlightPredicate(new RowHighlightPredicate(recentRows));
            ActionListener l = new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    recentRows.remove(row);
                    hl.setHighlightPredicate(new RowHighlightPredicate(recentRows));
                    ((Timer) e.getSource()).stop();
            Timer removeTimer =  new Timer(1500, l);
            removeTimer.setRepeats(false);
            removeTimer.start();
        // PENDING JW: move into swingx zoo of predicates
        public static class RowHighlightPredicate implements HighlightPredicate {
            List<Integer> rows;
            public RowHighlightPredicate(Collection<Integer> row) {
               rows = new ArrayList<Integer>(row);
            @Override
            public boolean isHighlighted(Component renderer,
                    ComponentAdapter adapter) {
                int modelRow = adapter.convertRowIndexToModel(adapter.row);
                return rows.contains(modelRow);
        public static void main(String[] args) {
            DynamicHighlighterExperiments test = new DynamicHighlighterExperiments();
            try {
                test.runInteractiveTests();
            } catch (Exception e) {
                e.printStackTrace();
    }

  • Setting a background for a column in JTable

    Hi there
    i want to set a background for a specific column in my JTable
    any help ...?
    Thanks

    Check the following thread, there you'll find the cell renderer that you may change according to your needs.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=298191

  • Bookmarking Popup: No Keyboard Access for Bookmark's OK or Cancel

    Hi Experts,
    We have an accessibility issue in our captivate courseware: upon the bookmark pop-up appears, the "tab key" can navigate the pop-up however there's no keyboard key assigned for OK or Cancel button. The Enter key do not work for both which becomes an issue for accessibility.
    Kindly let me know if I'm missing something here.
    Thanks all,
    RJ

    I just created a dummy project and tested this.  Spacebar does NOT work on a highlighted button in this dialog.
    I had hoped that maybe CpGuru's bookmarking widget would work better for accessibility here: http://www.cpguru.com/adobe-captivate-5-bookmark-widget/
    But when I tried out the demo on his website I couldn't get it to work from the keyboard either.
    I suggest you log an enhancement request for this.  It would certainly appear to be an accessibility issue.

  • Detecting clicked column in JTable (with JCheckBox in column)

    I am struggling with something that seems like it should be so simple, but it doesn't work as I expect;
    I have a table with 5 columns, the 5th column is a CheckBox. What I need to do is detect when the 5th column changes, ie. the check box is clicked;
    If I use a MouseListener on the table, and derive the table from the event, the column that I get back from getSelectedColumn() is -1, which is not conclusive. I assume this is because clicking the check box is not actually selecting the column.
    I implemented a TableModelListener as follow;
    tableModel.addTableModelListener(new TableModelListener()
    public void tableChanged(TableModelEvent e)
    System.out.println("Changed Column is " + e.getColumn() + " " + e.getFirstRow());
    This seems to do the same as before, and gives a first row of 0 and selected column of -1. Once again inconclusive.
    The cell as I say is rendered as a JCheckBox, the data in the table model obviously being Boolean.
    Can anyone suggest how I can determine if my column with a Check Box in has been clicked, and if so, which Row? (I have thought about overriding JCheckBox, but this seems more work than necessary)
    Thanks in anticipation

    You need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html]
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on
    the information provided.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting] so the posted code retains its original formatting.

  • Get min and max for a column from table with 24 million rows.

    What is the best way to re-write the following query in a procedure for the table which has around 24 million rows?
    SELECT MIN(ft_src_ref_id), MAX(ft_src_ref_id )
    INTO gn_Min_ID, gn_Max_ID
    from UI_PURGE_FT;
    Thanks
    Edited by: tcode on Jun 21, 2012 12:31 PM

    Which of the following plan is better, can you please breifly explain?
    Also I need to gather statics to know recursive calls , db block gets ,consistent gets etc. etc. how can I get that?
    Thanks
    1.
    Execution Plan
    Plan hash value: 3702745568
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 6 | 13991 (2)| 00:02:48 |
    | 1 | SORT AGGREGATE | | 1 | 6 | | |
    | 2 | INDEX FAST FULL SCAN | UI_PURGE_FT_PK | 23M| 136M| 13991 (2)| 00:02:48 |
    2.
    Execution Plan
    Plan hash value: 1974183109
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | | 2 (0)| 00:00:01 |
    | 1 | SORT AGGREGATE | | 1 | 6 | | |
    | 2 | INDEX FULL SCAN (MIN/MAX)| UI_PURGE_FT_PK | 23M| 136M| 2 (0)| 00:00:01 |
    | 3 | SORT AGGREGATE | | 1 | 6 | | |
    | 4 | INDEX FULL SCAN (MIN/MAX)| UI_PURGE_FT_PK | 23M| 136M| 2 (0)| 00:00:01 |
    | 5 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------------

  • Gui for html pop up window with word editor

    Hello,
    I have to create iView with SAP transaction. But when iView is launch, and I try tu start my program in this case. This program create word file and open it, and when it happened the error is: Error while creating OLE object!  This isn't happened in GUI for Windows, and it works fine. Is this any icf configuration?

    HI,,
    i didnot get ur question rightly.
    but all the std forms use the same techniques . like in a medruck form u store fileds from ADRC,MARA,MARM ,EKKO,EKPO,LFA! tables.. and u display the same.....................

  • Column TimeStamp(6)  with Default Values

    Hi
    How can I put a Default Value in coluMn TIMESTAMP(6) , without to use
      CAST(SYSDATE AS TIMESTAMP(6) Thank you in advance

    SQL>  create table t (t1 timestamp default systimestamp)
    Table created.

Maybe you are looking for

  • How to have fact and dimension which are not joined in same report

    Hi All, suppose we have 2 dimensions and 1 of them is joined to fact but we want to pull both these dimensions along with fact and fact column shows null but we dont want that .how can we have 2nd dimension which is not joined to fact in the same rep

  • How to setup WPA2-PSK on aironet 1602 i

    I have an AIR-SAP1602I-A-K9 WAP and I am interested in configuring it for WPA2-PSK security for WAP access.  I don't see a way to do this in the GUI, does this model support that type of security?  Thank you.

  • Missing render file/project will not render

    I'm new to using FCE - just got my iMac with FCE pre-installed a few weeks ago - and have run into a big problem with current project. When I open the program, it tells me one render file is offline and I can reconnect or continue. I have no idea whe

  • Remove applications from the "open with" menu

    How do you remove applications from the "open with" context menu? I seem to have one instance of a program for every time it was "updated." So my "open with" menu has about 8 instances of Adobe Acrobat, 3 or 4 of Word, etc. It's obnoxious and cumbers

  • Solaris 10 guest drive limitations

    Anyone know off hand if there are size limitations for a solaris 10 guest on ovs? Seems like the limit for ide drives is 800 gig. Thanks,