SlideShare a Scribd company logo
1 of 2
Download to read offline
1.program to use JTextField
source code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class JTextFieldText1 implements ActionListener
{
JTextField tf;
JLable lb1,lb2;
public JTextFieldText()
{
JFrame f= new JFrame();
f.setDefaulitcloseOperation(JFrame.EXIT_ON_CLOSE);
f.setLayout(new FlowLayout());
lb1=new JLable("enter the name");
tf=new JTextField(15);
tf.setText("hai);
f.add(lb1)
f.add(tf);
tf.addActionLitener(This);
f.setSize(200,150);
f.setVisable(true);
}
public void actionPerformance(ActionEvent ae)
{
JTextField t=(JTextField) ae.getSource();
lb2.setText(t.getText());
}
public static void main(String[] a)
{
new JTextFieldText1();
}
}
Solution
1.program to use JTextField
source code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class JTextFieldText1 implements ActionListener
{
JTextField tf;
JLable lb1,lb2;
public JTextFieldText()
{
JFrame f= new JFrame();
f.setDefaulitcloseOperation(JFrame.EXIT_ON_CLOSE);
f.setLayout(new FlowLayout());
lb1=new JLable("enter the name");
tf=new JTextField(15);
tf.setText("hai);
f.add(lb1)
f.add(tf);
tf.addActionLitener(This);
f.setSize(200,150);
f.setVisable(true);
}
public void actionPerformance(ActionEvent ae)
{
JTextField t=(JTextField) ae.getSource();
lb2.setText(t.getText());
}
public static void main(String[] a)
{
new JTextFieldText1();
}
}

More Related Content

Similar to 1.program to use JTextFieldsource codeimport java.awt.;impor.pdf

T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai University
T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai UniversityT.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai University
T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai UniversityNiraj Bharambe
 
import javaxswing import javaawtevent import javai.pdf
import javaxswing import javaawtevent import javai.pdfimport javaxswing import javaawtevent import javai.pdf
import javaxswing import javaawtevent import javai.pdfADITIEYEWEAR
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in javaGoogle
 
Durable functions
Durable functionsDurable functions
Durable functions명신 김
 
Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3martha leon
 
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docxAliHaiderCheema2
 
csc 208
csc 208csc 208
csc 208priska
 
import javax.swing.; import java.awt.; import java.awt.event..pdf
import javax.swing.; import java.awt.; import java.awt.event..pdfimport javax.swing.; import java.awt.; import java.awt.event..pdf
import javax.swing.; import java.awt.; import java.awt.event..pdfarwholesalelors
 
Binary patching for fun and profit @ JUG.ru, 25.02.2012
Binary patching for fun and profit @ JUG.ru, 25.02.2012Binary patching for fun and profit @ JUG.ru, 25.02.2012
Binary patching for fun and profit @ JUG.ru, 25.02.2012Anton Arhipov
 
Proyecto Poogame Tic Tac Toe
Proyecto Poogame Tic Tac ToeProyecto Poogame Tic Tac Toe
Proyecto Poogame Tic Tac ToeEPN
 
Androidの本当にあった怖い話
Androidの本当にあった怖い話Androidの本当にあった怖い話
Androidの本当にあった怖い話Yusuke Yamamoto
 
Nouveau document texte-_-_
Nouveau document texte-_-_Nouveau document texte-_-_
Nouveau document texte-_-_Mohamed Mlika
 
Model-Driven Software Development - Context-Sensitive Transformation
Model-Driven Software Development - Context-Sensitive TransformationModel-Driven Software Development - Context-Sensitive Transformation
Model-Driven Software Development - Context-Sensitive TransformationEelco Visser
 
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdf
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdfI have done it under neatbeans IDE and just added ToggleGroup for gr.pdf
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdfannaimobiles
 
import javaawt import javaxswing import javaxswing.pdf
import javaawt import javaxswing import javaxswing.pdfimport javaawt import javaxswing import javaxswing.pdf
import javaawt import javaxswing import javaxswing.pdfADITIEYEWEAR
 

Similar to 1.program to use JTextFieldsource codeimport java.awt.;impor.pdf (20)

T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai University
T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai UniversityT.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai University
T.Y.B.S.CS Advance Java Practicals Sem 5 Mumbai University
 
import javaxswing import javaawtevent import javai.pdf
import javaxswing import javaawtevent import javai.pdfimport javaxswing import javaawtevent import javai.pdf
import javaxswing import javaawtevent import javai.pdf
 
Awt
AwtAwt
Awt
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
 
Durable functions
Durable functionsDurable functions
Durable functions
 
Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3
 
To connect two jframe
To connect two jframeTo connect two jframe
To connect two jframe
 
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx
20-Arid-850 Ali Haider Cheema BSSE(5A) Evening MPL Assignement 08.docx
 
Formulario en java
Formulario en javaFormulario en java
Formulario en java
 
Oop lecture9
Oop lecture9Oop lecture9
Oop lecture9
 
csc 208
csc 208csc 208
csc 208
 
import javax.swing.; import java.awt.; import java.awt.event..pdf
import javax.swing.; import java.awt.; import java.awt.event..pdfimport javax.swing.; import java.awt.; import java.awt.event..pdf
import javax.swing.; import java.awt.; import java.awt.event..pdf
 
Binary patching for fun and profit @ JUG.ru, 25.02.2012
Binary patching for fun and profit @ JUG.ru, 25.02.2012Binary patching for fun and profit @ JUG.ru, 25.02.2012
Binary patching for fun and profit @ JUG.ru, 25.02.2012
 
Proyecto Poogame Tic Tac Toe
Proyecto Poogame Tic Tac ToeProyecto Poogame Tic Tac Toe
Proyecto Poogame Tic Tac Toe
 
Androidの本当にあった怖い話
Androidの本当にあった怖い話Androidの本当にあった怖い話
Androidの本当にあった怖い話
 
Nouveau document texte-_-_
Nouveau document texte-_-_Nouveau document texte-_-_
Nouveau document texte-_-_
 
Model-Driven Software Development - Context-Sensitive Transformation
Model-Driven Software Development - Context-Sensitive TransformationModel-Driven Software Development - Context-Sensitive Transformation
Model-Driven Software Development - Context-Sensitive Transformation
 
Swing
SwingSwing
Swing
 
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdf
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdfI have done it under neatbeans IDE and just added ToggleGroup for gr.pdf
I have done it under neatbeans IDE and just added ToggleGroup for gr.pdf
 
import javaawt import javaxswing import javaxswing.pdf
import javaawt import javaxswing import javaxswing.pdfimport javaawt import javaxswing import javaxswing.pdf
import javaawt import javaxswing import javaxswing.pdf
 

More from aparetail

a) False - correlation says nothing about particular values. b) F.pdf
 a) False - correlation says nothing about particular values. b) F.pdf a) False - correlation says nothing about particular values. b) F.pdf
a) False - correlation says nothing about particular values. b) F.pdfaparetail
 
In an octahedral field f orbitals are split into three parts. 1. Sin.pdf
  In an octahedral field f orbitals are split into three parts. 1. Sin.pdf  In an octahedral field f orbitals are split into three parts. 1. Sin.pdf
In an octahedral field f orbitals are split into three parts. 1. Sin.pdfaparetail
 
SO4I- is the reaction intermediate in the mechani.pdf
                     SO4I- is the reaction intermediate in the mechani.pdf                     SO4I- is the reaction intermediate in the mechani.pdf
SO4I- is the reaction intermediate in the mechani.pdfaparetail
 
Place your solid components in water (this will b.pdf
                     Place your solid components in water (this will b.pdf                     Place your solid components in water (this will b.pdf
Place your solid components in water (this will b.pdfaparetail
 
no there is no such relation ... .pdf
                     no there is no such relation ...                 .pdf                     no there is no such relation ...                 .pdf
no there is no such relation ... .pdfaparetail
 
zinc sulfide == solid (insoluble) cobalt(II) ca.pdf
                     zinc sulfide == solid (insoluble)  cobalt(II) ca.pdf                     zinc sulfide == solid (insoluble)  cobalt(II) ca.pdf
zinc sulfide == solid (insoluble) cobalt(II) ca.pdfaparetail
 
where is the table .pdf
                     where is the table                              .pdf                     where is the table                              .pdf
where is the table .pdfaparetail
 
Its e2 reaction so replace cl by -OH- .pdf
                     Its e2 reaction so replace cl by -OH-            .pdf                     Its e2 reaction so replace cl by -OH-            .pdf
Its e2 reaction so replace cl by -OH- .pdfaparetail
 
Cl in elemental form has oxidation 0 & in NaCl ha.pdf
                     Cl in elemental form has oxidation 0 & in NaCl ha.pdf                     Cl in elemental form has oxidation 0 & in NaCl ha.pdf
Cl in elemental form has oxidation 0 & in NaCl ha.pdfaparetail
 
fluorosilicic acid is the inorganic compound with.pdf
                     fluorosilicic acid is the inorganic compound with.pdf                     fluorosilicic acid is the inorganic compound with.pdf
fluorosilicic acid is the inorganic compound with.pdfaparetail
 
Li2 means two Li atom bound to each other. it is .pdf
                     Li2 means two Li atom bound to each other. it is .pdf                     Li2 means two Li atom bound to each other. it is .pdf
Li2 means two Li atom bound to each other. it is .pdfaparetail
 
Yes some of the jobs are in decliened state due to online marketing .pdf
Yes some of the jobs are in decliened state due to online marketing .pdfYes some of the jobs are in decliened state due to online marketing .pdf
Yes some of the jobs are in decliened state due to online marketing .pdfaparetail
 
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdf
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdfWhen acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdf
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdfaparetail
 
We can not simply come to the conclusion that original asteroid had .pdf
We can not simply come to the conclusion that original asteroid had .pdfWe can not simply come to the conclusion that original asteroid had .pdf
We can not simply come to the conclusion that original asteroid had .pdfaparetail
 
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdf
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdfThe term meiosis was originally introduced by J. B. Farmer and J.E.S.pdf
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdfaparetail
 
Typical resting potential of neuron is -70 mV.Correct answer is op.pdf
Typical resting potential of neuron is -70 mV.Correct answer is op.pdfTypical resting potential of neuron is -70 mV.Correct answer is op.pdf
Typical resting potential of neuron is -70 mV.Correct answer is op.pdfaparetail
 
The value of a IEEE-754 number is computed assign 2exponent m.pdf
The value of a IEEE-754 number is computed assign  2exponent  m.pdfThe value of a IEEE-754 number is computed assign  2exponent  m.pdf
The value of a IEEE-754 number is computed assign 2exponent m.pdfaparetail
 
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdf
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdfThe Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdf
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdfaparetail
 
The answer is E. are referred to as task functionsSolutionThe .pdf
The answer is E. are referred to as task functionsSolutionThe .pdfThe answer is E. are referred to as task functionsSolutionThe .pdf
The answer is E. are referred to as task functionsSolutionThe .pdfaparetail
 
For the first one it will be zero because only H-.pdf
                     For the first one it will be zero because only H-.pdf                     For the first one it will be zero because only H-.pdf
For the first one it will be zero because only H-.pdfaparetail
 

More from aparetail (20)

a) False - correlation says nothing about particular values. b) F.pdf
 a) False - correlation says nothing about particular values. b) F.pdf a) False - correlation says nothing about particular values. b) F.pdf
a) False - correlation says nothing about particular values. b) F.pdf
 
In an octahedral field f orbitals are split into three parts. 1. Sin.pdf
  In an octahedral field f orbitals are split into three parts. 1. Sin.pdf  In an octahedral field f orbitals are split into three parts. 1. Sin.pdf
In an octahedral field f orbitals are split into three parts. 1. Sin.pdf
 
SO4I- is the reaction intermediate in the mechani.pdf
                     SO4I- is the reaction intermediate in the mechani.pdf                     SO4I- is the reaction intermediate in the mechani.pdf
SO4I- is the reaction intermediate in the mechani.pdf
 
Place your solid components in water (this will b.pdf
                     Place your solid components in water (this will b.pdf                     Place your solid components in water (this will b.pdf
Place your solid components in water (this will b.pdf
 
no there is no such relation ... .pdf
                     no there is no such relation ...                 .pdf                     no there is no such relation ...                 .pdf
no there is no such relation ... .pdf
 
zinc sulfide == solid (insoluble) cobalt(II) ca.pdf
                     zinc sulfide == solid (insoluble)  cobalt(II) ca.pdf                     zinc sulfide == solid (insoluble)  cobalt(II) ca.pdf
zinc sulfide == solid (insoluble) cobalt(II) ca.pdf
 
where is the table .pdf
                     where is the table                              .pdf                     where is the table                              .pdf
where is the table .pdf
 
Its e2 reaction so replace cl by -OH- .pdf
                     Its e2 reaction so replace cl by -OH-            .pdf                     Its e2 reaction so replace cl by -OH-            .pdf
Its e2 reaction so replace cl by -OH- .pdf
 
Cl in elemental form has oxidation 0 & in NaCl ha.pdf
                     Cl in elemental form has oxidation 0 & in NaCl ha.pdf                     Cl in elemental form has oxidation 0 & in NaCl ha.pdf
Cl in elemental form has oxidation 0 & in NaCl ha.pdf
 
fluorosilicic acid is the inorganic compound with.pdf
                     fluorosilicic acid is the inorganic compound with.pdf                     fluorosilicic acid is the inorganic compound with.pdf
fluorosilicic acid is the inorganic compound with.pdf
 
Li2 means two Li atom bound to each other. it is .pdf
                     Li2 means two Li atom bound to each other. it is .pdf                     Li2 means two Li atom bound to each other. it is .pdf
Li2 means two Li atom bound to each other. it is .pdf
 
Yes some of the jobs are in decliened state due to online marketing .pdf
Yes some of the jobs are in decliened state due to online marketing .pdfYes some of the jobs are in decliened state due to online marketing .pdf
Yes some of the jobs are in decliened state due to online marketing .pdf
 
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdf
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdfWhen acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdf
When acid is addedMolecular NaCHO2(aq) + H+(aq) = HCHO2(aq) + N.pdf
 
We can not simply come to the conclusion that original asteroid had .pdf
We can not simply come to the conclusion that original asteroid had .pdfWe can not simply come to the conclusion that original asteroid had .pdf
We can not simply come to the conclusion that original asteroid had .pdf
 
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdf
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdfThe term meiosis was originally introduced by J. B. Farmer and J.E.S.pdf
The term meiosis was originally introduced by J. B. Farmer and J.E.S.pdf
 
Typical resting potential of neuron is -70 mV.Correct answer is op.pdf
Typical resting potential of neuron is -70 mV.Correct answer is op.pdfTypical resting potential of neuron is -70 mV.Correct answer is op.pdf
Typical resting potential of neuron is -70 mV.Correct answer is op.pdf
 
The value of a IEEE-754 number is computed assign 2exponent m.pdf
The value of a IEEE-754 number is computed assign  2exponent  m.pdfThe value of a IEEE-754 number is computed assign  2exponent  m.pdf
The value of a IEEE-754 number is computed assign 2exponent m.pdf
 
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdf
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdfThe Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdf
The Lewis acid (electron pair acceptor) is Zn(OH)2The Lewis base (.pdf
 
The answer is E. are referred to as task functionsSolutionThe .pdf
The answer is E. are referred to as task functionsSolutionThe .pdfThe answer is E. are referred to as task functionsSolutionThe .pdf
The answer is E. are referred to as task functionsSolutionThe .pdf
 
For the first one it will be zero because only H-.pdf
                     For the first one it will be zero because only H-.pdf                     For the first one it will be zero because only H-.pdf
For the first one it will be zero because only H-.pdf
 

Recently uploaded

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

1.program to use JTextFieldsource codeimport java.awt.;impor.pdf

  • 1. 1.program to use JTextField source code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class JTextFieldText1 implements ActionListener { JTextField tf; JLable lb1,lb2; public JTextFieldText() { JFrame f= new JFrame(); f.setDefaulitcloseOperation(JFrame.EXIT_ON_CLOSE); f.setLayout(new FlowLayout()); lb1=new JLable("enter the name"); tf=new JTextField(15); tf.setText("hai); f.add(lb1) f.add(tf); tf.addActionLitener(This); f.setSize(200,150); f.setVisable(true); } public void actionPerformance(ActionEvent ae) { JTextField t=(JTextField) ae.getSource(); lb2.setText(t.getText()); } public static void main(String[] a) { new JTextFieldText1(); } } Solution
  • 2. 1.program to use JTextField source code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class JTextFieldText1 implements ActionListener { JTextField tf; JLable lb1,lb2; public JTextFieldText() { JFrame f= new JFrame(); f.setDefaulitcloseOperation(JFrame.EXIT_ON_CLOSE); f.setLayout(new FlowLayout()); lb1=new JLable("enter the name"); tf=new JTextField(15); tf.setText("hai); f.add(lb1) f.add(tf); tf.addActionLitener(This); f.setSize(200,150); f.setVisable(true); } public void actionPerformance(ActionEvent ae) { JTextField t=(JTextField) ae.getSource(); lb2.setText(t.getText()); } public static void main(String[] a) { new JTextFieldText1(); } }