SlideShare a Scribd company logo
1 of 1
Download to read offline
These questions are for Java.
1. name of Java class with methods and constants for manipulating the style and size of
characters?
2. name of method to be called when GUI components need to be refreshed?
3. code that performs a task in response to an event?
4. link a GUI component to an event handler (one word answer)
Solution
1)we hava class called Font in java.awt package
in that these are the constants which will change the size and style of th text
i)BOLD
ii)ITALIC
iii)PLAIN
and there is constructor called
i)Font(String name,int style,int size) which is change your text size and
method
ii)public Font deriveFont(int style, AffineTransform trans)
2)repaint() which calls the paint method affter changes have done

More Related Content

More from isenbergwarne4100

1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
1) Name the seven layers of the OSI network model, and 2) enumerate .pdf1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
isenbergwarne4100
 
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdfpublic void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
isenbergwarne4100
 
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
isenbergwarne4100
 
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdfPLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
isenbergwarne4100
 
Menders experiments were conducted using garden peas. Why would human.pdf
Menders experiments were conducted using garden peas. Why would human.pdfMenders experiments were conducted using garden peas. Why would human.pdf
Menders experiments were conducted using garden peas. Why would human.pdf
isenbergwarne4100
 

More from isenbergwarne4100 (20)

1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
1) Name the seven layers of the OSI network model, and 2) enumerate .pdf1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
1) Name the seven layers of the OSI network model, and 2) enumerate .pdf
 
8. Eenee, Meanie, and Miney each have a capital balance of $84,000 i.pdf
8. Eenee, Meanie, and Miney each have a capital balance of $84,000 i.pdf8. Eenee, Meanie, and Miney each have a capital balance of $84,000 i.pdf
8. Eenee, Meanie, and Miney each have a capital balance of $84,000 i.pdf
 
[Python] [Singly-linked list] [Element insertion] Consider the follo.pdf
[Python] [Singly-linked list] [Element insertion] Consider the follo.pdf[Python] [Singly-linked list] [Element insertion] Consider the follo.pdf
[Python] [Singly-linked list] [Element insertion] Consider the follo.pdf
 
why Cu, Pb, and Sn were metals used in early civilizations Solu.pdf
why Cu, Pb, and Sn were metals used in early civilizations Solu.pdfwhy Cu, Pb, and Sn were metals used in early civilizations Solu.pdf
why Cu, Pb, and Sn were metals used in early civilizations Solu.pdf
 
Which scenario is the least likely to be supported by the theory of .pdf
Which scenario is the least likely to be supported by the theory of .pdfWhich scenario is the least likely to be supported by the theory of .pdf
Which scenario is the least likely to be supported by the theory of .pdf
 
What is the difference between neurotransmitters and neuropeptides .pdf
What is the difference between neurotransmitters and neuropeptides  .pdfWhat is the difference between neurotransmitters and neuropeptides  .pdf
What is the difference between neurotransmitters and neuropeptides .pdf
 
5) The US government is spying on Switzerland. They believe Switzerl.pdf
5) The US government is spying on Switzerland. They believe Switzerl.pdf5) The US government is spying on Switzerland. They believe Switzerl.pdf
5) The US government is spying on Switzerland. They believe Switzerl.pdf
 
To qualify for the partial exclusion of gain on the sale or exchange.pdf
To qualify for the partial exclusion of gain on the sale or exchange.pdfTo qualify for the partial exclusion of gain on the sale or exchange.pdf
To qualify for the partial exclusion of gain on the sale or exchange.pdf
 
The United States Central Intelligence Agency, FBI, and National Sec.pdf
The United States Central Intelligence Agency, FBI, and National Sec.pdfThe United States Central Intelligence Agency, FBI, and National Sec.pdf
The United States Central Intelligence Agency, FBI, and National Sec.pdf
 
The study of consumer choose one brand over another and how they make.pdf
The study of consumer choose one brand over another and how they make.pdfThe study of consumer choose one brand over another and how they make.pdf
The study of consumer choose one brand over another and how they make.pdf
 
Survivin Monomer Plays an Essential Role in Apoptosis Regulation Mar.pdf
Survivin Monomer Plays an Essential Role in Apoptosis Regulation Mar.pdfSurvivin Monomer Plays an Essential Role in Apoptosis Regulation Mar.pdf
Survivin Monomer Plays an Essential Role in Apoptosis Regulation Mar.pdf
 
statistics Which is not true of p-values Select one When they are.pdf
statistics Which is not true of p-values Select one  When they are.pdfstatistics Which is not true of p-values Select one  When they are.pdf
statistics Which is not true of p-values Select one When they are.pdf
 
Summarize the article Towards an Aesthetic of popular music by S.pdf
Summarize the article Towards an Aesthetic of popular music by S.pdfSummarize the article Towards an Aesthetic of popular music by S.pdf
Summarize the article Towards an Aesthetic of popular music by S.pdf
 
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdfpublic void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
public void turnRight(double degrees) {rotationInDegrees + - = deg.pdf
 
Put the following alphabetically listed structures in order for the p.pdf
Put the following alphabetically listed structures in order for the p.pdfPut the following alphabetically listed structures in order for the p.pdf
Put the following alphabetically listed structures in order for the p.pdf
 
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
1-Which law of Mendels does the monohybrid cross demonstrate, and .pdf
 
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdfPLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
PLEASE ANSWER THE QUESTIONS IN BOLD In a certain Midwest city, a se.pdf
 
Menders experiments were conducted using garden peas. Why would human.pdf
Menders experiments were conducted using garden peas. Why would human.pdfMenders experiments were conducted using garden peas. Why would human.pdf
Menders experiments were conducted using garden peas. Why would human.pdf
 
List or describe one feature that represents convergent evolution th.pdf
List or describe one feature that represents convergent evolution th.pdfList or describe one feature that represents convergent evolution th.pdf
List or describe one feature that represents convergent evolution th.pdf
 
Integral membrane proteins that exhibit an intrinsic activity of hyd.pdf
Integral membrane proteins that exhibit an intrinsic activity of hyd.pdfIntegral membrane proteins that exhibit an intrinsic activity of hyd.pdf
Integral membrane proteins that exhibit an intrinsic activity of hyd.pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 

These questions are for Java.1. name of Java class with methods an.pdf

  • 1. These questions are for Java. 1. name of Java class with methods and constants for manipulating the style and size of characters? 2. name of method to be called when GUI components need to be refreshed? 3. code that performs a task in response to an event? 4. link a GUI component to an event handler (one word answer) Solution 1)we hava class called Font in java.awt package in that these are the constants which will change the size and style of th text i)BOLD ii)ITALIC iii)PLAIN and there is constructor called i)Font(String name,int style,int size) which is change your text size and method ii)public Font deriveFont(int style, AffineTransform trans) 2)repaint() which calls the paint method affter changes have done