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

Sdílet
Vložit
  • čas přidán 28. 07. 2014
  • ★★★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.eqcm.net/r1KEj
    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

Komentáře • 72

  • @gamereplayhq
    @gamereplayhq Před 8 lety +63

    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

  • @kennedysarkodie607
    @kennedysarkodie607 Před 6 lety

    Beautifully done! Thank you for the simplicity in your presentation

  • @Kc123hereiam
    @Kc123hereiam Před rokem

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

  • @JohnMalcolmAnderson
    @JohnMalcolmAnderson Před 9 lety

    Great video series! Thanks

  • @sanwarhussain4470
    @sanwarhussain4470 Před 5 lety

    your tutorials are helpful.thank you man.

  • @joviemaedeguzman7390
    @joviemaedeguzman7390 Před 8 lety

    This is very helpful. Thank you.

  • @AlanDyarySherwany
    @AlanDyarySherwany Před 9 lety +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.

  • @elleZephiroth2
    @elleZephiroth2 Před 7 lety

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

  • @grasieleandrade2558
    @grasieleandrade2558 Před rokem

    You're a lifesaver! Thank you

  • @PriyaSingh-gg9sl
    @PriyaSingh-gg9sl Před 8 lety

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

  • @rheamae7425
    @rheamae7425 Před 8 lety

    Thank you for this!

  • @Newgen2491
    @Newgen2491 Před 6 lety

    thank you very much sir that was helpful

  • @aurora_vip
    @aurora_vip Před 5 lety

    Thanks alooooooooot u saved me a lot of time

  • @ScoobyRv
    @ScoobyRv Před 8 lety

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

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 10 lety

  • @johnpeabody8575
    @johnpeabody8575 Před 5 lety

    love this guy

  • @ammar4166
    @ammar4166 Před 8 lety

    Man you're awesome

  • @TheLKStar
    @TheLKStar Před 7 lety

    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!

  • @alessiogreggi376
    @alessiogreggi376 Před 7 lety

    TOPPPPP!! THANKS MATE..

  • @ivannieves6827
    @ivannieves6827 Před 8 lety +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 Před 7 lety +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"();

  • @Ethan-ck6iz
    @Ethan-ck6iz Před 5 lety

    You're a hero

  • @souranumaji4213
    @souranumaji4213 Před 8 lety

    ITs really helpful

  • @BlenderArtist3d
    @BlenderArtist3d Před 9 lety

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

  • @benson6465
    @benson6465 Před 5 lety

    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 ?

  • @Loyz15
    @Loyz15 Před 7 lety +1

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

  • @Acampandoconfrikis
    @Acampandoconfrikis Před 4 lety

    THANK YOU!!!!!!!

  • @96ronen
    @96ronen Před 8 lety

    thank you

  • @winlenglean4224
    @winlenglean4224 Před 8 lety

    thanks!

  • @raygilbers8274
    @raygilbers8274 Před 6 lety

    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 Před 7 lety

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

  • @hrishikeshupadhyaya7229

    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.

  • @arkapratimmandal6723
    @arkapratimmandal6723 Před 7 lety

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

  • @mareknguyen9893
    @mareknguyen9893 Před 7 lety +1

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

  • @nandakishore7070
    @nandakishore7070 Před 3 lety +1

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

  • @johnpaulsantiago2034
    @johnpaulsantiago2034 Před 3 lety

    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.

  • @terrabayt8532
    @terrabayt8532 Před 7 lety

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

  • @Snyoreetaaa
    @Snyoreetaaa Před 6 lety +1

    setVisible method doesn't work with me! why?

  • @josechagui35
    @josechagui35 Před 8 lety

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

  • @erouse666
    @erouse666 Před 9 lety +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 Před 9 lety

      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)"

  • @stevendorsey4850
    @stevendorsey4850 Před 3 lety +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.

  • @priyaranjanmantri9332
    @priyaranjanmantri9332 Před 6 lety

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

  • @Hazeltrap
    @Hazeltrap Před 7 lety

    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

  • @miguelojeda2390
    @miguelojeda2390 Před 9 lety +5

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

  • @BryanMarubz
    @BryanMarubz Před 9 lety

    How do I navigate to Login screen from second JFrame?

  • @Nu2526
    @Nu2526 Před 6 lety

    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

  • @lovespeed143
    @lovespeed143 Před 7 lety

    Can you Show us sir how to logout

  • @sanchitgyawali681
    @sanchitgyawali681 Před 7 lety

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

  • @mohamedtantawy5731
    @mohamedtantawy5731 Před 4 lety

    thanks bro
    luv ya

  • @abdullahjavaid6158
    @abdullahjavaid6158 Před 4 lety

    not working error in set visible

  • @locateMohit
    @locateMohit Před 8 lety

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

  • @hamzamerdzanic556
    @hamzamerdzanic556 Před 8 lety

    I have problem

  • @231_akashkumar9
    @231_akashkumar9 Před 3 lety

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

  • @locateMohit
    @locateMohit Před 8 lety

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