dcsimg
JEditorPane Tab
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dave_Hewitson
Posted On:   Thursday, August 15, 2002 01:20 AM

Does anyone know how to make pressing Tab in a JEditorPane set the focus to the next component like JTextField does?

I know this can be achieved with Ctrl-Tab, but as I have no use for tabs, I would like to have consistency so the user can tab across all components.

I am using JDK 1.2.2 in VA4 Pro Entry.

Thanks

Dave

Re: JEditorPane Tab

Posted By:   Mike_Friedrich  
Posted On:   Thursday, August 15, 2002 11:24 PM

You have to remove this key from the JEditorPane's keymap. To do this look into API (i don't know it exactly ;)

Look for addKeymap() getKeymap() Keymap.addActionForKeyStroke() Keymap.removeKeyStrokeBinding() or similiar stuff.


Regards, Mike

About | Sitemap | Contact