Current location - Trademark Inquiry Complete Network - Trademark inquiry - What is the difference between java awt and swing?
What is the difference between java awt and swing?

Relevance to the local system. . All functions of JDK writing programs rely on virtual machines to operate local operating systems, such as windows. . It means that JDK uses windows API to implement your functions

And many components in the awt package use the components themselves to call the local operating system code

The components in the swing package use the method of calling the local virtual machine , the virtual machine then calls the local operating system code. .

It means that there is an extra layer in the middle, which strengthens the portability of the swing package and does not have a strong relationship with the local environment