• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT Book - Proper Methods vs Tutorial Methods  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of my biggest complaints about Swing books is that none of them hit on the proper way to code a Swing application. A lot of the reason for this is because Sun has never released such a specification. So I don't know if anyone even knows if there is a right and wrong way.

How does your book handle this with SWT/JFace? Do you use proper coding methods? Is there even a specified "proper" way? Does SWT inherently force you to do things the right way? Because Swing sure doesn't.
 
Rob Warner
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe that there's one proper way to code SWT or JFace applications, and I know of no
official
way. We realized, however, that for many our book would constitute their first exposure to SWT, and that the code used could easily assume some sense of being official in their eyes. Toward that end, we tried to use a coding style and structure that works well in the real world.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you show different examples for all the components you discuss or do you build on one application gradually adding components to it?
 
Rob Warner
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops--I didn't realize that the quote metatags would be handled that way. Sorry--I hope the above post is readable enough. :roll:
 
Rob Warner
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We show different examples for each component, so that readers can understand the specific component without having to dig through other code. Recognizing, however, that readers will also want to understand how the various components work together, we built some bigger examples that use several different components working together.

Because of space constraints, not all the bigger examples are discussed in depth in the text. They're explained, however, and all code is available for download from the Apress web site.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!