The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

TAB-Event

Posted by Judith Mertens on June 08, 2001 at 9:46 AM

> hi judith,

> i'm not sure if this could be the solution: try to implement a KeyListener and catch the tab with if(event.getSource().getName().equals("\t"){ doHighLight();}

> greatings


Thank U 4 answering - but i implemented a keylistener and ask for the key-event if it's equal to KeyEvent.VK_TAB. All other key-events are coming through to my listener, but the tab-event gets consumed somewhere before. i think it is the focusmanager, but it don't how to tell him, that he should not not steal this f**ing tab-event. i even override the isManagingFocus-Method in my panel but i had NO effect. Thank U NEway



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us