Java swing GUI tutorial #18: CardLayout

preview_player
Показать описание
If you have any question, leave it in comment section below.
Рекомендации по теме
Комментарии
Автор

Its from 10 years ago and very helpful thank you very much.

anonymousperson
Автор

Omg you are SO much more helpful and understanding than these complicated oracle docs.
Been trying to figure this out for days now, i felt bad every day i went to sleep without understanding this.
Finally i've hit upon your video. I really appreciate it and i now can go back to sleep happily. Thanks for taking the time to make this video man!

Bax
Автор

So thankful! You explained in 8 minutes what an hour's worth of research couldn't!

soramakizushi
Автор

After 3 days of browsing the Internet and finding only half-half solutions/and tutorials, I finally stumbled over your tut.
Finally someone how cuts the BS and presents this simply and effectively.
Many thanks. Keep up the good work.

PS. I've Suscribed to your channel. Obviously.

TheRemkonijn
Автор

I was just about to use multiple JFrames. Really glad I found this, thanks!

oscarchivas
Автор

This is exactly what i've been searching for all day long, THANK YOU!

dalalalghomlas
Автор

I made it for sake of good user experience. Hopefully programmers will stop using multiple JFrame's. Don't take this layout for granted. Every other layout manager can be replaced with MiGLayout. Except of CardLayout. Trust me, it's real bless. Glad you found it helpful. :)

OverG
Автор

Thank You! Best explanation of this concept I have found.

chrismerani
Автор

This is amazing! Very well-explained and so helpful. Thank you so much!

depresso
Автор

This helped me understand a bit on how Cardlayout work. Thanks!

kylelim
Автор

Thanks u saved me from using multiple frames, but I have a query, what if I have to code panels in different classes, how should I add into the frame? I hope u find my comment.

farooqali
Автор

Exactly what i was looking for...Thanks helped me on my address book project, keep making vids

eliteXranger
Автор

Thank you so much for this video, its really helpful. I have a question though, if I had 150+ panels, is that bad?

timtimtim
Автор

Done it now, took a bit of learning, but got there now

jayzd
Автор

What did you say in the beginning after you said that using multiple JFrames is bad? JPathPane?

Also thanks for this tutorial, it will help me a lot on my title menu system for a java game I'm making.

bautrey
Автор

Andy Aldo Ctrl+Space and then hit Enter key.

OverG
Автор

thank you! It really helps. I tried so much with multiple Frames or by using ContentPanes, but it didn't work the way I want it. This might finally be the right solution

janina__
Автор

It works, but all panels are at the top even though they have defined coordinates and sizes using setBounds, before i used Cardlayout the code still works

ArnzTheGreat
Автор

thank you so much you are a nice person

nickolder
Автор

what if instead of creating the layout as "cl" I just put it like this: "panelCont.setLayout(new CardLayout());"? How can I use "cl.show(panelCont, "1");"?

mario_gabriel