@@siddhantagrawal7352 I am thinking that I should learn Java syntax basically how to write java from apna college playlist and for conceptual clarity i am thinking to watch this playlist, because as far as I have watched he doesn't teach how to code but he explains the basic or advance concepts clearly, what do you think on this idea??
Hello sir this is vijay i wana say thank you..because of u i have completed my core java...without spending a penny..on other tutions ... where they charge thousands of ruppes and the teaching faculty is also not proper. ....you are the best....
Sir , content to bahut h TH-cam pr but pta nhi kyo aaka content dekhte hi bharosa aur vishwas ho jata h ki yahi sahi h aur yahi best h ....... Thank you so much sir
Thank You so Much Saurabh Sir..! I have learnt java From scratch after watching all the videos you posted on this channel..! Now i want to learn more and more as my desire is to become object oriented programmer
Sir i dont have any idea about java and its working process...but after seeing your lectures ...im now good at java programming ...THANK YOU very much sir
Hello sir,this is Chandan and i want to say thanks for these intresting logical and easy learning videos of programming..these video helps us alot in learning......very useful really...
today i have completed this series. And the entire journey was really very interesting you have taught every concepts from scratch at last i want to say thanks for such a wonderfull series.
thank u lot Sir for ur videos. I have studied complete course of core java from ur video lectures . ur teaching methodology is excellent.u have cover each n every portion of core java including some concepts of swings.
all good sir, but one thing.. you have written l3.setText("result is"+s), but your output is 'sum is...' that means your showing other programs output.
Thank you so much dear sir, Today I have just completed this Playlist and become much efficient in java programming.This playlist makes me easier to understand in depth and not just me but thousands of students over the world learned form you and still learning Thank You So much.Love Respect From Pakistan
@@samipsamani7 yes almost all topics but i suggest you to watch Sir Navin Reddy's tutorial on java too its covers the advance java, video is proximately 6 hour long.
Sir, i have watched your complete series of java and it has helped me a lot . Thank you sir :) Your way of explaining the concepts is amazing !! THANK YOU SO MUCH SIR :) "Huge respect for you".
Hello Sir, Sabse Pahle Dil Se Shukriya.... aapke is prayas ke liye... ek confusion hai ? 1-> Why l3 assigning sum? 2-> Why result is "Sum is" while in code you written "Result is"?
Thank You SirG for all your videos and teaching, you are doing Great work. All Videos are awesome and I request you to Please sir upload videos on JDBC.
hello Sir, I watched your videos that helped me a lot to understand programming languages. I, now, request you to upload a video about "ACTION LISTENER". I know how ACTION LISTENER works in the same class but i don't know how to use an action listener in different class using packages. I suggest you to write a LOGIN Program using packages and classes. There should be different packages. One should contain classes for GUI and the other should contain classes for Logic . This will help me to understand how an Action Listener works in a different class of different package. That's it.
really thankful for these qualitative lectures .sir I am unable to compile program of swing class .JLable is not working properly and giving error .pls help me in this .
when multiple catch blocks are defined, how does a try statement determine which catch clause should be used to handle an exception? What happens when there is no catch clause after a try block? please answer me sir...
You prolly dont care but if you're bored like me during the covid times then you can watch all of the latest series on InstaFlixxer. Have been streaming with my gf lately =)
sir mai aapse java seekh rha hun. aap bahut acha padate hain sir mai book lena chata hun please mujhe koi book bataye jiski language aasan ho aur jisse theoretical plus practice bhi jaye
package aplet; import javax.swing.*; import java.awt.event.*; public class SwingEvent extends JFrame{ JLabel l1,l2,l3,l4,l5; JTextField t1,t2,t3; JButton b1,b2,b3; public SwingEvent(){} public SwingEvent(String a) { super(a); } public void setComponents(){ l1=new JLabel("Addition of number"); l2=new JLabel("First Number"); l3=new JLabel("Second Number"); l4=new JLabel(); t1=new JTextField(); t2=new JTextField(); b1=new JButton("Addition Of Number"); setLayout(null); l1.setBounds(50,50,2000,20); l2.setBounds(50,80,100,20); t1.setBounds(150,80,100,20); l3.setBounds(50,130,100,20); t2.setBounds(150,130,100,20); b1.setBounds(80,180,100,20); l4.setBounds(80,240,200,20); b1.addActionListener(new Handler()); add(l1); add(l2); add(l3); add(l4); add(t1); add(t2); add(b1); }
class Handler implements ActionListener{ public void actionPerformed(ActionEvent e){ int a=Integer.parseInt(t1.getText()); int b=Integer.parseInt(t2.getText()); int s=a+b; l4.setText("Result is"+s); } } public static void main(String[] args) {
sir you really explained everything in a very clear way..... here is my code ..there is no any compilation error but only one component is showing on gui container why,, sir can you check it please import javax.swing.*; import java.util.*; import java.lang.*; import java.awt.event.*; //if we include java.awt.* only it will give an error.. we have to include the package as shown in this code class A { //JFrame jf=new JFrame("VIDYAPATI"); String s1="square"; String s2="kumar"; //s2=s1; identifier is required here a/c to compilation we can't do here in the class member variables String s3=s1.toUpperCase(); JFrame jf=new JFrame("VIDYAPATI"+s3); // jf=new JFrame("VIDYAPATI"+s2); JButton b1=new JButton("Add"); JLabel l1=new JLabel("first no."); //l3=new JLabel("first no."); JTextField t1=new JTextField(); JLabel l2=new JLabel("second no."); //to use the label class.......we have to import the java.awt.* JTextField t2= new JTextField(); JLabel l3 =new JLabel() ; JTextField t3; void gui() { jf.setVisible(true); System.out.println("i am in the class A saurav function "); System.out.println("before viisble "); jf.setSize(400,400); System.out.println("just after visible "); jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE); // to end the whole program,,, bas yah ek baar chalna chahiye during code warna puri program kbhi end hi nhi hogi. System.out.println("just after Exit on close"); s2=s1; //but we can do here which was not doable in our upper part codes System.out.println(s1+s2); jf.add(b1); b1.addActionListener(new Event()); jf.setLayout(null); l1.setBounds(0,0,50,20); //it is the function of container classes l1.setBounds(0,30,50,20); l1.setBounds(0,60,50,20); l1.setBounds(0,90,50,20); l1.setBounds(0,120,50,20); l1.setBounds(0,150,50,20); jf.add(l1); jf.add(t1); jf.add(l2); jf.add(t2); jf.add(l3); jf.add(l1); } class Event implements ActionListener { public void actionPerformed(ActionEvent E) { int i=Integer.parseInt(t1.getText()); int j= Integer.parseInt(t2.getText()); int z=i+j; l3.setText("your adding result is"+z); } } } public class Guiprocheck { public static void main(String [] args) { A a1=new A(); //ham khi bhi frame khi bhi component bana sakte hai aur use ham add kar sakte hai a1.gui(); //A.gui(); System.out.println("just after calling saurav function"); Scanner sc = new Scanner(System.in); int i=sc.nextInt(); System.out.println("inputed value"+" the value is "+i); //a1.jf.setVisible(true); //we can make true from any anywhere a/c to rule and regulation of the varibles //boolean type ....not as string as"true" } }
Hi Saurabh sir , thanks a lot for nice explanation. Can we implement actionlistener directly in example class instead of creating internal class. I may be wrong sir. thanks n advance :)
okk ......sir i got the bug of my code and the correct code is here import javax.swing.*; import java.util.*; import java.lang.*; import java.awt.event.*; //if we include java.awt.* only it will give an error.. we have to include the package as shown in this code class A { String s1="square"; String s2="kumar"; //s2=s1; identifier is required here a/c to compilation we can't do here in the class member variables String s3=s1.toUpperCase(); JFrame jf=new JFrame("VIDYAPATI"+s3); JLabel l1,l2,l3; JTextField t1,t2; JButton b1; // jf=new JFrame("VIDYAPATI"+s2) void gui() { jf.setVisible(true); System.out.println("i am in the class A gui function "); System.out.println("before visible "); jf.setSize(500,400); System.out.println("just after visible "); jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE); // to end the whole program,,, bas yah ek baar chalna chahiye during code warna puri program kbhi end hi nhi hogi. System.out.println("just after Exit on close"); s2=s1; //but we can do here which was not doable in our upper part codes System.out.println(s1+s2); b1=new JButton("Add"); l1=new JLabel("first no."); //l3=new JLabel("first no."); t1=new JTextField(); JLabel l2=new JLabel("second no."); //to use the label class.......we have to import the java.awt.* t2= new JTextField(); l3 =new JLabel() ; b1.addActionListener(new Event()); jf.setLayout(null); l1.setBounds(50,50,200,20); //it is the function of container classes t1.setBounds(150,50,100,20); l2.setBounds(50,80,100,20); t2.setBounds(150,80,100,20); b1.setBounds(80,110,100,20); l3.setBounds(50,130,300,30); jf.add(l1); jf.add(t1); jf.add(l2); jf.add(t2); jf.add(b1); jf.add(l3); } class Event implements ActionListener { public void actionPerformed(ActionEvent E) { int i=Integer.parseInt(t1.getText()); int j= Integer.parseInt(t2.getText()); int z=i+j; l3.setText("your adding result is"+z); } } } public class Guiprocheck { public static void main(String [] args) { A a1=new A(); //ham khi bhi frame khi bhi component bana sakte hai aur use ham add kar sakte hai a1.gui(); //A.gui(); System.out.println("just after calling saurav function"); Scanner sc = new Scanner(System.in); int i=sc.nextInt(); System.out.println("inputed value"+" the value is "+i); //a1.jf.setVisible(true); //we can make true from any anywhere a/c to rule and regulation of the varibles //boolean type ....not as string as"true" } }
add import java.awt.event.*; import javax.swing.*; import java.awt.event.*; public class additionSwing extends JFrame{ JLabel l1,l2,l3,l4; JTextField t1,t2; JButton b1; public additionSwing(){} public additionSwing(String s){ super(s); } public void setComponent(){ l1 = new JLabel("Addition of two Number"); l2 = new JLabel("First Numner"); l3 = new JLabel("Second Number"); l4 = new JLabel("Sum"); t1 = new JTextField(); t2 = new JTextField(); b1 = new JButton("add"); setLayout(null); l1.setBounds(50,50,200,20); l2.setBounds(50,80,100,20); t1.setBounds(150,80,100,20); l3.setBounds(50,130,100,20); t2.setBounds(150,130,100,20); b1.setBounds(80,180,100,20); l4.setBounds(50,240,200,20); b1.addActionListener(new Handler()); add(l1); add(l2); add(t1); add(l3); add(t2); add(l4); add(b1); } class Handler implements ActionListener{ public void actionPerformed(ActionEvent e){ int a = Integer.parseInt(t1.getText()); int b = Integer.parseInt(t2.getText()); int s = a+ b; l4.setText("Result is"+s); }
} public static void main(String args []){
additionSwing ad = new additionSwing("Addition of two number"); ad.setComponent(); ad.setSize(300,300); ad.setVisible(true); ad.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
sir ,,,actually in the ending of the video before you last compile and run the title was swing example and it shows addition of two no.....while what you wrote in l3 was """result is"""" it shows """sum is""".......also l4 is not assigned anything. .... sir its a very big doubt of me plz..response i also asked you some queries in the c lectures but you didn't replied now eagerly waiting for your reply
q k last pr jo code run huwa tha us mein sirf 3 label thy to l4 jis mein hm ny result rkha tha us ki jga l3 use ho raha hy. q k yaha result l3 mein rkha hy.or hmien koi or programme run kr k chutia bna dia gya hy.
I think there is something logical error in the code....Sir aapne l3 kyu use kiya in function action performed....and on compiling there is no error and add button event is not working...plz help
sir min ne ap ki vidios se java kafi sekh li hi mujhe android sekhnee ka shok hi ab wo kese sekho ap ke koi tutorial hi to plez inform me aur ager ni hi to mujhe link send kijiye jis se min sekh sakoon and thanks sir you and your team for java SE
hello sir ! i have completed entire course from ur videos. u have done amazing work. I am really thankful to you. Also,i am curious to watch more videos of urs. please start creating again sir .it will be great help for everyone who want to learn java.
Sir I have requested to you please sir Ek project bhi Aap implementat kr kr btaeye taki hm logo ko thoda implementation ka knowledge ho....... Please sir Bcz. We don't have knowledge how develop projects using this by using..
Thats it?? no more videos ..? It was a nice journey xD ,so it means java SE is complete ? Now i am Java Developer xD , Thank you sir :) , it took me almost 4 week to learn java but its worth it, since i am from animation field . Next Stop Android App . xD
Dear sir, I have a question. when I am clicking on Add button after providing the values , the result is displayed but it replaces the text second number . so, please tell me the solution for it?
Sir aap ne ...setText function mai massage diya h"results is" .....but sir jb aap program rum kar rahe h to vata par "sum is " print kiya hua dikh rha h
Today I have completed this series. Now I know java very well . Thank you. Great
Hi sir I am planning to learn Java , so can I prefer this playlist by saurabh shukla or is there anyone better, i mean is the playlist complete?
@@Watchersss Yes, This playlist will really help you to learn java in depth.
@@siddhantagrawal7352 I am thinking that I should learn Java syntax basically how to write java from apna college playlist and for conceptual clarity i am thinking to watch this playlist, because as far as I have watched he doesn't teach how to code but he explains the basic or advance concepts clearly, what do you think on this idea??
@@Watchersss Yes, it sound good
Last video of 75 lectures the whole java core lectures was great....i learned alot from it.
Hello sir this is vijay i wana say thank you..because of u i have completed my core java...without spending a penny..on other tutions ... where they charge thousands of ruppes and the teaching faculty is also not proper. ....you are the best....
Does this course cover full Java or something's are missing
Sir , content to bahut h TH-cam pr but pta nhi kyo aaka content dekhte hi bharosa aur vishwas ho jata h ki yahi sahi h aur yahi best h ....... Thank you so much sir
@@shreyanshshukla7210 accha good boy
@@Watchersss kyo purani yaade fir se yaad dila rha h bhai, 4 saal pahle ki memories 🥲
@@shreyanshshukla7210 aaj aak kaha job kr raha ho ?
Thank You so Much Saurabh Sir..!
I have learnt java From scratch after watching all the videos you posted on this channel..!
Now i want to learn more and more as my desire is to become object oriented programmer
Sir i dont have any idea about java and its working process...but after seeing your lectures ...im now good at java programming ...THANK YOU very much sir
Started this playlist at 8 july completed 19 July..thanks saurabh shukla sir..for being the good part of life as u introduce java to me.
Thank U sirG i just done with java your videos are very helpful and You Are Awesome🙏🙏🙏
I loved your lecture sir,you are mind-blowing teacher of programming. Thank You
Hello sir,this is Chandan and i want to say thanks for these intresting logical and easy learning videos of programming..these video helps us alot in learning......very useful really...
sir pleas add 3 to 4 more projects in this play list so that we can learn more practically programming
today i have completed this series. And the entire journey was really very interesting you have taught every concepts from scratch at last i want to say thanks for such a wonderfull series.
it is possible to done this 75 videos playlist in one month
@@techflying8660 it's totally up to you how dedicatedly you learn every day in my opinion you can do within a month
thank u lot Sir for ur videos. I have studied complete course of core java from ur video lectures . ur teaching methodology is excellent.u have cover each n every portion of core java including some concepts of swings.
thank you sir for java series.
please uplad advance java lecture
all good sir, but one thing..
you have written l3.setText("result is"+s), but your output is 'sum is...' that means your showing other programs output.
sir plzz load lectures on advance java series ....your way of teaching is awesome plzzz sir
You are great sir
The way you explain is commendable.
This Video concepts are too easy to understand
Thank you My Sir G
Thank you so much dear sir, Today I have just completed this Playlist and become much efficient in java programming.This playlist makes me easier to understand in depth and not just me but thousands of students over the world learned form you and still learning Thank You So much.Love Respect From Pakistan
In this playlist all java topics cover or not??
@@samipsamani7 yes almost all topics but i suggest you to watch Sir Navin Reddy's tutorial on java too its covers the advance java, video is proximately 6 hour long.
@@fahadkhan-hf6ec watch durga sir video for depth knowledge
Thanks for giving a simple explanations for Java Coding. Thanks Saurabhji.
Thanks for this series of java..... I have completed my basic by the help of this tutorial series
I'm Mechanical engineering student but I don't know any programming language I will start with Java for placement...please reply
sir thank you verrrrrrrrrrrrrrryyyyyyyyy much for all thse videos.. you are an amazing teacher
Sir, i have watched your complete series of java and it has helped me a lot . Thank you sir :)
Your way of explaining the concepts is amazing !!
THANK YOU SO MUCH SIR :)
"Huge respect for you".
Is it has covered all topics??
Same qus, in this playlist cover all topics in java or not???
Sir aap sevlet and jsp pr bhi hindi series banaiye na,bht help milegi hum students ko, aapka smjhane tarika bht zyada acha h.
Best teacher🎉❤
sir plz upload the complete java core material..we will waiting for tht...buz we could not understand better java in books and its boreing too
Sir u are the best teacher.You explain very best.
the way of explaining is awesome , god bless you ...
Hello Sir,
Sabse Pahle Dil Se Shukriya.... aapke is prayas ke liye...
ek confusion hai ?
1-> Why l3 assigning sum?
2-> Why result is "Sum is" while in code you written "Result is"?
I think it was the second code that the sir runs..
Thanks for your valuable lecture sir...your teaching style is so good..you r one of the favourite teachers sir..lots of love❤❤❤❤
Thank You SirG for all your videos and teaching, you are doing Great work. All Videos are awesome and I request you to Please sir upload videos on JDBC.
Thank you, Sir, for this awesome and helpful Playlist.
Sir, you are doing great job for huminity💗💗
Sir this video was totally good but I want to learn further related to gui pls .. sir develop more videos related to Gui interface
hello Sir, I watched your videos that helped me a lot to understand programming languages. I, now, request you to upload a video about "ACTION LISTENER". I know how ACTION LISTENER works in the same class but i don't know how to use an action listener in different class using packages.
I suggest you to write a LOGIN Program using packages and classes. There should be different packages. One should contain classes for GUI and the other should contain classes for Logic . This will help me to understand how an Action Listener works in a different class of different package.
That's it.
Thank you sir ..
Apka teaching style bht acha hai
really thankful for these qualitative lectures .sir I am unable to compile program of swing class .JLable is not working properly and giving error .pls help me in this .
Thank you so much sir for the java tutorial series....
Thank u sir these videos were really affected for me it helps me alot
Sir when You'll Upload Rest of The Vedeos i'm really needy for these bcz i've completed almost all of the lectures of java Plz sir get Hurrry
Sir
l3.setText(""Result is"+s); 22:19
and output Sum is 23:17
sir,kripya nirantar java ki video upoad kare. Hame aapke aagmi video ki hamesha pratiksha rahti hain...
Hello sir I appreciate your all preparations and explanations ..Can you please make and upload some videos for JSP,Spring boot,servlet,and maven?
Hi sir,please make lectures on FACTORY CLASSES and METHODS. its urgent, because in jdbc many FACTORY CLASSES and METHODS are there .
sir you are awesome..
wont it be better if you make more videos for event handling..
thanks a lot sir...please upload more videos in swing event handling
when multiple catch blocks are defined, how does a try statement determine which catch clause should be used to handle an exception? What happens when there is no catch clause after a try block?
please answer me sir...
hi sir, please make lectures on jdbc . thank you .
Sir class handler me label l4.setText("result is "+s); hoga kyuki l3 set krne pr second pr hi over ride ho jayega
Yes, but after running the program it is printed where l4 is placed... Don't know how it's happening.
Actual here sir has removed the l4 variable sir has taken only l1, l2 and l3
👍🏻
Sir please upload servlet jsp jstl struts tutorials please sir
a.java tutorial
Sir, Kindly upload JavaScript tutorials as well.
You prolly dont care but if you're bored like me during the covid times then you can watch all of the latest series on InstaFlixxer. Have been streaming with my gf lately =)
@Kylan Evan Yup, been using instaflixxer for since november myself :D
@Kylan Evan definitely, have been watching on InstaFlixxer for years myself :)
@Kylan Evan Definitely, I've been using instaflixxer for months myself :D
🙏Thank you so so much sir... For these excellent videos.
Sir pl explain unicode and utf 8
Sir please kindly use eclipse for Java program
finally completed this playlist !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
hey plz plz reply, should I watch this series or is it outdated? bhai plz reply Kar 😢
sir mai aapse java seekh rha hun. aap bahut acha padate hain
sir mai book lena chata hun please mujhe koi book bataye jiski language aasan ho aur jisse theoretical plus practice bhi jaye
just one word Legendary.
Thankyou so much for this tutorial..
package aplet;
import javax.swing.*;
import java.awt.event.*;
public class SwingEvent extends JFrame{
JLabel l1,l2,l3,l4,l5;
JTextField t1,t2,t3;
JButton b1,b2,b3;
public SwingEvent(){}
public SwingEvent(String a)
{
super(a);
}
public void setComponents(){
l1=new JLabel("Addition of number");
l2=new JLabel("First Number");
l3=new JLabel("Second Number");
l4=new JLabel();
t1=new JTextField();
t2=new JTextField();
b1=new JButton("Addition Of Number");
setLayout(null);
l1.setBounds(50,50,2000,20);
l2.setBounds(50,80,100,20);
t1.setBounds(150,80,100,20);
l3.setBounds(50,130,100,20);
t2.setBounds(150,130,100,20);
b1.setBounds(80,180,100,20);
l4.setBounds(80,240,200,20);
b1.addActionListener(new Handler());
add(l1);
add(l2);
add(l3);
add(l4);
add(t1);
add(t2);
add(b1);
}
class Handler implements ActionListener{
public void actionPerformed(ActionEvent e){
int a=Integer.parseInt(t1.getText());
int b=Integer.parseInt(t2.getText());
int s=a+b;
l4.setText("Result is"+s);
}
}
public static void main(String[] args) {
SwingEvent J2=new SwingEvent("Addition");
J2.setComponents();
J2.setSize(300,300);
J2.setVisible(true);
J2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
when u r going to upload lectures on Android ml
sir you really explained everything in a very clear way..... here is my code ..there is no any compilation error but only one component is showing on gui container why,, sir can you check it please
import javax.swing.*;
import java.util.*;
import java.lang.*;
import java.awt.event.*; //if we include java.awt.* only it will give an error.. we have to include the package as shown in this code
class A
{
//JFrame jf=new JFrame("VIDYAPATI");
String s1="square";
String s2="kumar";
//s2=s1; identifier is required here a/c to compilation we can't do here in the class member variables
String s3=s1.toUpperCase();
JFrame jf=new JFrame("VIDYAPATI"+s3);
// jf=new JFrame("VIDYAPATI"+s2);
JButton b1=new JButton("Add");
JLabel l1=new JLabel("first no.");
//l3=new JLabel("first no.");
JTextField t1=new JTextField();
JLabel l2=new JLabel("second no."); //to use the label class.......we have to import the java.awt.*
JTextField t2= new JTextField();
JLabel l3 =new JLabel() ;
JTextField t3;
void gui()
{
jf.setVisible(true);
System.out.println("i am in the class A saurav function ");
System.out.println("before viisble ");
jf.setSize(400,400);
System.out.println("just after visible ");
jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE); // to end the whole program,,, bas yah ek baar chalna chahiye during code warna puri program kbhi end hi nhi hogi.
System.out.println("just after Exit on close");
s2=s1; //but we can do here which was not doable in our upper part codes
System.out.println(s1+s2);
jf.add(b1);
b1.addActionListener(new Event());
jf.setLayout(null);
l1.setBounds(0,0,50,20); //it is the function of container classes
l1.setBounds(0,30,50,20);
l1.setBounds(0,60,50,20);
l1.setBounds(0,90,50,20);
l1.setBounds(0,120,50,20);
l1.setBounds(0,150,50,20);
jf.add(l1);
jf.add(t1);
jf.add(l2);
jf.add(t2);
jf.add(l3);
jf.add(l1);
}
class Event implements ActionListener
{
public void actionPerformed(ActionEvent E)
{
int i=Integer.parseInt(t1.getText());
int j= Integer.parseInt(t2.getText());
int z=i+j;
l3.setText("your adding result is"+z);
}
}
}
public class Guiprocheck
{
public static void main(String [] args)
{
A a1=new A();
//ham khi bhi frame khi bhi component bana sakte hai aur use ham add kar sakte hai
a1.gui();
//A.gui();
System.out.println("just after calling saurav function");
Scanner sc = new Scanner(System.in);
int i=sc.nextInt();
System.out.println("inputed value"+" the value is "+i);
//a1.jf.setVisible(true);
//we can make true from any anywhere a/c to rule and regulation of the varibles //boolean type ....not as string as"true"
}
}
Sir im from pakistan I really like your teaching style..please give more lectures on event handling..Thanks
Hi Saurabh sir , thanks a lot for nice explanation. Can we implement actionlistener directly in example class instead of creating internal class. I may be wrong sir. thanks n advance :)
Well done. make video on android studio
sir pls explain use of getSource() method and getActionCommand method in Event Handling.
hlo sir ur all vedeos are very helpful for me thank u sir . sir plz do more for GUI for making gaming graphic plz sir
okk ......sir i got the bug of my code and the correct code is here
import javax.swing.*;
import java.util.*;
import java.lang.*;
import java.awt.event.*; //if we include java.awt.* only it will give an error.. we have to include the package as shown in this code
class A
{
String s1="square";
String s2="kumar";
//s2=s1; identifier is required here a/c to compilation we can't do here in the class member variables
String s3=s1.toUpperCase();
JFrame jf=new JFrame("VIDYAPATI"+s3);
JLabel l1,l2,l3;
JTextField t1,t2;
JButton b1;
// jf=new JFrame("VIDYAPATI"+s2)
void gui()
{
jf.setVisible(true);
System.out.println("i am in the class A gui function ");
System.out.println("before visible ");
jf.setSize(500,400);
System.out.println("just after visible ");
jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE); // to end the whole program,,, bas yah ek baar chalna chahiye during code warna puri program kbhi end hi nhi hogi.
System.out.println("just after Exit on close");
s2=s1; //but we can do here which was not doable in our upper part codes
System.out.println(s1+s2);
b1=new JButton("Add");
l1=new JLabel("first no.");
//l3=new JLabel("first no.");
t1=new JTextField();
JLabel l2=new JLabel("second no."); //to use the label class.......we have to import the java.awt.*
t2= new JTextField();
l3 =new JLabel() ;
b1.addActionListener(new Event());
jf.setLayout(null);
l1.setBounds(50,50,200,20); //it is the function of container classes
t1.setBounds(150,50,100,20);
l2.setBounds(50,80,100,20);
t2.setBounds(150,80,100,20);
b1.setBounds(80,110,100,20);
l3.setBounds(50,130,300,30);
jf.add(l1);
jf.add(t1);
jf.add(l2);
jf.add(t2);
jf.add(b1);
jf.add(l3);
}
class Event implements ActionListener
{
public void actionPerformed(ActionEvent E)
{
int i=Integer.parseInt(t1.getText());
int j= Integer.parseInt(t2.getText());
int z=i+j;
l3.setText("your adding result is"+z);
}
}
}
public class Guiprocheck
{
public static void main(String [] args)
{
A a1=new A();
//ham khi bhi frame khi bhi component bana sakte hai aur use ham add kar sakte hai
a1.gui();
//A.gui();
System.out.println("just after calling saurav function");
Scanner sc = new Scanner(System.in);
int i=sc.nextInt();
System.out.println("inputed value"+" the value is "+i);
//a1.jf.setVisible(true);
//we can make true from any anywhere a/c to rule and regulation of the varibles //boolean type ....not as string as"true"
}
}
add import java.awt.event.*;
import javax.swing.*;
import java.awt.event.*;
public class additionSwing extends JFrame{
JLabel l1,l2,l3,l4;
JTextField t1,t2;
JButton b1;
public additionSwing(){}
public additionSwing(String s){
super(s);
}
public void setComponent(){
l1 = new JLabel("Addition of two Number");
l2 = new JLabel("First Numner");
l3 = new JLabel("Second Number");
l4 = new JLabel("Sum");
t1 = new JTextField();
t2 = new JTextField();
b1 = new JButton("add");
setLayout(null);
l1.setBounds(50,50,200,20);
l2.setBounds(50,80,100,20);
t1.setBounds(150,80,100,20);
l3.setBounds(50,130,100,20);
t2.setBounds(150,130,100,20);
b1.setBounds(80,180,100,20);
l4.setBounds(50,240,200,20);
b1.addActionListener(new Handler());
add(l1);
add(l2);
add(t1);
add(l3);
add(t2);
add(l4);
add(b1);
}
class Handler implements ActionListener{
public void actionPerformed(ActionEvent e){
int a = Integer.parseInt(t1.getText());
int b = Integer.parseInt(t2.getText());
int s = a+ b;
l4.setText("Result is"+s);
}
}
public static void main(String args []){
additionSwing ad = new additionSwing("Addition of two number");
ad.setComponent();
ad.setSize(300,300);
ad.setVisible(true);
ad.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
sir ,,,actually in the ending of the video before you last compile and run the title was swing example and it shows addition of two no.....while what you wrote in l3 was """result is"""" it shows """sum is""".......also l4 is not assigned anything. ....
sir its a very big doubt of me plz..response
i also asked you some queries in the c lectures but you didn't replied now eagerly waiting for your reply
Yeah bro ,I have the same doubt as u have.but sir has not responded yet.if u r clear about it then plz tell me
q k last pr jo code run huwa tha us mein sirf 3 label thy to l4 jis mein hm ny result rkha tha us ki jga l3 use ho raha hy. q k yaha result l3 mein rkha hy.or hmien koi or programme run kr k chutia bna dia gya hy.
yes it an error , sir n kooi aur file bhi hoskta h save krrkhi ho aur vo run krdi h sir n
@@haiderbajwa5413 bhai aasa nhi h glti hogai sir s aur esse jayada khuch nhi yeh abusing words use krna tik nhi hoga
Sir,I want to know what is the difference between type casting and type conversion.
I think there is something logical error in the code....Sir aapne l3 kyu use kiya in function action performed....and on compiling there is no error and add button event is not working...plz help
l3 issliye use kia hai qki jo int a aur int b ko add karke result aayega, usse l3 mein set karke display karna hai JFrame mein.
ya.. tht must be l4..
Replace L3 by L4
Thank you very much sir for all the videos...These videos help me a lot....Sir where are the lecture no. 65 to 69...Please reply sir....
Thanx a lot sirg....mysirg...
Thnks sir I watched whole playlist
It helped me
sir who invokes the main() method in java, c, c++ and c# programming language?
Great teacher....
sir min ne ap ki vidios se java kafi sekh li hi mujhe android sekhnee ka shok hi ab wo kese sekho ap ke koi tutorial hi to plez inform me aur ager ni hi to mujhe link send kijiye jis se min sekh sakoon and thanks sir you and your team for java SE
I salute you sir.
sir plz reply , is this complete java tutorial video
Yes
@@javabysaurabhshuklasir3459 thanks you sir
@@javabysaurabhshuklasir3459 sir some time reply us too... Plzzzz🙏
Sir ky yeh end vedio h basic programming of Java ka??
sir end main apne l3 main kyu set kiya l4 main kyu nhi ?????
hello sir ! i have completed entire course from ur videos. u have done amazing work. I am really thankful to you. Also,i am curious to watch more videos of urs. please start creating again sir .it will be great help for everyone who want to learn java.
Sagar kya ap ko java pori a gae hy??agar men yh course complete kar lun to men kya kya bnany k qabil ho jaun ga
Sir please upload more swing in java videos play list
sir may u upload the lecture on socket programming
can you please tell me where u have used the L4 label...and why u have overwritten l3??
Thanks a lot "SIR"!!!
Sir I have requested to you please sir Ek project bhi Aap implementat kr kr btaeye taki hm logo ko thoda implementation ka knowledge ho....... Please sir Bcz. We don't have knowledge how develop projects using this by using..
sir plz upload rest of the videos plz do hurry....we are waiting plz plz plz......
Thank you sir g please upload aur videos in java
Thats it?? no more videos ..? It was a nice journey xD ,so it means java SE is complete ?
Now i am Java Developer xD , Thank you sir :) , it took me almost 4 week to learn java but its worth it,
since i am from animation field .
Next Stop Android App . xD
great work sir
Dear sir,
I have a question.
when I am clicking on Add button after providing the values , the result is displayed but it replaces the text second number . so, please tell me the solution for it?
Sir aap ne ...setText function mai massage diya h"results is" .....but sir jb aap program rum kar rahe h to vata par "sum is " print kiya hua dikh rha h
yes sir 66 to 70 video in not on your site and also on Your youtube channel and sir please upload jdbc and java Networking and java beans
Sir , is that syllabus completed? upto 72 lectures.aftrv event handling when u will upload further lectures.
Very helpful videos.
SIR?
HAS THE COURSE BEEN COMPLETED?
PLZ REPLY
thank you so much sir
for uploading this Video
Sir can u make a tutorial of adding a video in JFrame in java
SIR EVENT HANDLING ON LISTS,MENUS,CHECK BOXES ETC . HOW TO DO IT SIR
Very use full.thank u.