Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » is there any methods in swt like JComponent.processKeyEvent(KeyEvent e) ?
is there any methods in swt like JComponent.processKeyEvent(KeyEvent e) ? [message #446229] Sun, 21 November 2004 06:37 Go to next message
Eclipse UserFriend
Originally posted by: hi_zjy.yahoo.com.cn

hi all,

in awt, there's JComponent.processKeyEvent(KeyEvent e) to Processes key
events occurring on this component by dispatching them to any registered
KeyListener objects.
is there any similiar method in Canvas/Composite/Control/Widget is swt?

Thanks!
Re: is there any methods in swt like JComponent.processKeyEvent(KeyEvent e) ? [message #446231 is a reply to message #446229] Sun, 21 November 2004 14:24 Go to previous message
Eclipse UserFriend
Originally posted by: micasim.gmx.de

On Sun, 21 Nov 2004 06:37:42 +0000 (UTC), Harry Chang
<hi_zjy@yahoo.com.cn> wrote:

> hi all,
>
> in awt, there's JComponent.processKeyEvent(KeyEvent e) to Processes key
> events occurring on this component by dispatching them to any registered
> KeyListener objects.
> is there any similiar method in Canvas/Composite/Control/Widget is swt?
>
> Thanks!


org.eclipse.swt.widgets.Control.addKeyListener
(org.eclipse.swt.events.KeyListener)
KeyListener.keyPressed (org.eclipse.swt.events.KeyEvent)
KeyListener.keyReleased (org.eclipse.swt.events.KeyEvent)

see also: org.eclipse.swt.events.KeyAdapter

hope this helps,
Michael
Previous Topic:UnsatisfiedLinkError in "Welcome" cheatsheet Standalone SWT app
Next Topic:-> TableTreeViewer and CheckBoxCellEditor
Goto Forum:
  


Current Time: Tue Oct 20 01:59:21 GMT 2020

Powered by FUDForum. Page generated in 0.01253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top