Тёмный
No video :(

Java FlowLayout 🌊 

Bro Code
Подписаться 2,1 млн
Просмотров 49 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@BroCodez
@BroCodez 4 года назад
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class Main{ public static void main(String[] args) { // Layout Manager = Defines the natural layout for components within a container // FlowLayout = places components in a row, sized at their preferred size. // If the horizontal space in the container is too small, // the FlowLayout class uses the next available row. JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(500, 500); frame.setLayout(new FlowLayout(FlowLayout.CENTER,0,0)); frame.add(new JButton("1")); frame.add(new JButton("2")); frame.add(new JButton("3")); frame.add(new JButton("4")); frame.add(new JButton("5")); frame.add(new JButton("6")); frame.add(new JButton("7")); frame.add(new JButton("8")); frame.add(new JButton("9")); frame.setVisible(true); } }
@bhms-binary
@bhms-binary Год назад
You deserve a subscription)
@joyceasante8292
@joyceasante8292 Год назад
(Full code) import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Dimension; import java.awt.Color; public class Main{ public static void main(String[]args){ JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(500, 500); //frame.setLayout(new FlowLayout(FlowLayout.TRAILING)); frame.setLayout(new FlowLayout(FlowLayout.CENTER,10,10)); frame.add(new JButton("1")); frame.add(new JButton("2")); frame.add(new JButton("3")); frame.add(new JButton("4")); frame.add(new JButton("5")); frame.add(new JButton("6")); frame.add(new JButton("7")); frame.add(new JButton("8")); frame.add(new JButton("9")); frame.add(new JButton("0")); JPanel panel = new JPanel(); panel.setPreferredSize(new Dimension(125,125)); panel.setBackground(Color.lightGray); panel.setLayout(new FlowLayout()); panel.add(new JButton("1")); panel.add(new JButton("2")); panel.add(new JButton("3")); panel.add(new JButton("4")); panel.add(new JButton("5")); panel.add(new JButton("6")); panel.add(new JButton("7")); panel.add(new JButton("8")); panel.add(new JButton("9")); panel.add(new JButton("0")); frame.add(panel); frame.setVisible(true); } }
@FukSN
@FukSN 3 года назад
System(dot)out(dot)println("Thanks for the flow vid Bro");
@ousmanjallow1643
@ousmanjallow1643 4 года назад
Thanks 🙏 prof 👨‍🏫. I had benefited a lot from your previous videos..
@BroCodez
@BroCodez 4 года назад
thank you for watching Ousman! Watching my videos helps the channel grow. I appreciate it
@Paris_Cherry
@Paris_Cherry 2 года назад
Thank you soooo much for your tutorial, it is so simple and beginner friendly, even me who don't speak fluently english i understood everything. Thank You!!
@josesamuel7615
@josesamuel7615 Год назад
i'm in the same situation
@Paris_Cherry
@Paris_Cherry Год назад
@@josesamuel7615 ah mais t'es un français comme moi ??
@pavelkvasnicka6856
@pavelkvasnicka6856 Год назад
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@monwil3296
@monwil3296 4 года назад
Free Java & Python 🎉. Bro you're 💯 😇
@noah77
@noah77 4 года назад
Awesome! Just waiting for a neural network tutorial in Java
@BroCodez
@BroCodez 4 года назад
uhhhh I looked into this. I'll admit that it's above my skill level right now lol
@noah77
@noah77 4 года назад
@@BroCodez np
@CJ-ri3cf
@CJ-ri3cf 3 дня назад
Thank you so much you are a live saver
@megamotion00
@megamotion00 2 года назад
Learned a lot. Haven’t seen all your videos but would like to see some Java programming projects importing files, adding to sql table and run query to fill out forms etc. Thanks
@hasithadhananjaya2806
@hasithadhananjaya2806 3 месяца назад
Superb
@omersond4891
@omersond4891 3 года назад
my favorite code channel
@mayureebawane1938
@mayureebawane1938 Год назад
Thank you for this video many doubts got clear 😊
@omar100k6
@omar100k6 4 года назад
College professors hate BroCode but no one can stop him
@BroCodez
@BroCodez 4 года назад
also: Coding boot camps hate him! lol
@speklex779
@speklex779 10 месяцев назад
Nice video
@himanshubokde
@himanshubokde Год назад
I love you sir 😘💖😘💖 your video is very useful n understanding but i have only little bit English 😅
@seanvinluan7562
@seanvinluan7562 2 года назад
You're the best youtube prof bro. keep it up!
@angelcastineira2561
@angelcastineira2561 Год назад
Thanks!
@user-zq6yx7of5f
@user-zq6yx7of5f Год назад
Thank you very MUCHHHHHHHHH!!!!!!!
@kaushalprasadyadav9242
@kaushalprasadyadav9242 2 года назад
Great work bro. Please make video for mobile app development
@eugenezuev7349
@eugenezuev7349 3 месяца назад
Bro is king
@MrLoser-ks2xn
@MrLoser-ks2xn 2 года назад
Thanks
@aasasssddmdnmd2090
@aasasssddmdnmd2090 2 года назад
you are awesome
@adrianasilveira4561
@adrianasilveira4561 Год назад
Great explanation thank you
@najmulislam9658
@najmulislam9658 3 года назад
bro you are my hero.....
@werq27
@werq27 Год назад
Thx, Bro!
@siriusleto3758
@siriusleto3758 2 года назад
Thanks.
@programmer5834
@programmer5834 2 года назад
You can used arrays for more shortcut
@alexshepel5599
@alexshepel5599 3 года назад
Nice, bro.
@danny.3036
@danny.3036 3 года назад
Thanks, Bro! ☕ You're awesome!
@sairos4057
@sairos4057 Год назад
thanks bro
@elvispontes4165
@elvispontes4165 2 года назад
Great job man... thanks a lot
@AnthonyR007
@AnthonyR007 3 года назад
Bro, this is awesome
@abemelekdaniel8913
@abemelekdaniel8913 2 года назад
respect
@henriquefelinimena3693
@henriquefelinimena3693 3 года назад
Thank you for the content
@sabermmirza
@sabermmirza 3 года назад
your amazing thanks for sharing :)
@sushantlama9010
@sushantlama9010 3 года назад
bro, i used the shortcut to create an object of the JButton but if i want to modify my button using methods how should i call the methods with no name?
@FhdQht
@FhdQht 2 года назад
Awesome
@bharathpavurala7817
@bharathpavurala7817 2 года назад
Best teacher
@surendramaharjan3129
@surendramaharjan3129 3 месяца назад
how can i change the size of the button. I used setSize() method but no use.
@maxwong1768
@maxwong1768 2 года назад
Regarding the order of frame.setVisible(true) and frame.add(component) , the bug has been fixed .
@kemann3815
@kemann3815 2 года назад
Much love ❤
@matthewade7256
@matthewade7256 2 года назад
This is the best of all thanks bro code
@hodokuaja
@hodokuaja 2 года назад
thanks! very helpful!!!!
@nawfalnjm5699
@nawfalnjm5699 3 года назад
thank you !
@joysaha3927
@joysaha3927 Год назад
I'm now a fellow bro :)
@tayeblagha484
@tayeblagha484 3 года назад
thanx
@lorenzschwarz5877
@lorenzschwarz5877 3 года назад
noice
@Fnaf-vh9cs
@Fnaf-vh9cs 2 года назад
god bless you
@ctluwua7695
@ctluwua7695 3 года назад
I think what will be left in the WORLD if your channel never existed!!
@sujayirrinki4915
@sujayirrinki4915 7 месяцев назад
for the algo
@greeneggsandmushrooms9855
@greeneggsandmushrooms9855 3 года назад
aunt flow
@soumelee5661
@soumelee5661 Год назад
@ottttoooo
@ottttoooo 3 года назад
brau
@wombozombo
@wombozombo Год назад
comment
@techtalk9548
@techtalk9548 2 года назад
......
@nosparkss
@nosparkss 2 года назад
thanks bro
@blabberq
@blabberq 2 года назад
Thank you!
@ibrahimylmaz8378
@ibrahimylmaz8378 2 года назад
thanks bro
@mahmodmardani7535
@mahmodmardani7535 2 года назад
Thank you!
Далее
Java GridLayout 🔳
5:27
Просмотров 75 тыс.
Java GUI 🖼️
12:45
Просмотров 123 тыс.
How principled coders outperform the competition
11:11
The Most Legendary Programmers Of All Time
11:49
Просмотров 555 тыс.
Coding Was HARD Until I Learned These 5 Things...
8:34
Java BorderLayout 🧭
11:40
Просмотров 66 тыс.
Java panels 🟥
13:26
Просмотров 103 тыс.
Java HashMap 🗺️
13:05
Просмотров 81 тыс.
why do header files even exist?
10:53
Просмотров 399 тыс.
Java labels 👨‍💻
18:00
Просмотров 95 тыс.