Simple Java GUI Framework Button

Published: 05 February 2022
on channel: Cody Henrichsen
326
3

Continuing the simple GUI project by adding a button to the panel and making it do something, then adding a second button that uses the lambda notation to make it even better.

Table of Contents:

00:28 - Add import for button
00:54 - Add a data member for the button
01:38 - Add the button to the panel
02:29 - Add a listener to to the button
02:49 - Add imports for the listener
03:35 - Write the listener
04:17 - Mega line of code for the listener!
04:53 - Make the formatting pretty!
05:11 - Make the button do something silly
05:49 - Review the listener process
06:18 - Make the button do something fun
06:43 - Update the counter variable
07:36 - But wait there's more - button two
08:44 - Shorthand listener with lambda notation
09:33 - Add the second button to the panel


On this page of the site you can watch the video online Simple Java GUI Framework Button with a duration of hours minute second in good quality, which was uploaded by the user Cody Henrichsen 05 February 2022, share the link with friends and acquaintances, this video has already been watched 326 times on youtube and it was liked by 3 viewers. Enjoy your viewing!