Mr_Hmp
Mr_Hmp

Reputation: 2535

What is ABSTRACT in AWT

Can some one please explain me what is the Abstract means in Abstract Window Toolkit?

Is it related to Abstract (incomplete definition)?

Upvotes: 2

Views: 265

Answers (3)

Rahul Tripathi
Rahul Tripathi

Reputation: 172568

As stated by Jean Sebastien in his forum post here:

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.

Upvotes: 2

Reimeus
Reimeus

Reputation: 159844

It is abstract in that it has a level of abstraction over the underlying native user-interface. For example, creating an AWT check box would cause AWT directly to call the underlying native subroutine that created a check box.

It is "incomplete" in so far as the user does not need to create components on the native level OS using calls such as CreateWindowEx on Windows Platforms for example.

Upvotes: 1

davidrac
davidrac

Reputation: 10738

It is not related to Abstract (incomplete definition). It is Abstract in the sense it is not related to OS or a specific windowing system.

Upvotes: 0

Related Questions