Java AWT tutorial for beginners

667 views
optmiize_your_resume_1

Java AWT  (Abstract Window Toolkit). It is a platform dependent API for creating Graphical User Interface (GUI) for java programs.

Java AWT components are platform-dependent i.e. components are displayed according to the view of the operating system. AWT is heavyweight as its components are using the resources of OS.

Why AWT is platform dependent? 

Java AWT calls native platform (Operating systems) subroutine for creating components such as textbox, checkbox, button, etc. For example, an AWT GUI having a button would have a different look and feel across platforms like Windows, Mac OS & Unix, this is because these platforms have different look and feel for their native buttons and AWT directly calls their native subroutine that creates the button. In simple, an application build on AWT would look like a windows application when it runs on Windows, but the same application would look like a Mac application when runs on Mac OS.

The java.awt package provides classes for AWT API such as TextField, LabelTextArea, RadioButton, CheckBox, Choice, List, etc.

JAVA AWT HIERARCHY

Java AWT tutorial for beginners
Java AWT Hierarchy

20%off for Ink 280 281

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More