Java Eclipse GUI Tutorial 8 # How To Open A Second jframe using First jframe

Поділитися
Вставка
  • Опубліковано 19 вер 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!
    Java: How do I close a JFrame while opening another one?
    How to close a jframe without closing the main program
    Close one JFrame without closing another?
    passing data from one jframe to another
    How to disable main JFrame when open new JFrame
    Opening new JFrame replaces current window
    NetBeans Forums - Opening new Jframe in existing window
    iit Learn java netbeans
    java tutorial netbeans

КОМЕНТАРІ • 72

  • @gamereplayhq
    @gamereplayhq 8 років тому +62

    For all those having problem in going back to Login Frame
    this is how it is done
    contentPane.setVisible(false); //look line-3 probably , if the name is contentPane then no need to change
    dispose(); //this will DISPOSE OFF Current Window
    login.main(null); //login is the class name which is ApplicationWindow and .main directs you to main //function of that class so it all rebegins :D

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

    Mr programingknowledge
    I tried to open the first frame by the second frame I mean go back usig same way of this lesson but it not work. Please can you help me? Thank you.

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

    It took me forever to find this video - this is exactly what I was trying to figure out

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

    Beautifully done! Thank you for the simplicity in your presentation

  • @ivannieves6827
    @ivannieves6827 8 років тому +9

    Could you please create a tutorial showing how to hide the second JFrame and returning to the main JFrame you mention that is the same but i don't get it

    • @asfaquekhalid
      @asfaquekhalid 7 років тому +4

      add any jButton to your second frame...
      inside the actionPerformed of the jButton
      write
      "your 2nd frame name".setVisible(false);
      "your 1st frame name".setVisible(true);
      or
      instead of the 2nd line
      you can also write
      new "1st frame class name"();

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

    You're a lifesaver! Thank you

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

    your tutorials are helpful.thank you man.

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

  • @nandakishore7070
    @nandakishore7070 4 роки тому +1

    How to create in STS??
    I don't see any Windows Builder section after clicking other

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

    Thanks alooooooooot u saved me a lot of time

  • @Snyoreetaaa
    @Snyoreetaaa 6 років тому +1

    setVisible method doesn't work with me! why?

  • @Loyz15
    @Loyz15 7 років тому +1

    what about same window but different jframe? i mean any other way not using disposing the window of login

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

    You are a life saver. Thank you thank you thank you! :)

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

    Thanks for this !! but i have a problem , i am showing a third frame from the second frame , when i do this , i don't want the second frame to dispose ! my third frame appeared under the second . can you help me with that please ?

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

    This is very helpful. Thank you.

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

    Great video series! Thanks

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

    I use this code and it works fine but once I click the "login button" the only thing that will pop out is just a tiny bar of another frame and not my second frame itself.
    Ps. I faced this error before I actually made the code works: The method setVisible(boolean) is undefined for the type Office.

  • @Ethan-ck6iz
    @Ethan-ck6iz 5 років тому

    You're a hero

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

    thank you very much sir that was helpful

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

    Hey there, how do I send a variable from the first form to the second? Just as an example, I want the second form to know the username typed in the first(login) form. How can I send that value? Thanks!

  • @PriyaSingh-gg9sl
    @PriyaSingh-gg9sl 8 років тому

    thank you so much....it's really helpful :)

  • @stevendorsey4850
    @stevendorsey4850 3 роки тому +1

    The command "selectWindow.setVisible(true);" no longer works in eclipse, because setVisible() is a non-static method, but it is being called from a *static* method, Login's method *"Main."* I see no way to reconcile the non-static method setVisible with being called from a static location.

  • @mareknguyen9893
    @mareknguyen9893 7 років тому +1

    Hello everyone!!! How can i reopen the frame Login from frame employeeinfo? thanks :D

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

    Java Eclipse GUI Tutorial 8 # How To Open A Second jframe using First jframe
    thank you :***

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

    thank you thank you thank you thank you thank you thank you !!!!!!!!!!!!!!!!
    you save me man :)

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

    love this guy

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

    Can you please show how to place a logout button in this second page and and the code related to it?

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

    Can someone help me out please .
    i am not getting the prompt even after creating my object suppose object name is 'r' then I am not getting the prompt for r.setVisible and it shows error.

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

    what can i do to change the icon to the JFrame?

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

    Man you're awesome

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

    Nice tutorial but I keep getting error when I want to close the second frame, the error I get is called:
    Cannot make a static reference to the non-static method dispose() from the type
    How to solve this?

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

    How to make a jar for this project , so i can use it in another pc??

  • @erouse666
    @erouse666 10 років тому +4

    The error is easily found in the IDE by looking at the BRIGHT RED ICON in the tab and the red mark to the right. If you click on the red mark to the right it takes you to the line with the error and highlights it. I appreciate the tutorials, but please learn how to use the product before trying to onstruct others.

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

      NotMyName Man, don't talk like that to him!!! His new at this and the name of the playlist is "
      Java eclipse tutorial (for absolute beginers)"

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

    Thank you for this!

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

    how i can get username value in second jframe(in other class)?

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

    TOPPPPP!! THANKS MATE..

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

    How to close one jframe without closing another
    Can u make a video on this

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

    ITs really helpful

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

    How do I navigate to Login screen from second JFrame?

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

    THANK YOU!!!!!!!

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

    I have a problem. Anyone know how to close second JFrame without closing first. setvisible(false) only hide buttons and etc but window is still there. :c

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

    not working error in set visible

  • @96ronen
    @96ronen 8 років тому

    thank you

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

    when he open second frame he said we should only have one main but the second frame also have main anyone know how can I delete the main of my second frame

  • @miguelojeda2390
    @miguelojeda2390 9 років тому +5

    From the Second frame to the Login Frame is not the same !

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

    thanks!

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

    Can you Show us sir how to logout

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

    I have problem

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

    Everything is good in all videos but what is guee it's G.U.I

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

    set your speed to 1.5 and see the magic :D :D

  • @231_akashkumar9
    @231_akashkumar9 3 роки тому

    i am having some issues can i get ur mail id or telegram id to show where am i stuck already

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

    thanks bro
    luv ya

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

    Everything is good in all videos but what is guee it's G.U.I