• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

swing

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is swing basically? how it is differ from awt?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sampurna:
What is swing basically? how it is differ from awt?
[A]
A swing is a Lightweight component where as an awt is a heavy
weight component. what is this light weight component and heavy
weight component. i will give you a simple example with this i
hope you will be expertise.
if you develop a simple frame with user name and password as a
fields in the frame when you compile and run the programs your
will get some out put say hai etc. but what the thing here is
that when you run the same frame in windows the look and feel
will be different and on unix it will be different and motiff it
will be defferent i.e the text fields will look different omn
different operating systems.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to add smth. more to the last message.
"Heavyweight" means that component is not written in pure java and uses native to current OS code. Swing generally consist of "lightweight" components, written in Java only.
But still extends AWT adn container classes, for example JFrame has a native code. and Applet class also..
It is not good practice to mix different components in one application. For example labels can be sometime visible on many tabs instead of one and so on...
alex from javafaq.nu
daily tips and advices
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ur suggestion that "heavy weight components r developed in native os",but i think all the java packages r written in java itself.only the jvm(interpreter) is written in c++.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic