• Post Reply Bookmark Topic Watch Topic
  • New Topic

To be convenient in downloading SWT Library to test the application in sample chapter  RSS feed

 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about others. As for me, I found it's a bit difficult to find the SWT library in Eclipse.org site. I tried to find it by surfing the Eclipse.org site for several minutes and finally I gave up... Then I came out of that site and googled using "SWT library download"... Finally I can find it on Google... Now I am reading the sample chapter(chapter-3) to introduce myself with SWT...

FYI, here is the link to SWT Library Download...

Just my 2 cents...

P.S., in the HelloWorld example of chapter-3, why don't we need to listen to the WindowsListener like in Swing? Events like closing windows... Or is it available as default in Display class? Or in Shell?
[ July 08, 2004: Message edited by: Ko Ko Naing ]
 
Rob Warner
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put an event handler on the close event for the window, but you don't have to. The shell knows that if the user tries to close it, it should close.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Warner:
You can put an event handler on the close event for the window, but you don't have to. The shell knows that if the user tries to close it, it should close.


Cool! But if I am wrong, JFrame needs manual adding of WindowsListener to it... At least setDefaultCloseOperation(int operation)... But SWT's shell already knows about it... That's cool, coz it's less coding...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!