Re: [Cxtable-devel] RE:Swing....
Status: Alpha
Brought to you by:
xiarcel
From: Borne Goodman-M. <bj...@pe...> - 2001-11-17 01:28:00
|
Swing has it's ups and it's down, and if performance is the primary concern then it is probably better to do all the work in the AWT, and build your own custom components for the more complex graphical constructs. Other than for very complicated graphics, I haven't seen the GUI's performance end up being an issue. Swing is very good for a few things, and one is it's distance from the native (peer) implementation. I have done a lot of cross-platform work, and using straight AWT usually causes the look and feel of your app to be different from one platform to another. By using Swing you can get the same look across all platforms, and that is a huge gain. Swing also has been designed to be implemented using the MVC (Model-View-Controller) paradigm, making it easier to design a well structured GUI. Swing also has a lot of fairly complex GUI constructs build already, such as the JTree, JTable, JTabbedPane, etc, etc, and It's TextPane also allows for nice font control, HTML rendering, colored text, etc.. So, tons of reason to migrate to Swing, and performance as the main reason not to, and with systems becoming so much more powerful every day, performance isn't much of an argument anymore. --bjgm ----- Original Message ----- From: "Williams, David" <DAV...@ca...> To: <cxt...@li...> Sent: Friday, November 16, 2001 4:34 PM Subject: [Cxtable-devel] RE:Swing.... > Borne, > > Is Swing that much better than AWT? > > I ask that question, because I wonder if I've been keeping myself from some really wonderful java packages in error... > > My impression of Swing (that I have gleaned over the past few years) is that it can be bulky, and mis-used in places...and that it can slow down response times dramatically..due to the fact that AWT ties in much more closely with the native-peer... > > Is that impression wrong? Do the benchmarks for well-written applications in AWT not come in notably different than those for well-written Swing? In that case, I would love to switch...although I must admit that I will need some pointers on this... > > Thanks alot, > Dave |