Simple Java GUI Framework Button

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

How do you set the location of the button?

reaelladiego
Автор

please make a tutorial about mvc design pattern in java

gmailservice