SlideShare a Scribd company logo
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 University
Niraj 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.pdf
ADITIEYEWEAR
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
Google
 
Durable functions
Durable functionsDurable functions
Durable functions
명신 김
 
Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3martha leon
 
To connect two jframe
To connect two jframeTo connect two jframe
To connect two jframe
vishal choudhary
 
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
AliHaiderCheema2
 
Formulario en java
Formulario en javaFormulario en java
Formulario en java
implantarb101
 
csc 208
csc 208csc 208
csc 208
priska
 
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
arwholesalelors
 
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 Toe
EPN
 
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 Transformation
Eelco 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.pdf
annaimobiles
 
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
ADITIEYEWEAR
 

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.pdf
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
where is the table .pdf
                     where is the table                              .pdf                     where is the table                              .pdf
where is the table .pdf
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 
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
aparetail
 

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

Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

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(); } }