Тёмный

Java prog#15.How To Open New Jframe From A jButton in Netbeans java 

ProgrammingKnowledge
Подписаться 1,8 млн
Просмотров 225 тыс.
50% 1

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqc...
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
netbeans java tutorial
How To Open New Jframe From A Button
Clicking A Button To Open A New JFrame
Open Another Form With A Click Of A Button
Open JFrame Form With Button
Button to open JFrame
How to open new JFrame with clicking on button?
java - How to disable main JFrame when open new JFrame
How to open a JFrame from a button?
clickbutton event that opens up a new jframe in a separate window
Open a new JFrame from a button click
iit Learn java netbeans
java tutorial netbeans
"MySQL (Software)" "Database (Website Category)" "software tutorial" educational System Technology "NetBeans (Software)" Management Business Training Information Data Design Computer Solutions Using Systems "Software Tutorial" "SQLite Tutorial" "sqllite tutorial"

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 116   
@TheGameingMania
@TheGameingMania 11 лет назад
if close(); doesn't work just do dispose();
@montmor123
@montmor123 5 лет назад
TY man
@LorenzAgnote
@LorenzAgnote 4 года назад
Thank youu
@varadpansare2436
@varadpansare2436 3 года назад
thanks man had this error
@othmane2850
@othmane2850 8 лет назад
public void close(){ WindowEvent winClosingEvent = new WindowEvent( this, WindowEvent.WINDOW_CLOSING ); Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent( winClosingEvent ); }
@joanasflute
@joanasflute 5 лет назад
Where do i place that piece of code? it gives me errors everywhere...
@ashesoflove
@ashesoflove Год назад
@@joanasflute you probably have errors because you have to write: import java.awt.event.*; import java.awt.*; at the top of the code... you should place the close method below this, but above the comment that says 'warning do not modify the code below' etc
@ProgrammingKnowledge
@ProgrammingKnowledge 12 лет назад
Take a button called BACK button in new jframe and write the same code.....
@ManiYaOfficial
@ManiYaOfficial 5 лет назад
Thanks! Play the video in x1.5, you guys!
@machirofunz
@machirofunz 3 года назад
if (user.equals("admin") && pass.equals("1234")) { dispose(); Form1 go = new Form1(); JOptionPane.showMessageDialog(showoutput, "Login successfully"); go.setVisible(true); } else { JOptionPane.showMessageDialog(showoutput, "Invalid Username or Password"); }
@sourabhsethi1962
@sourabhsethi1962 11 лет назад
i am creating a create read update delete(CRUD) +search operation's application with same concepts. how should i use close() and my mainjframeview class throws an error at its first constructor as single frame application because i m using multi frame application .. pls help me on this issue of my application
@excuse98
@excuse98 12 лет назад
if i click close of the new jframe the program terminate..i want to go back to the previous frame without terminating the program
@OverG88
@OverG88 11 лет назад
Hah! Its simple: Do not use multiple JFrames. It creates very unfriendly user experience. Use JTabbedPane or CardLayout. Regards!
@banana9880
@banana9880 3 года назад
i understand this more than my programming teacher AHAHHA
@stuartmwoods
@stuartmwoods 9 лет назад
videos are the most helpful series that I have ever seen. Thank you so much for taking the time to make them. You are THE MAN!
@frankedward4977
@frankedward4977 3 года назад
pro tip: you can watch series at flixzone. Been using it for watching all kinds of movies recently.
@eddiematthias6049
@eddiematthias6049 3 года назад
@Frank Edward definitely, I've been using Flixzone for since december myself :D
@kartermorgan5795
@kartermorgan5795 3 года назад
@Frank Edward yup, I've been watching on flixzone for months myself =)
@JasminWilson95
@JasminWilson95 9 лет назад
thanks! was helpful.. But can you tell me.. If i click the button 2 or more times, the window appears that many time so how can we restrict from doing that i mean window should open only once?
@getuhailu7357
@getuhailu7357 Год назад
JAVA prog# from 1 - from 13 videos I want to views
@IamJoshDylan
@IamJoshDylan 9 лет назад
i did exactly this but in netbeans 8 and it doesnt seem to open my other frame. help please? its very urgent :(
@Soderlover
@Soderlover 7 лет назад
Hi! I am having the same problem right now and it feels like I've tried "everything", did you solve it? And if so would you like to tell me how? :)
@kolchay2958
@kolchay2958 10 лет назад
close() is uderlined !! what to import ???
@youssefyasser7432
@youssefyasser7432 7 лет назад
you have to cilck"ALT+Enter"
@shahzadtechworld7690
@shahzadtechworld7690 5 лет назад
Events action performed par click karke code nahi aata hai help
@prasanthcheenu
@prasanthcheenu 10 лет назад
Thank you loads and loads
@Patrickteodoro15
@Patrickteodoro15 8 лет назад
there's an error when i put the close();i did the dipose things
@judododude99
@judododude99 8 лет назад
+Patrick Teodoro Instead of using "close();" try "this.setVisible(fals);" in replace of it. This seems to work well for me.
@JaskaranSingh-gd1qn
@JaskaranSingh-gd1qn 8 лет назад
Right!!!Thnx Bud :)
@MrOrzKid
@MrOrzKid 7 лет назад
Fucking legend!
@lonelynyamudeza6133
@lonelynyamudeza6133 7 лет назад
you are the best man...thanks a lot
@sopp2074
@sopp2074 6 лет назад
thank you so much
@Wingly113
@Wingly113 10 лет назад
thank you very much!
@shabanasheikh6058
@shabanasheikh6058 7 лет назад
thank you very much
@arjunprasanth3007
@arjunprasanth3007 7 лет назад
I tried using a one line code - " new frame name.setVisible(true);" . It was working for a while and suddenly it stopped. I tried to change the code according to the warnings but it didn't do anything. Your code helped me and I understood it's working well. But close() isn't working for me and asking me to create that method. I need help for this.
@blackredzb1
@blackredzb1 9 лет назад
I get an error when i type .setVisible(); what do I do??
@axelbajan7625
@axelbajan7625 9 лет назад
+MonZ Agner u must put either true or false inside the parenthesis
@yetwalealemayehu8834
@yetwalealemayehu8834 9 лет назад
I have not word to say thank u.
@06kikas3
@06kikas3 6 лет назад
Man, I have JPanel form and a Jframe form, in the Jframe form I have a button wich calls/generate the JPanel Form in the Jframe form, that Jpanel have a button that I want to use to open another JFrame form, trying this but it doesn't open.
@JuzaidiMdAli
@JuzaidiMdAli 11 лет назад
I have one main menu.Then after clicked one of the button in the main menu, i want to go to the next jframe. What is the coding ?
@shreyas707
@shreyas707 8 лет назад
This helped me. Thanks! :)
@priyakatyal7155
@priyakatyal7155 7 лет назад
sir my data was not updated after calling update_table method if i call it from other frame. How to solve this problem please help
@kashishbehl1617
@kashishbehl1617 8 лет назад
kinna dheela banda hai bhai tu
@jigarvavadia494
@jigarvavadia494 10 лет назад
hello there i have one question that when i click on that button it will open new frame but when i click on it again it will again open same frame one more time i don't want that so what to do for that type of problem
@mbaymahubert1656
@mbaymahubert1656 9 лет назад
thanks a lot
@gabrielgamrat
@gabrielgamrat 11 лет назад
In new jframe class you can write setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); instead on setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
@thiagohencke7230
@thiagohencke7230 9 лет назад
Nice, thanks!
@davidmac451
@davidmac451 5 лет назад
Helpful but much easier to follow if you just display the whole screen instead of zooming around.
@ROCKS.D_XEBEC
@ROCKS.D_XEBEC 3 года назад
thank you
@GLocarso
@GLocarso 5 лет назад
thanks mate.
@vageeshanvageesh5583
@vageeshanvageesh5583 5 лет назад
thank you so much bro over 100+ videos.all are gold ones..i learn lot ideas from those clips.you have a brain or hard disk?you will reach very big position in future.god bless you.
@avishkahettiarachchi8617
@avishkahettiarachchi8617 5 лет назад
thanks !
@jeanrodrigues6249
@jeanrodrigues6249 2 года назад
Trim
@pawansuryavanshi2270
@pawansuryavanshi2270 8 лет назад
Thanks but how to restrict the access of previous frame after opening the new frame.
@gerarddummettunedited2789
@gerarddummettunedited2789 8 лет назад
ty
@jeanrodrigues6249
@jeanrodrigues6249 2 года назад
Do
@raemacaya4034
@raemacaya4034 8 лет назад
cant see clear window yet... there is an error when i put the a.Visible(); ... no show about a.visible
@jimbernicolas9088
@jimbernicolas9088 8 лет назад
can i have source code for this tutorial? for educational only sir thanks much much
@hewtan22667
@hewtan22667 11 лет назад
if coding in netbeans 7.3 "Userino_frame s = new Userino_frame();" won't work but "Userino s = new Userino();" would work.
@bobpitale5064
@bobpitale5064 9 лет назад
tysm frnd :-*
@Raghav_Lall
@Raghav_Lall 8 лет назад
it always shows an error and despite of me creating the class asks to create the class again.
@RandomGermanBrit
@RandomGermanBrit 11 лет назад
Thanks for the guide, man, but you could have just written (My form's called Calc) Calc calc = new Calc; calc.show();
@excuse98
@excuse98 12 лет назад
btw can i ask how to get the integer variable in database and subtract it?
@0xCod3x
@0xCod3x 11 лет назад
call a method dispose() instead of close() to close the current frame.
@AashishBharat
@AashishBharat 11 лет назад
When your jFrame = x this.dispose(); new x().setVisible(true);
@adagabranca
@adagabranca 5 лет назад
i lveo yu
@codedgoat3868
@codedgoat3868 8 лет назад
Thank you! I use Eclipse but I figured it out!
@ZarehGorjian
@ZarehGorjian 11 лет назад
Great tutorial. Please continue making Java tutorials with Swing and NetBeans. Thank you!
@956Bernardo
@956Bernardo 12 лет назад
Thanks bro! Thanks :D I learning this and...nice, you helped me a lot You are big :D
@pamodakoggala
@pamodakoggala 11 лет назад
how can I stop opening same jframe while one is opened.
@zone2894
@zone2894 11 лет назад
\m/ awesome code bro your post has more priority than the video
@MrAalleexx1
@MrAalleexx1 11 лет назад
Good Video easy to fallow and direct to the point. Thank you.
@nonon-senseunboxing4248
@nonon-senseunboxing4248 8 лет назад
thanks. his video helps me alot. thanks
@chiefloksh3493
@chiefloksh3493 7 лет назад
Thanks man! It was helpful :-)
@iahne406
@iahne406 11 лет назад
there is an error it says that "can not find symbol method close()"
@ashesoflove
@ashesoflove Год назад
thats becuase you have to code the method yourself, he also has a video on how to code this method add it to the top of your code and it should work well
@farhiyaosman5313
@farhiyaosman5313 12 лет назад
Thank u for uploading all these videos....ur a lifesaver! :D
@yjens
@yjens 9 лет назад
you help a lot for my thesis :) thank you!
@LMGaming0
@LMGaming0 4 года назад
Thanks guys this is so important !
@ikrammohamed3279
@ikrammohamed3279 11 лет назад
the window design stuch in loading...
@lonelynyamudeza6133
@lonelynyamudeza6133 7 лет назад
you are amazing...thanks
@antariksh2009
@antariksh2009 10 лет назад
bro then how to go to the home frame then ..!!
@raekm
@raekm 12 лет назад
this may have saved my college semester. thanks
@marksheehan719
@marksheehan719 6 лет назад
Thanks! :) God bless bro!
@AyarPortugal
@AyarPortugal 7 лет назад
Thank you, you helped a lot!
@Linhpham-hk3xj
@Linhpham-hk3xj 9 лет назад
thank you very much ;)
@littlefrank90
@littlefrank90 7 лет назад
lol userino frame :3
@1229shakirali
@1229shakirali 12 лет назад
Thanks brother God bless you.
@ghuss34e
@ghuss34e 8 лет назад
thank u so much dude
@webtmsvideos
@webtmsvideos 11 лет назад
even easier: (new game()).show();
@101RaveGirl
@101RaveGirl 11 лет назад
thanks it was very helpfull :)
@apoorvpathak8226
@apoorvpathak8226 10 лет назад
thanks a lot dude
@AashishBharat
@AashishBharat 11 лет назад
To exit: System.exit(0);
@anselgonsalves1191
@anselgonsalves1191 8 лет назад
Thanks a lot...!!!!
@shoshesiddique8683
@shoshesiddique8683 9 лет назад
Thank you so much :)
@sonali9696
@sonali9696 7 лет назад
Thank you so much!!
@marajat1
@marajat1 11 лет назад
Thnx alot bro..god bless u
@tsogiaidze
@tsogiaidze 10 лет назад
thank you author.
@yudapratama5552
@yudapratama5552 10 лет назад
thanks a lot bro!
@shrirammishra2959
@shrirammishra2959 6 лет назад
Thank you so much
@emanonscarlett421
@emanonscarlett421 6 лет назад
thank you!
@leandrocadete
@leandrocadete 11 лет назад
Usefull for me, thanks
@Hamlock_
@Hamlock_ 6 лет назад
Thanks, man
@rahulmanna856
@rahulmanna856 9 лет назад
thanks alot
@heralduz2427
@heralduz2427 7 лет назад
awesome!
@djaffarmr2367
@djaffarmr2367 11 лет назад
keep the good job :)
@5thRace
@5thRace 8 лет назад
Thanks
@97leDjo
@97leDjo 11 лет назад
Thanks man ! :)
@tambechristian
@tambechristian 11 лет назад
Thank you!
@elqd91
@elqd91 11 лет назад
thank you :D
@hewtan22667
@hewtan22667 11 лет назад
thanks