Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Any serious Java GUI applications?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think 'sun' defenitely caring about speed and memmory usage of swing.
basha
 
Saloon Keeper
Posts: 25466
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic