Learn Java Tutorial 1.34- ActionListener and JOptionPane

  Рет қаралды 35,125

mybringback

mybringback

Күн бұрын

In this Java tutorial we will learn how to add an action to a button. To do this, we need to add an actionlistener to the button. Once we add the action listener, we at the method to actionlistener that we want to perform. Within that method is where we will then create a new window (or an OptionPane) to appear.
Source code | Additional Info for this tutorial: bit.ly/11jz53W
Hit us up on G+, facebook, or twitter!
Follow us!
-------------
Google +: bit.ly/1b6FeRV
Facebook: on. 11sX40j
Twitter: bit.ly/ZuuI4Y
-------------
Jake's G+ = bit.ly/14yuNTD
Travis's G+ = bit.ly/11iPctT
------------
Donate: bit.ly/110go1C .
Visit Our Friends @ Stone River E-Learning for Additional Tutorials - bit.ly/1fjsXTn
Coupon 20% Off HTML & CSS for Beginners - bit.ly/1MmuYfw

Пікірлер: 71
@JasonPaulJohnston
@JasonPaulJohnston 10 жыл бұрын
don't judge the video by the crazy 3 minute intro example - sometimes it's the crazy analogies that help teach and stick in your head. This guy does a great job explaining.
@bishawjitkumardey2075
@bishawjitkumardey2075 12 жыл бұрын
I have seen the videos of bucky roberts on java and his videos draw the most attention in youtube. He is good at explaining basic things but when things become complex he doesnt seem to analyze things in greater details like you do.I am a newbie and I understood the constructor stuff only after i saw your video. Thank you so much for your great effort. May God bless you abundantly.
@thequickscopingcritic3170
@thequickscopingcritic3170 9 жыл бұрын
These tutorials are so great that I cant wait to learn it all! You are a very good teacher! You make me enjoy learning Java, which motivates me to learn more! :D
@candyshaffer5572
@candyshaffer5572 8 жыл бұрын
"The baby we left in the corn field..." Weirdest line in a java tutorial ever. Winner!
@Marcin2418
@Marcin2418 13 жыл бұрын
Best Java tutorials on KZbin!
@thebuizelclub
@thebuizelclub 9 жыл бұрын
thanks so much, I could not figure out how to implement it without creating a new java class until this video :)
@satanic_rosa
@satanic_rosa 12 жыл бұрын
That farming story helped me understand everything! Awesome!
@chuckwolf3221
@chuckwolf3221 9 жыл бұрын
Great job on all of them. keep up the good work!
@ums1002
@ums1002 11 жыл бұрын
The way Travis describes things is great haha...
@doucheNblue
@doucheNblue 11 жыл бұрын
hahahaha. I couldn't stop laughing for the first 3 minutes. And I like how at around 1:55 he says, "now if this story sounds kinda familiar". This hardly seems like it would be a familiar situation to people.
@millicentotchere4230
@millicentotchere4230 10 жыл бұрын
I av been trying to learn java some three yrs bak but neva understood any thing thanks to you l av hope now
@oworaeba
@oworaeba 10 жыл бұрын
Thanks to who ,,, me ???? Lol
@siljebergen
@siljebergen 10 жыл бұрын
Thanks a lot for dumbing it down. I understood more now!
@VladBatrinu
@VladBatrinu 12 жыл бұрын
best teacher ever ! Big thanks !
@brotherakuma
@brotherakuma 11 жыл бұрын
You are awesome. You have helped me so much with GUIs
@FirstLast-eo3vq
@FirstLast-eo3vq 10 жыл бұрын
Most of your analogies are pretty awesome and spot on.. this one not so much :P still hilarious and still pretty informative though, great work
@haijai10
@haijai10 13 жыл бұрын
Very good tutorial..I love these! Great work...Thanks and Keep going!
@kaio37k
@kaio37k 9 жыл бұрын
If you are using Eclipse and are sick of importing, press Ctrl + Shift + O to import all necessary packages.
@kgotsomodise
@kgotsomodise 7 жыл бұрын
God bless you😁😁
@MaximizedNOVA
@MaximizedNOVA 13 жыл бұрын
This story helped simplify the tutorial!
@amarsinha9076
@amarsinha9076 10 жыл бұрын
Great videos, thanks for teaching me about GUI!
@HowardLen
@HowardLen 11 жыл бұрын
Your analogy helped a lot, thanks. You're Great
@yansileen13
@yansileen13 12 жыл бұрын
Awesome dude. Thank you for this epic explanation
@tokefizz8201
@tokefizz8201 10 жыл бұрын
Finally getting more
@teja635ify
@teja635ify 9 жыл бұрын
that analogy doe!
@HighMrSai
@HighMrSai 11 жыл бұрын
got a question if i use the default constructor on JTextArea (giving it no parameters) the text box is like 1 pixel in width unless i give it some text. I tried using setsize but it didnt seem to work either?
@JeffDutcher
@JeffDutcher 13 жыл бұрын
Awesome Story analogy
@elvischesschamp
@elvischesschamp 12 жыл бұрын
How do you extract the input of a users textfield onto a node? I use nodes for my loops. I want to be able to have the user input words into 6 lines. And extract those lines onto my nodes.
@maccardi4431
@maccardi4431 10 жыл бұрын
dude you are hilarious, I appreciate you dumbing it down for people like me lol I understand it though
@MrEscamilla89
@MrEscamilla89 12 жыл бұрын
great stuff yet again!
@0xCAFEF00D
@0xCAFEF00D 13 жыл бұрын
Best farmwork plan, ever.
@philanixulu4401
@philanixulu4401 7 жыл бұрын
"The kids are like kwee kwee!! I don't know what the f you're sayin ryt now"......hahahaha had me laughing alone ...
@dudeproductions100
@dudeproductions100 13 жыл бұрын
Is there any way to make a button open a new window if you have a password entered into a text box, or else have it display a error message?
@JDavidEfrain
@JDavidEfrain 13 жыл бұрын
Nice tutorials keep it up
@johnnyefc123
@johnnyefc123 11 жыл бұрын
These are great thanks!!
@maryamshameem6959
@maryamshameem6959 6 жыл бұрын
awesome tutorials
@223Warlord
@223Warlord 8 жыл бұрын
hahahahahahahahahahahahahahah that farm analogy cracks me up.
@Royalnumbers
@Royalnumbers 11 жыл бұрын
How do you run a program in a location from a button?
@monkeybars101
@monkeybars101 12 жыл бұрын
My child was born without ears and I found this video offensive. Thumbs Up!
@ephraimmedina2011
@ephraimmedina2011 12 жыл бұрын
goodday myringback,,,what platform you are using?
@dakotamcdonald5385
@dakotamcdonald5385 10 жыл бұрын
0:55 BEAUTIFUL!
@liunxnss
@liunxnss 12 жыл бұрын
can i implement it in applet if yes could you give me the layout of code i appreciated your help
@mybringback
@mybringback 12 жыл бұрын
You got it buddy
@Pavlo9758
@Pavlo9758 13 жыл бұрын
best story ever!
@alexplatteeuw5363
@alexplatteeuw5363 9 жыл бұрын
funniest tutorial ever
@rudiblackrahmadi
@rudiblackrahmadi 10 жыл бұрын
suppose this class is being used by another class, how that class recognise that the button is clicked? many thx..
@joseph_p
@joseph_p 13 жыл бұрын
Epic analogy
@Yadiel458x
@Yadiel458x 6 жыл бұрын
I cried with that story
@リンゴ酢-b8g
@リンゴ酢-b8g 7 жыл бұрын
learned today that buttons have ears and need to have ActionListeners() specifically added to them.
@Gasert_The_Great
@Gasert_The_Great 12 жыл бұрын
"Hey chick, I need some kids." Totally works, every time. =D
@Redemptie
@Redemptie 13 жыл бұрын
Popped out! I thought kids wear delivered by storks, do you still believe in santa.
@PanthersHockey4
@PanthersHockey4 11 жыл бұрын
I'm just chllin, watching my Tivo hahaha
@randomdude8600
@randomdude8600 8 жыл бұрын
This tutorials are awsome and i'm really learning all that good stuff, but listening to it out of context... Corn, babies and grapes! What in the actual fuk is goin' on in this java tutorial.
@srincrivel1
@srincrivel1 6 жыл бұрын
Cmon people, that was hilarious
@ForeverGaming101
@ForeverGaming101 10 жыл бұрын
thanks
@mohanmbkumar1
@mohanmbkumar1 12 жыл бұрын
tats a fucking big dialogue box travis ....... LOL
@GunUDwnAt2nd
@GunUDwnAt2nd 11 жыл бұрын
"the baby we left out in the grape field"
@GunUDwnAt2nd
@GunUDwnAt2nd 11 жыл бұрын
lmao @ "add some ears to our baby"
@goththug8908
@goththug8908 10 жыл бұрын
Following are the imports which you need for your program to work properly so far import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JCheckBox; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.JOptionPane; //swin import ends here import java.awt.BorderLayout; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; //awt import ends here
@HelplessProcrastinatorChannel
@HelplessProcrastinatorChannel 11 жыл бұрын
You're a bad kid ! BAM ! hahaha ^^
@ValiandChannel
@ValiandChannel 11 жыл бұрын
Best example hahaha
@averyaldridge5336
@averyaldridge5336 11 жыл бұрын
Im subbin this sht
@MurdaboMusic
@MurdaboMusic 11 жыл бұрын
Java: making completely un-PC PC
@salithatennakoon
@salithatennakoon 11 жыл бұрын
Nice metaphor(Kids);
@Zharkan16
@Zharkan16 11 жыл бұрын
xD
@AznVi3tx
@AznVi3tx 9 жыл бұрын
Too much talking, get to the point
@razoR2k
@razoR2k 12 жыл бұрын
but you can get kids from orphanage
@kingleo2312
@kingleo2312 13 жыл бұрын
I read it lol :-) e is FUNNY LOL
@spazthecreeper
@spazthecreeper 12 жыл бұрын
It would have been sad if you were atheist and he said that last line.
Learn Java Tutorial 1.35- JCheckBox isSelected();
7:06
mybringback
Рет қаралды 28 М.
Learn Java in One Video - 15-minute Crash Course
14:54
Coding with John
Рет қаралды 811 М.
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
A Deep Dive into JVM Start-Up
22:03
Java
Рет қаралды 32 М.
Learn Java Tutorial 1.33- GridBagLayout and GridBagConstraint
9:18
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 181 М.
Learn Java Tutorial 1.32- JPanels and BorderLayout
7:44
mybringback
Рет қаралды 47 М.
The 7 Levels of Math Symbols
14:03
The Unqualified Tutor
Рет қаралды 26 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
6 DEVS Make a GAME without COMMUNICATING! (Roblox edition)
15:45
Blackthornprod
Рет қаралды 85 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 857 М.