Swing or SWT

Ecuador
September 8, 2008 10:45pm CST
I worked with swing several years ago, I think is a great api to create desktop applications, but in those times it was very slow when the jvm run on a computer with low resources. I have heard about SWT, many sites talk very good about it, what can you tell me, it would be to change to SWT only for the time of response for the desktop application ?? but with the techical advance it is possible nowadays to get a great pc (core 2 duo) to run the old swing applications without no problem. What about the new applications, the way to programing SWT is similar to Swing ??? or is total different ??? what other advantage has SWT ??? Regards
1 person likes this
1 response
@mr_mlk (364)
22 Sep 08
I've never got on with SWT (the API). It always came across to me as ugly and clunky compared to Swing. SWT is not that much faster either IMO, a well writen Swing application matches a well written SWT application. Anyway really it does not matter, select the API you like and the backing tech you like then use SwingWT and SWTSwing to tie them together.
1 person likes this
• Ecuador
22 Sep 08
yeah you are right ... so which are the best pratice to program with Swing ?? to make it faster than SWT ... have you follow some rules when you wrote Swing application ???
1 person likes this
@mr_mlk (364)
26 Sep 08
Nothing special, just follow good practices. Keep a nice clean separation of layers, don't do much in the event thread you don't have to (and do do what you do have to).