SlideShare a Scribd company logo
  ABSTRACT  WINDOW TOOLKIT
COMPONENT: Is an abstract class which encapsulates all the attributes of a visual components. Include almost 100 public methods in components. Are responsible for managing keyboard input, mouse input and entry/exit etc. CONTAINER: Is an abstract subclass of component, which has an additional methods that allow other components to be nested inside it. PANEL: is a concrete subclass of a component. We can give any kind of behavior and appearance onto a canvas . Eg On a blank canvas we can paint any style component we want.
Label Subclass of Canvas that has an additional functionality of knowing how to paint a particular string aligned inside the bound of label components. These attributes may be manipulated using the getFont/setFont and getForeground/setForeground method pairs. Three constants defined in Label to indicate alignment; LEFT, RIGHT and CENTER.
Button Is a component use to invoke some action when the user presses and releases it. It is labeled with String which can’t be aligned like Label object; (they are always centered inside the button.
Checkbox Is like a Label with a small button next to it that you can click to toggle the state of a check mark. Is often used to select a boolean condition. We can get/set current state of check mark with getState/checkState methods. While constructing checkbox we can use String label and optionally Boolean to specify initial state of check mark.
CheckboxGroup Similar to Checkbox. Allows u to create a group of choices which can only be selected one at a time. getCheckboxGroup/setCheckboxGroup method use to set and get particular group. getCurrent/setCurrent used to get/set currently selected checkbox. Last eg. Using checkboxGroup.
Choice  Is used for creating a pop-up selection menu. A choice component takes up only enough space to show the currently selected item. When user clicks on it, the whole menu of choices pops up and a new selection can be made. Each item in menu is a String which are left-justified label in order they are added to choice object. Method addItem is used to add new string to Choice. Countitem- returns no of items in choice menu. Getselecteditem method- to get currently selected label getselectedIndex method- to get the zero based index integer index.
 
List It provides a compact, multiple choice, scrolling selection list. Its unlike choice object which always show the single selected item in menu.
Scrollbar Is used to select a continuous values between a specified minimum and maximum. The scrollbar class  has number of methods f or different operations. Constructor allows us to specify orientation using constants HORIZANTAL/VERTICAL. Methods getValue/setValue used to get /set current value of a scrollbar. getMinimum/getMaximum used to get minimum/maximum values .
 
TextField It implements a single-line text-entry area,often used for form and other typed user input. TextField constructor allows us to create TextFields of specific character width and default value. Methods setText/getText used to set/get its current value. Method echoCharIsset is used to disable/enable echoing of character.
 
TextArea It is used when single line of text input is not enough for given task. AWT includes a very simple ,plain text , multiline editor called TextArea. Constructor takes string value as a initial text , no of rows and no of columns to be displayed. 3 methods to modify contents AppendText InsertText ReplaceText
 
Layout Means how all of the above discussed components are arranged or laid out on panel. Arrangement of components when size ie. Width or height of component is not available  Manual layout of all above discussed components is tedious. So to overcome above problems, each class uses  LayoutManager   keps track of number of components. Layoutmanager  is notified each time a component is added to panel. Whenever a panel is resized LayoutManager is consulted via minimumlayoutsize or prefferedlayoutsize.
Different layout manager java includes are Flowlayout It  implements simple layout style, similar to how words flow in a text-editor. Components are laid out from the upper-left corner, left to right and top to bottom. When no more components fit on the line, the next one appears on the next line. Each line is either left , right or center aligned using constants LEFT,RIGHT,CENER.
 
ii)Borderlayout It implements a common layout style for top level windows which has four fixed width components at the edges and one large area in center that grows in two dimensions. Each area named with areas North, South, East , West represents four sides and center is the middle area.
 
iii)GridLayout It arranges all the components in a simple uniform grid Constructer is used to define number of rows and columns in a panel layout. Eg 3 X 3 grid with 8 components.
Insets It is used to inset a panel so that it has a bored much like the horizantal and vertical gap in layout managers. In order to  cause a panel to have its edges inset, we should override the inset to return a new instance of Inset with four integer representing the width of the top, bottom, left and right edges. public Insets insets(){ return new Insets(10,10,10,10); }
CardLayout Is unique from other layout managers in that it represents several different layouts that can be thought of as living on separate index cards that can be shuffled so that anyone card is on top at a given time. Used for interfaces that have optional components which can be dynamically enabled and disabled upon user input.
Thank you All

More Related Content

What's hot (20)

PDF
calc lecture
Jelz JZ
 
PPTX
Formula in MS Excel
Muhammad Yasir Bhutta
 
PPTX
Lists
Prateek2530
 
PPT
Electronic Spreadsheets
NeilfieOrit2
 
PPTX
Etech. mitch. [autosaved]
MaridelBajeta
 
PPTX
Advance excel
SiddheshHadge
 
PPTX
Basic computer fundamentals_ Microsoft Excel
Saraswati yadav
 
PPTX
presentationMs excel
Tanveer Ahmed
 
PDF
Excell%20basic%20training(3) 143
Ramesh Meti
 
PDF
SumIf Function - Marelen Talavera - Vivacious Analytic
Maria Elena Acdol-Talavera
 
PPT
2.20 Spreadsheets
EndOfTheWorld
 
PDF
Libre office calc
Miguel Angel Romero Ochoa
 
PPT
Graphing Calculator
Indian Hills Middle School
 
PPTX
03 Excel formulas and functions
Buffalo Seminary
 
PPT
Advanced Excel ppt
Sudipta Mazumder
 
PDF
Excel%20basic%202 123
Ramesh Meti
 
PPT
Tree user interaction
Hemakumar.S
 
PPTX
ch 9
Uzair Javed
 
PPT
Session 3 Bai 3 ve winform
mrtom16071980
 
PPT
Getting Started With XLSIM
analycorp
 
calc lecture
Jelz JZ
 
Formula in MS Excel
Muhammad Yasir Bhutta
 
Lists
Prateek2530
 
Electronic Spreadsheets
NeilfieOrit2
 
Etech. mitch. [autosaved]
MaridelBajeta
 
Advance excel
SiddheshHadge
 
Basic computer fundamentals_ Microsoft Excel
Saraswati yadav
 
presentationMs excel
Tanveer Ahmed
 
Excell%20basic%20training(3) 143
Ramesh Meti
 
SumIf Function - Marelen Talavera - Vivacious Analytic
Maria Elena Acdol-Talavera
 
2.20 Spreadsheets
EndOfTheWorld
 
Libre office calc
Miguel Angel Romero Ochoa
 
Graphing Calculator
Indian Hills Middle School
 
03 Excel formulas and functions
Buffalo Seminary
 
Advanced Excel ppt
Sudipta Mazumder
 
Excel%20basic%202 123
Ramesh Meti
 
Tree user interaction
Hemakumar.S
 
ch 9
Uzair Javed
 
Session 3 Bai 3 ve winform
mrtom16071980
 
Getting Started With XLSIM
analycorp
 

Similar to java (20)

PPTX
AWT.pptx
MumtazAli889808
 
PPT
Windows Programming with AWT
backdoor
 
DOCX
Maliram poonia project
Apex institute of engineering & technology
 
PPSX
Dr. Rajeshree Khande :Introduction to Java AWT
DrRajeshreeKhande
 
PDF
Ajp notes-chapter-01
JONDHLEPOLY
 
PPTX
tL19 awt
teach4uin
 
PPT
Chapter 02
Terry Yoast
 
PPTX
VsisbsvdisvdkdbdidvdkdbdifjdfbjffAWT.pptx
ChetanRaut43
 
PDF
Ajp notes-chapter-01
Ankit Dubey
 
PDF
01 10 - graphical user interface - others
Siva Kumar reddy Vasipally
 
PPTX
JAVA Programming: Topic -AWT(Abstract Window Tool )
Navya Francis
 
PPTX
Microsoft Excel Tutorial
Kristine Tiongco-Rimpa
 
PPTX
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
Prashant416351
 
PPTX
Unit 5 java-awt (1)
DevaKumari Vijay
 
PPTX
UNIT-I.pptx awt advance java abstract windowing toolkit and swing
utkarshabhope
 
PPTX
Module iii part i
Sumaja Varma
 
PPTX
Excel project 2 formulas functions and formatting
Wilmington High School
 
PDF
Sketch 3 manual
Andrea Chagas
 
PPTX
GUI components in Java
kirupasuchi1996
 
PDF
Unit-1 awt advanced java programming
Amol Gaikwad
 
AWT.pptx
MumtazAli889808
 
Windows Programming with AWT
backdoor
 
Dr. Rajeshree Khande :Introduction to Java AWT
DrRajeshreeKhande
 
Ajp notes-chapter-01
JONDHLEPOLY
 
tL19 awt
teach4uin
 
Chapter 02
Terry Yoast
 
VsisbsvdisvdkdbdidvdkdbdifjdfbjffAWT.pptx
ChetanRaut43
 
Ajp notes-chapter-01
Ankit Dubey
 
01 10 - graphical user interface - others
Siva Kumar reddy Vasipally
 
JAVA Programming: Topic -AWT(Abstract Window Tool )
Navya Francis
 
Microsoft Excel Tutorial
Kristine Tiongco-Rimpa
 
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
Prashant416351
 
Unit 5 java-awt (1)
DevaKumari Vijay
 
UNIT-I.pptx awt advance java abstract windowing toolkit and swing
utkarshabhope
 
Module iii part i
Sumaja Varma
 
Excel project 2 formulas functions and formatting
Wilmington High School
 
Sketch 3 manual
Andrea Chagas
 
GUI components in Java
kirupasuchi1996
 
Unit-1 awt advanced java programming
Amol Gaikwad
 
Ad

Recently uploaded (20)

PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Ad

java

  • 1. ABSTRACT WINDOW TOOLKIT
  • 2. COMPONENT: Is an abstract class which encapsulates all the attributes of a visual components. Include almost 100 public methods in components. Are responsible for managing keyboard input, mouse input and entry/exit etc. CONTAINER: Is an abstract subclass of component, which has an additional methods that allow other components to be nested inside it. PANEL: is a concrete subclass of a component. We can give any kind of behavior and appearance onto a canvas . Eg On a blank canvas we can paint any style component we want.
  • 3. Label Subclass of Canvas that has an additional functionality of knowing how to paint a particular string aligned inside the bound of label components. These attributes may be manipulated using the getFont/setFont and getForeground/setForeground method pairs. Three constants defined in Label to indicate alignment; LEFT, RIGHT and CENTER.
  • 4. Button Is a component use to invoke some action when the user presses and releases it. It is labeled with String which can’t be aligned like Label object; (they are always centered inside the button.
  • 5. Checkbox Is like a Label with a small button next to it that you can click to toggle the state of a check mark. Is often used to select a boolean condition. We can get/set current state of check mark with getState/checkState methods. While constructing checkbox we can use String label and optionally Boolean to specify initial state of check mark.
  • 6. CheckboxGroup Similar to Checkbox. Allows u to create a group of choices which can only be selected one at a time. getCheckboxGroup/setCheckboxGroup method use to set and get particular group. getCurrent/setCurrent used to get/set currently selected checkbox. Last eg. Using checkboxGroup.
  • 7. Choice Is used for creating a pop-up selection menu. A choice component takes up only enough space to show the currently selected item. When user clicks on it, the whole menu of choices pops up and a new selection can be made. Each item in menu is a String which are left-justified label in order they are added to choice object. Method addItem is used to add new string to Choice. Countitem- returns no of items in choice menu. Getselecteditem method- to get currently selected label getselectedIndex method- to get the zero based index integer index.
  • 9. List It provides a compact, multiple choice, scrolling selection list. Its unlike choice object which always show the single selected item in menu.
  • 10. Scrollbar Is used to select a continuous values between a specified minimum and maximum. The scrollbar class has number of methods f or different operations. Constructor allows us to specify orientation using constants HORIZANTAL/VERTICAL. Methods getValue/setValue used to get /set current value of a scrollbar. getMinimum/getMaximum used to get minimum/maximum values .
  • 11.  
  • 12. TextField It implements a single-line text-entry area,often used for form and other typed user input. TextField constructor allows us to create TextFields of specific character width and default value. Methods setText/getText used to set/get its current value. Method echoCharIsset is used to disable/enable echoing of character.
  • 13.  
  • 14. TextArea It is used when single line of text input is not enough for given task. AWT includes a very simple ,plain text , multiline editor called TextArea. Constructor takes string value as a initial text , no of rows and no of columns to be displayed. 3 methods to modify contents AppendText InsertText ReplaceText
  • 15.  
  • 16. Layout Means how all of the above discussed components are arranged or laid out on panel. Arrangement of components when size ie. Width or height of component is not available Manual layout of all above discussed components is tedious. So to overcome above problems, each class uses LayoutManager keps track of number of components. Layoutmanager is notified each time a component is added to panel. Whenever a panel is resized LayoutManager is consulted via minimumlayoutsize or prefferedlayoutsize.
  • 17. Different layout manager java includes are Flowlayout It implements simple layout style, similar to how words flow in a text-editor. Components are laid out from the upper-left corner, left to right and top to bottom. When no more components fit on the line, the next one appears on the next line. Each line is either left , right or center aligned using constants LEFT,RIGHT,CENER.
  • 18.  
  • 19. ii)Borderlayout It implements a common layout style for top level windows which has four fixed width components at the edges and one large area in center that grows in two dimensions. Each area named with areas North, South, East , West represents four sides and center is the middle area.
  • 20.  
  • 21. iii)GridLayout It arranges all the components in a simple uniform grid Constructer is used to define number of rows and columns in a panel layout. Eg 3 X 3 grid with 8 components.
  • 22. Insets It is used to inset a panel so that it has a bored much like the horizantal and vertical gap in layout managers. In order to cause a panel to have its edges inset, we should override the inset to return a new instance of Inset with four integer representing the width of the top, bottom, left and right edges. public Insets insets(){ return new Insets(10,10,10,10); }
  • 23. CardLayout Is unique from other layout managers in that it represents several different layouts that can be thought of as living on separate index cards that can be shuffled so that anyone card is on top at a given time. Used for interfaces that have optional components which can be dynamically enabled and disabled upon user input.