Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

swings  RSS feed

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

In Core Java2,Horstmann says the following statement about the swings.Can anybody please elaborate this statement.

" The JFrame is one of the few Swing components that is not painted on a canvas. Thus, the decorations (buttons, title bar, icons, and so on) are drawn by the user's windowing system, not by Swing.
"

Also he mentions that AWT is known as SWT in Eclipse.Is there any difference between the two?
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Samarth Barthwal:
Hello everybody,

In Core Java2,Horstmann says the following statement about the swings.Can anybody please elaborate this statement.

" The JFrame is one of the few Swing components that is not painted on a canvas. Thus, the decorations (buttons, title bar, icons, and so on) are drawn by the user's windowing system, not by Swing.
"

Also he mentions that AWT is known as SWT in Eclipse.Is there any difference between the two?



1. That statement about JFrame is not completely correct. Take a look at the the two frames created by this:

Method setDefaultLookAndFeelDecorated is "just providing a hint", but you will probably see two different title bars. The first is drawn by your OS and the second by Swing.

2. SWT is not AWT. It is a separate API, but its approach is closer to AWT's that to Swing because it lets the native OS provide the widgets rather than giving Java the task, as Swing does.

3. Why do some posters refer to Swing as Swings? Who started that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!