19:58
Romain Guy
why are AWT components called heayweight
19:58
» and Swing ones lightweight?
19:59
Jeff Dinkins
AWT components were originally all native components, a native widget was instantiated for each object
20:00
» with swing there's only one native component (the window)
20:00
» that's basically it
Romain Guy
ok that's what I thought
20:01
» There is this guy on a forum
20:01
» that thinks that because of those names Swing is necessarily faster and ligher in memory than AWT
20:01
» lighter
20:02
Jeff Dinkins
not necessarily. Back in the old days, there were other concerns as well, such as on windows there was some kind of limitation as to how many native widgets you could instantiate
» I don't remember the exact number, but I doubt that's an issue any more
» and of course, the biggest issue was that with native widgets we can't intercept drawing and/or draw on top of them
» I once had a java bug where an app was throwing up hundreds of windows, and eventually you'd get the blue screen of death -- of course we were running into that native windows limit
Partager