ContentPane, BorderLayout, JButtons (Java Swing)

preview_player
Показать описание
The ContentPane is where we store our components in our JFrame. BorderLayout is the default layout that lets us lay out our components in our JFrame. JButtons are components that we can add to our ContentPane in order to display them.
Рекомендации по теме
Комментарии
Автор

thanks! easy to understand and you don't only show the code but actually try to explain what it means.
And finally i believe that the contentPane exists and isn't just a conspiracy!

Dxc
Автор

i was reading for about 1 hour to understand what's contentPane() and you taught me in just 2 minutes, Thanks a bunch and yeah sometimes things are very simple but it's us who make them complicated lol.
Subscribed just cuz you deserved (i usually don't). best of luck on Youtube n keep helping.

khanvessi
Автор

Very well explained!!!! A bit slow, but very clear! Good!

dennisdevink
Автор

What is the difference of
frame.add();
and
pane.add();

pjguitar
Автор

set the speed to 1.25x
you're welcome

m_r.o
Автор

Thanks a lot! You explain very very well!

alextube
Автор

JFrame frame = new JFrame()

frame.add(BorderLayout.NORTH, button);

//how comes the above works?? swing is so confusing

moses.muchemi
Автор

can we add image instead of buttons in any of the regions?

kabitahalder
Автор

Hey man, thanks for the vid. What API is that?

akosszakacs
Автор

man if tutorial explained things like this we as beginer must be happier now.
they tend to chaining method without explaining shit

syarifnm