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); } }
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
@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
Жыл бұрын
i'm in the same situation
@Paris_Cherry
Жыл бұрын
@@josesamuel7615 ah mais t'es un français comme moi ??
@ousmanjallow1643
4 жыл бұрын
Thanks 🙏 prof 👨🏫. I had benefited a lot from your previous videos..
@BroCodez
4 жыл бұрын
thank you for watching Ousman! Watching my videos helps the channel grow. I appreciate it
@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
@monwil3296
4 жыл бұрын
Free Java & Python 🎉. Bro you're 💯 😇
@noah77
4 жыл бұрын
Awesome! Just waiting for a neural network tutorial in Java
@BroCodez
4 жыл бұрын
uhhhh I looked into this. I'll admit that it's above my skill level right now lol
@noah77
4 жыл бұрын
@@BroCodez np
@antoinealam6531
29 күн бұрын
@@BroCodez you probably can do it now bro
@omar100k6
4 жыл бұрын
College professors hate BroCode but no one can stop him
@BroCodez
4 жыл бұрын
also: Coding boot camps hate him! lol
@omersond4891
3 жыл бұрын
my favorite code channel
@FukSN
3 жыл бұрын
System(dot)out(dot)println("Thanks for the flow vid Bro");
@seanvinluan7562
2 жыл бұрын
You're the best youtube prof bro. keep it up!
@CJ-ri3cf
Ай бұрын
Thank you so much you are a live saver
@hasithadhananjaya2806
4 ай бұрын
Superb
@kaushalprasadyadav9242
2 жыл бұрын
Great work bro. Please make video for mobile app development
@programmer5834
2 жыл бұрын
You can used arrays for more shortcut
@najmulislam9658
3 жыл бұрын
bro you are my hero.....
@mayureebawane1938
Жыл бұрын
Thank you for this video many doubts got clear 😊
@antoinealam6531
29 күн бұрын
let's go bro!
@AnthonyR007
3 жыл бұрын
Bro, this is awesome
@speklex779
11 ай бұрын
Nice video
@maxwong1768
2 жыл бұрын
Regarding the order of frame.setVisible(true) and frame.add(component) , the bug has been fixed .
@angelcastineira2561
Жыл бұрын
Thanks!
@bharathpavurala7817
2 жыл бұрын
Best teacher
@alexshepel5599
4 жыл бұрын
Nice, bro.
@曾毓哲-b1t
Жыл бұрын
Thank you very MUCHHHHHHHHH!!!!!!!
@eugenezuev7349
5 ай бұрын
Bro is king
@aasasssddmdnmd2090
2 жыл бұрын
you are awesome
@MrLoser-ks2xn
2 жыл бұрын
Thanks
@siriusleto3758
2 жыл бұрын
Thanks.
@himanshubokde
Жыл бұрын
I love you sir 😘💖😘💖 your video is very useful n understanding but i have only little bit English 😅
@adrianasilveira4561
Жыл бұрын
Great explanation thank you
@werq27
Жыл бұрын
Thx, Bro!
@FhdQht
2 жыл бұрын
Awesome
@kemann3815
2 жыл бұрын
Much love ❤
@danny.3036
3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@abemelekdaniel8913
2 жыл бұрын
respect
@joysaha3927
Жыл бұрын
I'm now a fellow bro :)
@elvispontes4165
2 жыл бұрын
Great job man... thanks a lot
@sairos4057
Жыл бұрын
thanks bro
@matthewade7256
2 жыл бұрын
This is the best of all thanks bro code
@henriquefelinimena3693
3 жыл бұрын
Thank you for the content
@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?
@nawfalnjm5699
3 жыл бұрын
thank you !
@sabermmirza
3 жыл бұрын
your amazing thanks for sharing :)
@hodokuaja
2 жыл бұрын
thanks! very helpful!!!!
@surendramaharjan3129
4 ай бұрын
how can i change the size of the button. I used setSize() method but no use.
@smooth_code_channel
3 жыл бұрын
thanx
@ctluwua7695
3 жыл бұрын
I think what will be left in the WORLD if your channel never existed!!
Пікірлер: 72