SlideShare a Scribd company logo
1 of 4
Component Constructor Methods
Label Label()
Label(String)
Label(String, int align)
Align :Label.LEFT,Label.RIGHT,
Label.CENTER)
1. void setText(String)
2. String getText()
3. void setAlignment(int)
4. int getAlignment()
Button Button()
Button (String str)
1. void setLabel(String)
2. String getLabel()
TextField TextField()
TextField(int width)
Textfield(String)
TextField(String, int width)
1. String getText()
2. void setText(String)
3. String getSelectedText()
4. void select(int startIndex, int endIndex)
5. boolean isEditable()
6. void setEditable(boolean)
Check Box Checkbox()
Checkbox(String)
Checkbox(String, Boolean)
1. Boolean getState()
2. void setState(boolean)
3. String getLabel()
4. Void setLabel(String)
Compon
ent
Constructor Methods
radio
buttons
CheckboxGroup() is used to create
group of check boxex
e.g.
CheckBoxGroup cbg = new
CheckBoxGroup()
c1 = new Checkbox("check-
1“,cbg,true);
c2 = new Checkbox("check-
2“,cbg,false);
1. Checkbox getSelectedCheckbox()
2. void setSelectedCheckbox(Checkbox
obj))
List List()
List(int noofitemvisible )
List(int noofitemvisible , boolean
multipleselection)
1. void add(string)
2. void add(String,int)
3. String getSelectedItem()
4. int getSelectedIndex()
5. String[] getSelectedItems()
6. Int[] getSelectedIndexes()
7. Int getItemCount()
8. Void select(int)
9. String getItem(int)
Component Constructor Methods
Choice list
(Dropdown
List)
Choice() 1. void add(String)
2. String getSelectedItem()
3. int getSelectedIndex()
4. int getItemCount()
5. void select(int)
6. void select(String)
7. String getItem(int)
TextArea 1. TextArea()
2. TextArea(int numlines,
int char)
3. TextArea(String)
4. TextArea(Sring,
intnumlines, int char)
5. TextArea(String, int
numlines, int nchar, int
s bars)
SCROLLBAR_BOTH,
SCROLLBAR_NONE,
SCROLLBAR_HORIZONTAL_O
NLY,
SCROLLBAR_VERTICAL_ONLY
Supports all the methods of TextField &
some additional method
1. void append(String)
2. void insert(string,int)
3. void replace(String, int startIndex,
endIndex)
Component Constructor Methods
Scroll Bars 1. Scrollbar() :Create
vertical scrollbar
2. Scrollbar(int style)
Style:
Scrollbar.HORIZONTAL
Scrollbar.VERTICAL
3. Scrollbar(int style, int
start, int thumb,int
min, int max)
1. int getValue()
2. void setValue(int)
3. int getMinimum()
4. int getMaximum()
5. void setUnitIncrement(int)
6. void setBlockIncrement(int)

More Related Content

More from DrRajeshreeKhande

More from DrRajeshreeKhande (16)

.NET F# Class constructor
.NET F# Class constructor.NET F# Class constructor
.NET F# Class constructor
 
.NET F# Abstract class interface
.NET F# Abstract class interface.NET F# Abstract class interface
.NET F# Abstract class interface
 
.Net F# Generic class
.Net F# Generic class.Net F# Generic class
.Net F# Generic class
 
F# Console class
F# Console classF# Console class
F# Console class
 
.net F# mutable dictionay
.net F# mutable dictionay.net F# mutable dictionay
.net F# mutable dictionay
 
F sharp lists & dictionary
F sharp   lists &  dictionaryF sharp   lists &  dictionary
F sharp lists & dictionary
 
F# array searching
F#  array searchingF#  array searching
F# array searching
 
Net (f#) array
Net (f#)  arrayNet (f#)  array
Net (f#) array
 
.Net (F # ) Records, lists
.Net (F # ) Records, lists.Net (F # ) Records, lists
.Net (F # ) Records, lists
 
MS Office for Beginners
MS Office for BeginnersMS Office for Beginners
MS Office for Beginners
 
Java Multi-threading programming
Java Multi-threading programmingJava Multi-threading programming
Java Multi-threading programming
 
Java String class
Java String classJava String class
Java String class
 
Dr. Rajeshree Khande Java Interactive input
Dr. Rajeshree Khande Java Interactive inputDr. Rajeshree Khande Java Interactive input
Dr. Rajeshree Khande Java Interactive input
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to java
 
Java Exceptions Handling
Java Exceptions Handling Java Exceptions Handling
Java Exceptions Handling
 
Dr. Rajeshree Khande : Java Basics
Dr. Rajeshree Khande  : Java BasicsDr. Rajeshree Khande  : Java Basics
Dr. Rajeshree Khande : Java Basics
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

JAVA AWT components

  • 1. Component Constructor Methods Label Label() Label(String) Label(String, int align) Align :Label.LEFT,Label.RIGHT, Label.CENTER) 1. void setText(String) 2. String getText() 3. void setAlignment(int) 4. int getAlignment() Button Button() Button (String str) 1. void setLabel(String) 2. String getLabel() TextField TextField() TextField(int width) Textfield(String) TextField(String, int width) 1. String getText() 2. void setText(String) 3. String getSelectedText() 4. void select(int startIndex, int endIndex) 5. boolean isEditable() 6. void setEditable(boolean) Check Box Checkbox() Checkbox(String) Checkbox(String, Boolean) 1. Boolean getState() 2. void setState(boolean) 3. String getLabel() 4. Void setLabel(String)
  • 2. Compon ent Constructor Methods radio buttons CheckboxGroup() is used to create group of check boxex e.g. CheckBoxGroup cbg = new CheckBoxGroup() c1 = new Checkbox("check- 1“,cbg,true); c2 = new Checkbox("check- 2“,cbg,false); 1. Checkbox getSelectedCheckbox() 2. void setSelectedCheckbox(Checkbox obj)) List List() List(int noofitemvisible ) List(int noofitemvisible , boolean multipleselection) 1. void add(string) 2. void add(String,int) 3. String getSelectedItem() 4. int getSelectedIndex() 5. String[] getSelectedItems() 6. Int[] getSelectedIndexes() 7. Int getItemCount() 8. Void select(int) 9. String getItem(int)
  • 3. Component Constructor Methods Choice list (Dropdown List) Choice() 1. void add(String) 2. String getSelectedItem() 3. int getSelectedIndex() 4. int getItemCount() 5. void select(int) 6. void select(String) 7. String getItem(int) TextArea 1. TextArea() 2. TextArea(int numlines, int char) 3. TextArea(String) 4. TextArea(Sring, intnumlines, int char) 5. TextArea(String, int numlines, int nchar, int s bars) SCROLLBAR_BOTH, SCROLLBAR_NONE, SCROLLBAR_HORIZONTAL_O NLY, SCROLLBAR_VERTICAL_ONLY Supports all the methods of TextField & some additional method 1. void append(String) 2. void insert(string,int) 3. void replace(String, int startIndex, endIndex)
  • 4. Component Constructor Methods Scroll Bars 1. Scrollbar() :Create vertical scrollbar 2. Scrollbar(int style) Style: Scrollbar.HORIZONTAL Scrollbar.VERTICAL 3. Scrollbar(int style, int start, int thumb,int min, int max) 1. int getValue() 2. void setValue(int) 3. int getMinimum() 4. int getMaximum() 5. void setUnitIncrement(int) 6. void setBlockIncrement(int)