Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT, why abstract?

 
dipa doke
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Can anyone tell me why Abstract Windowing Toolkit is called Abstract?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch dipa.

We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name accordingly. You can do so by clicking here.

Thanks a bunch.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not real sure why. That's a good question. There don't appear to be a numerous amount of abstract classes in the java.awt package. My guess would be that when they were designing the toolkit, they used the word abstract to mean a generic toolkit that was probably intended to have something built on top of it. I don't think AWT's term abstract is meant to mean the same thing as an abstract class.

But that is just my opinion.
 
dipa doke
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot Gregg. Can anyone add to this? Please reply.
 
Jean S´┐Żbastien
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is called Abstract because it is an abstraction of the underlying system (windows, linux, mac os...) actually displaying the components.

When you use an AWT component, for example a Button, Java uses native libraries to display the button (think of something like "Windows.displayButton(myButton)" or "Linux.displayButton(myButton)").

The underlying system provides the "concrete" implementation for the "abstract" AWT component.
 
dipa doke
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey thanks, Jean. Thats a good one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic