hi, Yes it is correct that the Java Windows based Application are much heavier and slower than that of VB and Delphi. Sun had developed AWT components in their 1.1 version of jdk. Those AWT components are designed in other languages and use native methods a lot. In the newer version of jdk, they have developed a more efficient version of windows components which are itself designed in Java. They are much faster, efficient and light weight( in fact, they are famous as LightWeight components ) that is Swing components. Thanks
Sometimes the problem with Swing apps is that the people making them don't know how to make them perform well... ( I'm reading the book "Java Platform Performance" right now, and it covers some things to look out for when using Swing... ) But yes, Swing does tend to take up a lot of memory while running... well more than VB, etc.
AWT can still be used, if you are doing a simple GUI it's fine. Also, for some types of things, AWT is preferred. Applets for one. Personal Java devices also. (I recently had to re-remember AWT when I started programming on my Zaurus...)
I *think* you may be able to mix SWT and Swing... however I have heard the results sometimes work and sometimes don't...
I am trying to get up to speed on how to use SWT and looking for tutorials and such. From the small programs I have worked with it seems that SWT is harder to use(manual de-allocation of resources, etc.), but I am used to programming in Swing more, so maybe it's only hard because I am 'un'-learning Swing...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Originally posted by aruna makhija: Can much be done with Swing without the result being a heavyweight memory and resource hog?
You be the judge: Here's what I did with Swing. Personally, I feel that Java is pretty much a memory and resource hog whether it's invoking a GUI or not, but the above app (EJBWizard) has been run on a 128MB P-200 machine for serious software projects.
Loudly announcing something is true and finding out you're wrong makes you feel foolish.
Finding out you're wrong and refusing to admit it makes you LOOK foolish.
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad: