Ctrl+tab is not working in editing mode

I have JcheckBox and JTable in my JPanel. When user clicks or presses F2 to edit any cell value of the JTable a comboBox will appear with possible values. (This comboBox is coming from table CellEditor). When user presses ctrl+tab from the table focus should transfer to JComboBox all time. It is working only when the user presses ctrl+tab from the table cell which is not in editing mode. If the user presses ctrl+tab from the table cell which is in editing mode (i.e. focus is on the ComboBox of the cellEditor) it does not work. Please help me to find the solution.
I give a sample code here for your reference.
public class Frame1 extends JFrame {
public Frame1()
super();
this.setLayout( null );
this.setSize( new Dimension(400, 300) );
JTextField ch = new JTextField();
ch.setVisible(true);
ch.setBounds(10, 10, 10, 10);
this.add(ch, null);
DefaultTableModel tmodel = new DefaultTableModel(3, 1);
tmodel.setValueAt("0 0 1",0,0);
tmodel.setValueAt("1 0 1",1,0);
tmodel.setValueAt("2 0 1",2,0);
JTable custLayersTable = new JTable(tmodel);
custLayersTable.getColumnModel().getColumn(0).
setCellEditor(new ComboEditor());
custLayersTable.setBounds(new Rectangle(40, 40, 280, 145));
custLayersTable.setSurrendersFocusOnKeystroke(true);
this.add(custLayersTable, null);
public static void main(String[] args)
Frame1 a = new Frame1();
a.setVisible(true);
final class ComboEditor extends AbstractCellEditor
implements TableCellEditor
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Vector<String> layerValSet = new Vector<String>();
for(int i=0; i<3; i++)
layerValSet.add(row+" "+column+" "+i);
mComboModel = new DefaultComboBoxModel(layerValSet);
mComboModel.setSelectedItem(value);
mEditorComp = new JComboBox(mComboModel);
return mEditorComp;
public Object getCellEditorValue()
return mEditorComp.getSelectedItem();
private DefaultComboBoxModel mComboModel;
private JComboBox mEditorComp;
}

Thanks a lot for your reply.
Since the textField is in a different class i could not use the transferFocus API directly. I tried the following code in the keyreleased event of Combo Box but it was not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(
e.getComponent().getParent());
I also tried the following code in stopCellEditing and is not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();
Is there any other way to achieve this?

Similar Messages

  • Mouse not working in edit mode

    I have version 4.0.1 on a Windows 95 machine, and I am having problems editing any VI. If I click on an item nothing happens, I cannot move it or delete it. I can add items but once they are placed, I cannot do anything to them using the mouse. For example, I can place an indicator on the front panel, but once it is down, I cannot move it or select with the mouse. If I right-click on it and hit 'Find Terminal' it will select the item in the diagram, and from there I can move it with the arrow keys or delete it with the backspace key, but once I click away from it, I am powerless again with the mouse. This makes it very difficult to move items and especially place wires.
    This happens for VIs other people have written and VIs I create myself. If I double-click on a SubVI, it will open that SubVI, but single-clicking does nothing.
    Thanks

    cchriste wrote:
    So the thinking here is that if it ain't broke don't fix it.
    Guess what - it's broke.
    For what it's worth, LV 8.x should be able to open VIs saved in LV 4 and run them without problems. You might get all kinds of notifications about changes that were made and if you're using some hardware stuff, it could potentially break, but it should basically work.
    That said, you will need to test it after porting to see that everything still works the same.
    Another point to consider is that the environment in LV 8 is somewhat different from that of the older versions. However, if you've only been doing this for a couple of months, you should probably be fine.
    By the way, I suppose that you might be able to use LV 4 on a newer version of Windows (at least if you're not using any magic hardware and maybe even in that case). You might wish to talk to your local NI office about this.
    Try to take over the world!

  • I cannot past with the lastest version. CTRL V does not work either

    I cannot past with the the most recent version released today. CTRL V does not work either
    == This happened ==
    Every time Firefox opened
    == When my system updated the newest version today

    Issues with the right-click context menu not working can be caused by the [http://toolbar.yahoo.com/ Yahoo Toolbar] (Tools > Add-ons > Extensions)
    See:
    [[Troubleshooting extensions and themes]]
    http://support.mozilla.com/en-US/forum/1/380010
    https://support.mozilla.com/en-US/forum/1/552540?
    https://support.mozilla.com/en-US/forum/1/472971
    Also see:
    https://support.mozilla.com/en-US/kb/Clipboard+not+working
    http://kb.mozillazine.org/JavaScript#Advanced_JavaScript_settings
    http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. ~~red:1.5.0_02 (very old)~~; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html
    <u>'''You '''</u>~~red:<u>'''MAY'''</u>~~<u>''' need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Open the Adobe Reader installed on your system (''in Windows, Start > Program Files, find and click Adobe Reader to open''), click Help, click Check for Updates. Allow the download/update to occur. If you use this method, no need to proceed with the instructions below, <u>'''but'''</u> do look at the two bulleted items at the bottom "'''<u>NOTE for IE:</u>'''" and "Also see:". Restart Firefox and check your new version here: http://www.mozilla.com/en-US/plugincheck/
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -In Windows: check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -In Windows: double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • I have updated latest version 29.0 firefox in windows 7 machine. All the UI looks fine. Undo close tab is not working for me. Is that not been addressed?

    Undo Close tab is not working in windows 7 for firefox latest version 29.0

    You can do this via CTRL + SHIFT +T as well.
    Can you try to start Firefox in Safe Mode to see if Firefox works properly with no error? You can start Firefox in Safe Mode below:
    *'''Windows/Mac''': Go to Help > Restart with add-ons disabled
    *'''Linux''': Run ''firefox -safe-mode'' in the Terminal/Konsole
    If Firefox opens up fine with no problems, it's probably one of your extensions that's causing the issue. You can re-enable your add-ons one by one until you find the one that causes the issue upon being re-enabled.

  • New tab (+) is not working after upgrading forefox to v 23.0.1

    I had firfox version 22 i guess...Now today morning, I upgraded it to v 23. It displayed a message that one of the plug-in is not compatible with it and so wud be disabled. now later on I again downloaded the plug in to check whether its working or not but neither it worked (as I had already guessed) nor its showing in the add-ons or plug-ins.
    Now I am not getting why the new tab is not working. Not at all. Its so very annoying. I have googled the question and tried resetting firefox and new tab setting in about:config. But nothing helped.
    I think its because of that plug-in as I read somewhere that settings may be getting overridden by one of the faulty add-ons.
    Please help.

    Thanks
    But the problem is still there when I run firefox in safe mode...

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • I can't get the patch select buttons to work in edit mode.

    I can't get the patch select buttons to work in edit mode. When I select any template, the set buttons or the patch buttons don't work at all. My up and down arrows work fine but I need the on screen buttons to be assigned to my footswitch.

    In edit mode, at concert level, select the pedal. Then in the screen control inspector, in the mappings tab, select actions>next patch.

  • Adobe Staff Please Read - Tab Key Not Working in InDesign HTML5 based panel

    Tab Key Not Working in InDesign HTML5 based panel
    Instead of changing focus to next entry field when the tab key is pressed it hides the panel instead.
    UI Nightmare.

    I’m using editable text fields. When I hit tab nothing happens. Focus stays on current text field.
    Mike Baugh • Creative
    Director, Digital Production
    +1 240-662-4442 office
    +1 410-807-1633 mobile
    [email protected]<mailto:[email protected]>
    agency.discovery.com<http://agency.discovery.com/>

  • Ctrl key is not working

    ok I recently bought a used laptop and threw arch linux on it and eventually got everything working correctly. However the ctrl button does not work which each means I can't run awesome commands like ctrl+c and ctrl+d. The best way I have found so far to work around this problem is to use stty to bind commands to some other key. For example stty "somekey" erase. I would like to map the ctrl key to the alt key or possibly the windows/power key.
    How would I look up the symbols for alt and windows/power so that I can use alt or windows/power as ctrl?

    Mr.Elendig wrote:I would rebind caps-lock to ctrl.
    thats cool, I actually found out how to do that in virtual console. I simply switched the keyboard layout to emacs. I'm still having problems changing the keyboard layout in xfce though.
    RADIO EDIT:I actually found out how to change the keys in X using Xmodmap. I think I write a wiki article about this...
    Last edited by Hilariousity (2009-07-23 08:28:17)

  • NTFS is not working in 64bit-mode

    NTFS is not working in 64bit-mode but in 32bit-mode all right !!! ***?!

    dont work int volume with XP and ext volume just sample NTFS file server ! I do not understand ! (((

  • My iPhone will not work in landscape mode anymore, how do i get to work again

    my iPhone will not work in landscape mode anymore, how do i get to work again??

    Double click round home button then slide icon on the bottom of screen to so you go all the way to left.  There you will see a square icon with a circle arrow .  That is the screen rotation control button.  Tap on that to lock/unlock screen rotatio

  • Click on obiee dashboard tabs is not working

    Hi,
    One remote user using cisco vpn to access OBIEE dashboards. everything is all right but when he click on dashboard tabs is not working. I tried with firefox 3.6.0 and IE 8 both have same problem. we dont have this problem within the network. I dont think it's a firewall issue because everything else is working fine. we dont have any custom java script in obiee dashboards. Is it a browser problem? does any one else got this problem before?
    Thanks
    Jay.

    Hi Jay
    Yes Its browser issue. Please make sure the patch updates of IE are updated and i do have the same problem with IE 6 when user remotes (or) use citrix
    One more important point is we have made the dashboards available directly instead of residing in group folder. If you have Dashboards under group folder, give access to that Dashboard directly instead of Group folder
    Eg: Groupfolder A contains A1,A2,A3....A10 dashboards. Give acceess to A1,A2 instead of groupfolder A
    Please mark it Helpful or correct if this solved

  • The option to open a new tab is not working?

    The option to open a new tab is not working?
    I click on the little box but nothing happens?

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • New tab is not working properly as before. if i click on new tab symbol(+),it is not opening.how to make it work?

    new tab is not working properly.ie.,i can not open new tabs in firefox.

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.

Maybe you are looking for