[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Newbie-Question: JFace Actions with SWT Controls

If you don't mind spending a bit of money, buy this book:

The Definitive Guide to SWT and JFace
Rob Warner with Robert Harris
Published by Apress

I have it on my desk right now, and it takes you through all you could ever want to know. So long as you're a fairly competant programmer, it should be easy to whip through the book and learn all about the way it fits together.

Most objects have specific listeners and such, but you often find you can add more generic ones as well. i.e. addListener(Listener l) instead of addSpecialisedTypeOfListener(SpecialisedTypeOfListener l).

Greg

Christian Schlaefcke wrote:
Hi Folks,

I just started getting familiar with SWT/JFace. I found a few articles at www.javaworld.com and downloades the two sample chapter from the "SWT/JFace in Action" book. I played around with the event model of JFace and found that I can only use it with the menu-, toolbar-, statusline components.

But what about the rest of my application? Is the jface event model not applicable on my pushbuttons, listboxes, etc.? Do I have to use the SWT event model for that. If so, I wonder what the goal of JFace is. As IÂm pretty new to this subject at all, I also wonder if I missed some of the main concepts of JFace. Is it just a toolkit for designing the mainframe of an application and some of the major components (TableView, TreeView)?

It would be nice if somebody could help me understanding this or point me to some good articles.

Thanks & Regards,

Chris