Java GUI Crash Course Tutorial #6 - Create a GUI with JButton Class & Methods
Coding River
Java GUI Crash Course Tutorial #6 Create a GUI with JButton Class & Methods
I am trying to grow my channel, so if you find this video useful please Subscribe & hit the notification bell :)
Thanks for watching and I hope you liked and learned something new !!!!!
Timecodes 00:00 - Intro 01:21 - Creating a button with JButton class 02:00 - Adding a button to the frame 02:28 - setBounds() method (Aligning the GUI component manually) 04:32 - setText() method (Setting the button text) 05:36 - setFocusable() method 06:06 - setFont() (Setting the button font family, style and size) 07:01 - setForeground (Setting the button text color) 07:27 - setBackground (Setting the button background color) 07:50 - Setting the button border 08:34 - setEnabled() method (Enabling and disabling a button) 09:11 - pack() method (Adjusting the frame size according to the button size) 10:18 - Outro
#codingriver #javaguitutorial #jbuttonjavaswing ... https://www.youtube.com/watch?v=p8rBKsPbYTE
22449427 Bytes