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

Поділитися
Вставка
  • Опубліковано 20 вер 2024
  • ★★★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"

КОМЕНТАРІ • 116

  • @TheGameingMania
    @TheGameingMania 11 років тому +25

    if close(); doesn't work just do dispose();

  • @stuartmwoods
    @stuartmwoods 9 років тому +3

    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 років тому +1

    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?

  • @ZarehGorjian
    @ZarehGorjian 11 років тому

    Great tutorial. Please continue making Java tutorials with Swing and NetBeans.
    Thank you!

  • @raekm
    @raekm 12 років тому

    this may have saved my college semester. thanks

  • @MrAalleexx1
    @MrAalleexx1 11 років тому

    Good Video easy to fallow and direct to the point. Thank you.

  • @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.

  • @farhiyaosman5313
    @farhiyaosman5313 12 років тому

    Thank u for uploading all these videos....ur a lifesaver! :D

  • @ManiYaOfficial
    @ManiYaOfficial 5 років тому

    Thanks! Play the video in x1.5, you guys!

  • @othmane2850
    @othmane2850 8 років тому +12

    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.....

  • @LMGaming0
    @LMGaming0 4 роки тому

    Thanks guys this is so important !

  • @davidmac451
    @davidmac451 5 років тому

    Helpful but much easier to follow if you just display the whole screen instead of zooming around.

  • @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

  • @yetwalealemayehu8834
    @yetwalealemayehu8834 9 років тому +1

    I have not word to say thank u.

  • @OverG88
    @OverG88 11 років тому +1

    Hah! Its simple: Do not use multiple JFrames. It creates very unfriendly user experience. Use JTabbedPane or CardLayout. Regards!

  • @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

  • @excuse98
    @excuse98 12 років тому

    btw can i ask how to get the integer variable in database and subtract it?

  • @gabrielgamrat
    @gabrielgamrat 11 років тому

    In new jframe class you can write setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    instead on
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

  • @pawansuryavanshi2270
    @pawansuryavanshi2270 8 років тому

    Thanks but how to restrict the access of previous frame after opening the new frame.

  • @raemacaya4034
    @raemacaya4034 8 років тому

    cant see clear window yet...
    there is an error when i put the a.Visible(); ... no show about a.visible

  • @yjens
    @yjens 9 років тому

    you help a lot for my thesis :) thank you!

  • @Wingly113
    @Wingly113 10 років тому

    thank you very much!

  • @1229shakirali
    @1229shakirali 12 років тому

    Thanks brother God bless you.

  • @956Bernardo
    @956Bernardo 12 років тому

    Thanks bro! Thanks :D
    I learning this and...nice, you helped me a lot
    You are big :D

  • @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.

  • @0xCod3x
    @0xCod3x 11 років тому

    call a method dispose() instead of close() to close the current frame.

  • @prasanthcheenu
    @prasanthcheenu 10 років тому +2

    Thank you loads and loads

  • @nonon-senseunboxing4248
    @nonon-senseunboxing4248 8 років тому

    thanks. his video helps me alot. thanks

  • @shabanasheikh6058
    @shabanasheikh6058 7 років тому

    thank you very much

  • @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

  • @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 ?

  • @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.

  • @codedgoat3868
    @codedgoat3868 8 років тому

    Thank you! I use Eclipse but I figured it out!

  • @kolchay2958
    @kolchay2958 10 років тому +2

    close() is uderlined !! what to import ???

  • @banana9880
    @banana9880 3 роки тому

    i understand this more than my programming teacher AHAHHA

  • @zone2894
    @zone2894 11 років тому

    \m/
    awesome code bro
    your post has more priority than the video

  • @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

  • @shreyas707
    @shreyas707 8 років тому +1

    This helped me. Thanks! :)

  • @jimbernicolas9088
    @jimbernicolas9088 8 років тому

    can i have source code for this tutorial? for educational only sir thanks much much

  • @GLocarso
    @GLocarso 5 років тому

    thanks mate.

  • @marajat1
    @marajat1 11 років тому

    Thnx alot bro..god bless u

  • @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();

  • @leandrocadete
    @leandrocadete 11 років тому

    Usefull for me, thanks

  • @shahzadtechworld7690
    @shahzadtechworld7690 5 років тому

    Events action performed par click karke code nahi aata hai help

  • @lonelynyamudeza6133
    @lonelynyamudeza6133 7 років тому

    you are amazing...thanks

  • @thiagohencke7230
    @thiagohencke7230 9 років тому +1

    Nice, thanks!

  • @AyarPortugal
    @AyarPortugal 7 років тому

    Thank you, you helped a lot!

  • @blackredzb1
    @blackredzb1 9 років тому +1

    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

  • @ROCKS.D_XEBEC
    @ROCKS.D_XEBEC 3 роки тому

    thank you

  • @chiefloksh3493
    @chiefloksh3493 6 років тому

    Thanks man! It was helpful :-)

  • @Raghav_Lall
    @Raghav_Lall 8 років тому

    it always shows an error and despite of me creating the class asks to create the class again.

  • @pamodakoggala
    @pamodakoggala 11 років тому

    how can I stop opening same jframe while one is opened.

  • @marksheehan719
    @marksheehan719 6 років тому

    Thanks! :) God bless bro!

  • @Patrickteodoro15
    @Patrickteodoro15 8 років тому +3

    there's an error when i put the close();i did the dipose things

    • @judododude99
      @judododude99 8 років тому +12

      +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

  • @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? :)

  • @avishkahettiarachchi8617
    @avishkahettiarachchi8617 5 років тому

    thanks !

  • @101RaveGirl
    @101RaveGirl 11 років тому

    thanks it was very helpfull :)

  • @gerarddummettunedited2789
    @gerarddummettunedited2789 8 років тому

    ty

  • @bobpitale5064
    @bobpitale5064 9 років тому +1

    tysm frnd :-*

  • @anselgonsalves1191
    @anselgonsalves1191 8 років тому

    Thanks a lot...!!!!

  • @sonali9696
    @sonali9696 7 років тому

    Thank you so much!!

  • @tsogiaidze
    @tsogiaidze 10 років тому

    thank you author.

  • @tambechristian
    @tambechristian 11 років тому

    Thank you!

  • @Hamlock_
    @Hamlock_ 6 років тому

    Thanks, man

  • @yudapratama5552
    @yudapratama5552 10 років тому

    thanks a lot bro!

  • @djaffarmr2367
    @djaffarmr2367 11 років тому

    keep the good job :)

  • @Linhpham-hk3xj
    @Linhpham-hk3xj 9 років тому

    thank you very much ;)

  • @antariksh2009
    @antariksh2009 10 років тому

    bro then how to go to the home frame then
    ..!!

  • @heralduz2427
    @heralduz2427 7 років тому

    awesome!

  • @5thRace
    @5thRace 8 років тому

    Thanks

  • @rahulmanna856
    @rahulmanna856 9 років тому

    thanks alot

  • @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

  • @97leDjo
    @97leDjo 11 років тому

    Thanks man ! :)

  • @mbaymahubert1656
    @mbaymahubert1656 9 років тому

    thanks a lot

  • @adagabranca
    @adagabranca 5 років тому

    i lveo yu

  • @elqd91
    @elqd91 11 років тому

    thank you :D

  • @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.

  • @ikrammohamed3279
    @ikrammohamed3279 11 років тому

    the window design stuch in loading...

  • @AashishBharat
    @AashishBharat 11 років тому

    When your jFrame = x
    this.dispose();
    new x().setVisible(true);

  • @AashishBharat
    @AashishBharat 11 років тому

    To exit: System.exit(0);

  • @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");
    }

  • @getuhailu7357
    @getuhailu7357 Рік тому

    JAVA prog# from 1 - from 13 videos I want to views

  • @jeanrodrigues6249
    @jeanrodrigues6249 2 роки тому

    Trim

  • @jeanrodrigues6249
    @jeanrodrigues6249 2 роки тому

    Do

  • @webtmsvideos
    @webtmsvideos 11 років тому

    even easier: (new game()).show();

  • @littlefrank90
    @littlefrank90 7 років тому

    lol userino frame :3

  • @shrirammishra2959
    @shrirammishra2959 6 років тому

    Thank you so much

  • @apoorvpathak8226
    @apoorvpathak8226 10 років тому

    thanks a lot dude

  • @emanonscarlett421
    @emanonscarlett421 6 років тому

    thank you!

  • @hewtan22667
    @hewtan22667 11 років тому

    thanks

  • @shoshesiddique8683
    @shoshesiddique8683 8 років тому

    Thank you so much :)

  • @ghuss34e
    @ghuss34e 8 років тому

    thank u so much dude