مقایسه java.awt و javax.swing

  1. java.awt and java.swing contain all of the classes for creating user interfaces.
  2. The methods of java.awt package are  native methods. They are inherited from C or C++ package. C in platform dependent. the components created by these methods are also dependent on a platform. Example: the button in Windows  OS  in not same as the button create in the Unix operating system.
  3. java.awt package is a heavy weight. It takes more resources to execute these methods.
  4. java.swing uses less memory and it is platform independent.
نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد