Creating JFrame,JLabel,JTextField In Swing Java | Free Java Course In Hindi #2
2,217 views · Published 24 January 2018 · 10:39 · Indexed 25 October 2026
Channel: AndroJavaTech4U · 2018 · Science & Technology
Step by step tutorial in HINDI
swing is extension of awt not replacement.
Program-
import javax.swing.*;
import java.awt.*;
class SwingFirstApp
{
JFrame jf;
JButton b;
JLabel l;
JTextField tf;
SwingFirstApp(String title)
{
jf=new JFrame(title);
jf.setVisible(true);
jf.setSize(400,400);
b=new JButton("Ok");
l=new JLabel("Welcome to App");
tf=new JTextField(10);
jf.setLayout(new FlowLayout());
jf.add(l);
jf.add(tf);
jf.add(b);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String ss[])
{
SwingFirstApp ff=new SwingFirstApp("SwingFrame");
}
}
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm5374/AndroJava%20Tech4U.apk?dl=0
awt url-
https://www.youtube.com/watch?v=n9NF1O1xzCg&list=PLnfapp4WoqppnD7iLCygNJV41hrnQKa3b&index=1
path seting-
https://www.youtube.com/watch?v=k2gCo4oKKmg&index=20&list=PLnfapp4WoqpqWgXpfNvPCoQ3tEVUTnsYG
java doc-
https://www.youtube.com/watch?v=NLfXdTtW9q8&index=15&list=PLnfapp4WoqpqWgXpfNvPCoQ3tEVUTnsYG
Connect on Socials:-
Facebook:- https://www.facebook.com/AndroJavaTech4U/
Twitter:- https://twitter.com/AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJavaTech4U
LinkedIn:- https://www.linke
More from this channel
-
18:08
Platform Independency Features of Java In Hindi #1
-
4:42
VMware Workstation Install With RedHat
-
8:35
Difference Between Program and Process
-
2:51
jconsole tool of java
-
5:38
JVM ( java virtual machine) architecture - tutorial
-
4:30
Java Fundamentals In Hindi #2 (Keyword In Java)
-
2:26
Working On WebLogic Server 12C In Hindi #2
-
21:59
Login and Registration Part1