Search This Blog

Friday, September 11, 2009

PART-4 AWT abstract window toolkit

This presentation wil be on AWT(Abstract Window Toolkit) and i bet you again it is much better than any tutorial on awt.

lets give you some introduction

AWT classes form 3 categories:

Graphics
colors, fonts, images, polygons, …
GUI components: buttons, Check box, Scroll bar, …
Container class contains components.
Menus.
Layout Managers
Gives rule for graphical layout of components in a container
Ex: components in grid layout

AWT prsentation

download

It includes:-
1)components consist of container which has panel and other objects of components are canvas,button,checkbox,choice,label,list,scrollbar,window,dialog
2)Window
Top level window without borders,Titlebar,setVisible() makes window visible
a)pack() resizes window to fit components in it
b)dispose() frees resources when window is not needed (Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS )

3) in this presentation you will also know about borderlayout,gridlayout,flowlayout,gridbaglayout

4)ActionListener ,AdjustmentListener ,ComponentListener, ContainerListener,FocusListener ,ItemListener ,KeyListener ,MouseListener ,MouseMotionListener
,TextListener ,WindowListener.

5)MouseEvent - generated by mouse activity
PaintEvent - generated when a component is painted
TextEvent - generated when a text component is modified
WindowEvent - generated by window activity like minimizing or maximizing.

No comments:

Post a Comment