Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Any serious Java GUI applications?  RSS feed

 
aruna makhija
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can much be done with Swing without the result being a heavyweight memory and resource hog?
Is AWT relevant ?
Is SWT the answer to all problems?
Can we mix SWT and Swing?
 
Murtaza Hussaini
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by aruna makhija:

Is SWT the answer to all problems?
Can we mix SWT and Swing?

You might find this interesting:
http://www.jgoodies.com/freeware/metamorphosis/index.html
I had mixed SWT and Swing, sort of loose integration between a Swing app with eclipse. But the Swing part does stand out. Also, see
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/faq.html#swinginswt
Originally posted by aruna makhija:

Can much be done with Swing

http://java.sun.com/products/jfc/tsc/sightings/S14.html

Raj
[ March 26, 2003: Message edited by: raj madhuram ]
[ March 26, 2003: Message edited by: raj madhuram ]
 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think 'sun' defenitely caring about speed and memmory usage of swing.
basha
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!