answersLogoWhite

0

The basic difference between Swing and AWT is that Swing APIs are purely Java libraries i.e. they don't at all depend on the native libraries to draw graphical components. Because of this feature they provide a consistent look and feel on all platforms. AWT libraries require the support of native graphics libraries and some of their GUI components look different on different platforms. Moreover, Swing components are not inherently Thread safe, you explicitly have to write synchronized code to manipulate or redraw them whereas AWT components can be trusted in a multithreaded environment. AWT Components are called heavyweight components because of their dependency on native libraries. Swing components are called lightweight due to their independence of native libraries. Hence Swing operations are much faster because each and every operation is taken care by the Java runtime env and no delegation of events or commands to the native libraries is required.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Difference between electronics components and the schematic symbols?

difference between electronics components and the schematic symbols


How many weight classes in UFC mixed martial arts?

fly weight 116-125pounds bantamweight 126-135pounds featherweight 136-145 lightweight 146-155 welterweight 156- 170 middleweight 171-185 lightheavy weight 186-205 heavyweight 206-265


What is difference between biotic and abiotic components of the environment?

The difference between an abiotic and biotic enviorment is an abiotic enviorment had living organisms in it while a biotic enviorment contains nonliving organisms.


difference between simple and fractional distillation?

The key difference between fractional and simple distillation is that fractional distillation is used when the components in the mixture have closer boiling points, while simple distillation is used when the components in the mixture have a large difference in their boiling points


What is the difference between a mural and a banner?

A mural is a painting on a wall. A banner is a lightweight sign that can be easily moved to any location.


What is the major components of the photosynthesis process?

What is the difference between a deciduous plant and an evergreen plant


What's the difference between a jacket and coat?

A jacket is a lightweight outer garment. A coat is a bit heavier and longer for the winter months.


What is the difference between complex and complicated?

The difference between complex and complicated is that 'complex' refers to many different components, whereas "complicated" refers to a high level of difficulty.


What is the base for separating mixtures using a centrifuge?

This procedure is based onto the difference between components densities.


What is the difference between a homogenous and a heterogenous mixture?

A principal difference between solid phases is the crystal structure, or arrangement, of the atoms


Is there a difference between intake and exhaust hydraulic valve lifters?

No the lifters themselves are all the same. I recommend lightweight pushrods though if you can get them and stay with hydraulic.


What is the difference and simple?

The difference between two things means how they are not the same. It highlights the distinctions or contrasts between them. Simplifying a concept means breaking it down into its basic components to make it easier to understand.