Java Programming Tutorial - 66 - JRadioButton

Sdílet
Vložit
  • čas přidán 2. 10. 2009
  • Source Code: github.com/thenewboston-devel...
    Core Deployment Guide (AWS): docs.google.com/document/d/16...

Komentáře • 144

  • @goranmarinkovic9143
    @goranmarinkovic9143 Před 7 lety +28

    19 February 2017:
    Java Programming Tutorial - 1 - Installing the JDK >>> 4,780,783 views
    Java Programming Tutorial - 66 - JRadioButton >>> 162,342 views

    • @asifshahriar4503
      @asifshahriar4503 Před 4 lety

      Lol many people thought java is like those tic toc toe but later found out its COD

    • @vathsan3906
      @vathsan3906 Před 4 lety

      LOL...

  • @megdee6835
    @megdee6835 Před 11 lety +2

    Bucky, after I watched this 66th video in the series, I have to say... I have learned more from you this week (in the 3 days watching them) than 10 weeks at college! You are awesome! Look forward to the rest of the videos...

  • @SirMr
    @SirMr Před 12 lety +1

    Hello Bucky. You are fun guy. Great sense of humor. I didn't know Java and in one day went through 66 of your videos. That's how interested I was. Cheers

  • @Kalydosos
    @Kalydosos Před 12 lety +1

    Bucky very good tutorials you can turn a complete newbie into a very good programmer well done!

  • @ItayushLoL
    @ItayushLoL Před 7 lety +4

    You're amazing man! Your tutorials are the best I could find on the internet (by far!) and you got a really awesome personality! Always stay yourself and keep doing what you love! Thanks a lot for all the tutorials and the jokes

  • @TheSweetdreams32
    @TheSweetdreams32 Před 10 lety +11

    Mad beatboxing skillz.

  • @MadhavPainyu
    @MadhavPainyu Před 11 lety

    This is probably the most useful channel I have ever subscribed to on youtube :D

  • @RonanConnolly
    @RonanConnolly Před 11 lety +7

    "Oh ya that feels good, oh ya get in there"
    hah

  • @djleisheng
    @djleisheng Před 12 lety

    I don't know if bucky didn't show it because it's considered bad practice or something, but when you are defining multiple variables of the same type, you can define them all at once instead of typing Font whatever four times on four lines, just do Font pf, bf, itf, bif;
    hopefully this helps somebody save time

  • @twoofakindmagic
    @twoofakindmagic Před 13 lety

    Buckey, your tutorials are very simple and make learning java very easy! I have one suggestion to save some typing effort. At the beginning when you declare your private variables, you say private Font pf; private font bf; private Font itf; and so on...
    This can be made simpler by just typing private Font pf, bf, itf, bif;
    Just a suggestion :P
    Thanks again!

  • @hikkenwayans
    @hikkenwayans Před 7 lety +1

    EXCELLENT tutorial!!!

  • @GamingJediPwns
    @GamingJediPwns Před 14 lety

    I have a tutorial for you Bucky. Its called the copy (Ctrl+c) and paste (Ctrl+v) tutorial. In case you missed it, that was it. lol
    Good tutorial btw

  • @JimmiJohnJunnior
    @JimmiJohnJunnior Před 11 lety

    i realy like when i look back at my program and see lots of stuff :D

  • @rodolfobeguiristain
    @rodolfobeguiristain Před 7 lety +2

    Now for your" buckies greatest hits"... ever fucking second of this video.....

  • @dcs6272
    @dcs6272 Před 7 lety

    Awesome tutorials!!!

  • @Kalydosos
    @Kalydosos Před 12 lety

    Bucky thanks for the Java tutorials.

  • @12me91
    @12me91 Před 12 lety

    @HaplyKneels O.O that is so useful! I was worried about having to memorize all of them, but this makes it so easy!

  • @EpochIsEpic
    @EpochIsEpic Před 4 lety +1

    4:58 - 5:01 Yes officer, this video right here.

  • @6NoHope9
    @6NoHope9 Před 13 lety

    i got the 200th like, that feels good.
    and 0 dislikes, that's how it should be on these types of videos.

  • @RameenFallschirmjager
    @RameenFallschirmjager Před 5 lety

    damn, this dude is funny! and intelligent and a great instructor too!

  • @ujjwalmainali3927
    @ujjwalmainali3927 Před 10 lety +13

    Why can't we just type add(pb,bb,ib,bib); to add all the items in the window.

    • @playinjazz2724
      @playinjazz2724 Před 4 lety +2

      ujjwal mainali Late response, but maybe it’ll help anyone watching this video in the future:
      add() is a method that accepts a component (and some other optional things) as a parameter. Method parameters MUST be followed; you cannot pass in anything more or anything less. This is why there are often multiple methods with the same name, but different parameters. The method that you are describing, add(Component c1, Component c2, Component c3, Component c4), simply doesn’t exist. You could create your own method that achieves the effect that you are looking for (this is called overloading, I believe), but it would be it’s own separate method, and you would then HAVE to pass in four components for the method to work.
      I’m still relatively new to Java, so please feel free to add info and/or correct me if anything I said was inaccurate.

  • @dcastudios7185
    @dcastudios7185 Před 7 lety +1

    This may help.
    private JRadioButton but1,but2,but3,but4;
    private JTextField tf;
    private Font pf,bf,itf,bif;

  • @MarkVizcarra
    @MarkVizcarra Před 12 lety

    Wow, thats a pretty cool title.

  • @crimianCOM
    @crimianCOM Před 13 lety

    Epic beat box: 6:34

  • @MrYouMath
    @MrYouMath Před 12 lety

    @12me91 using the * when importing saves alot of typing, but is bad programming style,as you will import alot of stuff that will make your application full off stuff that you may not need. So if you know all the stuff you need its much better;-).

  • @WolfySnackrib666
    @WolfySnackrib666 Před 12 lety

    I love you man

  • @Izzeification
    @Izzeification Před 7 lety

    I find doing this: ButtonGroup group = new ButtonGroup(); is easier for making the group, is there anything bad about doing it this way?

  • @genjuroukyo
    @genjuroukyo Před 12 lety

    I use to have a toy that had that radio button concept. That's all I remember is the buttons.

  • @Sasori915
    @Sasori915 Před 11 lety

    What would happen if in the source code you set more than one radio button to true? Would there be an error, or does Java have a default setting or something it would go to?

  • @zohaibameer6766
    @zohaibameer6766 Před 11 lety

    oooh....Congrats........We made it so far

  • @areola_ayatollah
    @areola_ayatollah Před 11 lety

    Not only were radio buttons designed that way, channel changers where too. They would make a loud clicking sound every time you changed the channel as the spring of the previously pressed button was released. Hence the name "clicker". Guess I'm old now. Fuck, how did that happen.

  • @velschtein
    @velschtein Před 14 lety

    I have been coding for the past couple years and whenever I make a gui, i extend JPanel rather than JFrame. Any reason why you extend JFrame?

  • @letheatlas6444
    @letheatlas6444 Před 9 lety +3

    6:35 Lmao, literally

  • @ZingFreelancer
    @ZingFreelancer Před 13 lety

    Thank you

  • @gamalytical
    @gamalytical Před 13 lety

    The way he said "best friend at 1:25 was really creepy...

  • @pppppaaaaaccccchhh
    @pppppaaaaaccccchhh Před 12 lety

    no its that some people always go like back to episode 1, nd im sayin that the first 2 are installing, plus the first vid has so much more views than the 2nd and i don't what the deal with that is

  • @poseidenjp1496
    @poseidenjp1496 Před 11 lety

    to get all the fonts do this>>>
    import this>>>> import java.awt.Font;
    import java.awt.GraphicsEnvironment;
    GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
    Font[] fonts = e.getAllFonts(); //gets the fonts
    for (Font f : fonts) {
    System.out.println(f.getFontName());
    }

  • @rickie_bo
    @rickie_bo Před 8 lety +16

    "Bucky is awesome and hot" - That is what the girls say, the size is 25.... if you know what I mean!

    • @silversun7988
      @silversun7988 Před 8 lety

      +Risto Bozinov I understand even I don't want to...

    • @RofuRofu22
      @RofuRofu22 Před 8 lety

      +Risto Bozinov hehehe

  • @dbh937
    @dbh937 Před 12 lety

    Beatboxing like a pro. 6:35

  • @Saruman_Kaz
    @Saruman_Kaz Před 15 lety

    great sense of humor!
    lol 5+

  • @jhdoubleoseven
    @jhdoubleoseven Před 13 lety

    I tried adding multiple items at one time last tutorial, like
    add(italicbox, boldbox);
    It didn't show any errors, but when I ran the program it didn't show my bold box!

  • @isaacchan8685
    @isaacchan8685 Před 10 lety

    you can actually just type :
    private Font pf,bf,itf,bif;
    private JRadioButton pb,bb,ib,bib;

  • @JKTCGMV13
    @JKTCGMV13 Před 12 lety

    Im gonna take a break, so i can practice all this shnaz

  • @nipunimalsara1551
    @nipunimalsara1551 Před 12 lety

    thank u

  • @zohaibameer6766
    @zohaibameer6766 Před 11 lety

    Bucky u broke the rule....."Make sure you spell it wrong"........You changed "buckt" to "bucky"...:D

  • @trez32
    @trez32 Před 11 lety +1

    boom chika boom boom chika boom :D

  • @trnqulizr1289
    @trnqulizr1289 Před 10 měsíci

    asmr with bucky

  • @acegulabot88
    @acegulabot88 Před 11 lety

    eclipse is giving me the next solution: remove argument to match object(to remove naslov to match public gui())

  • @mayozaamer
    @mayozaamer Před 8 lety

    you're funny you know :D

  • @sideamihaicristian6202
    @sideamihaicristian6202 Před 10 lety +1

    4:59 ...that's what he said :)))))

  • @Stogoh
    @Stogoh Před 10 lety

    How can I place a RadioButton in a null layout?? it doen't work :/

  • @nAmeLEsSaLoNe
    @nAmeLEsSaLoNe Před 13 lety

    thank sir.. sir can you make a tutorial how to make a product design tool or a paint..
    thanks to your tutorial.. please make more tutorial about java.. thanks again :D

  • @mrhits777
    @mrhits777 Před 14 lety

    bucky... I stopped at Burger King today and picked up a couple of the Spicy Chicken sandwiches not thinking anything of it. Came back to my desk and every bite all I could think of was the "special sauce" your girlfriend got sick on... :-(

  • @Camden0f
    @Camden0f Před 7 lety

    When you create pb= new JRadioButton(); or group = new ButtonGroup();
    Are these objects we are creating? I know it's actually making the button and such but is this considered an object/instance?
    TIA!

    • @parth488
      @parth488 Před 7 lety

      figured the answer yet? I am confused about that too

    • @Camden0f
      @Camden0f Před 7 lety +1

      Parth yep! He says it a few times in the next video I believe, but When we do pb= new JRadioButton(); we're making a JRadioButton object named/references as pb

  • @kamaljain939
    @kamaljain939 Před 7 lety

    exactly 1000 likes right now

  • @eugenekuzmov6099
    @eugenekuzmov6099 Před 8 lety +2

    why do we need the "group"?

    • @GruffySpackler
      @GruffySpackler Před 8 lety +8

      Only one JRadioButton in a group can be selected at a time. If they were not grouped, the program would not be able to tell which buttons to unselect whenever another one was selected.

  • @Tonyrosama
    @Tonyrosama Před 11 lety

    The serializable class Javabt does not declare a static final serialVersionUID field of type long
    I get this messege with the public class Gui extends JFrame{
    }
    why???

  • @Alexxv46
    @Alexxv46 Před 12 lety

    I typed just "Bucky is awesome" without hot if you don't mind ))))

  • @zohaibameer6766
    @zohaibameer6766 Před 11 lety

    Now we are down to 80,000

  • @RameenFallschirmjager
    @RameenFallschirmjager Před 5 lety

    even radio buttons live in families! poor me!

  • @aadyajain1482
    @aadyajain1482 Před 9 lety

    Gud

  • @paulodeleon1715
    @paulodeleon1715 Před 2 lety

    That's the girl saying to you hah. HAHHHAHA

  • @NathanWiki
    @NathanWiki Před 10 lety

    why cant you set the DefaultCloseOperation, setVisibility, setSize, all in the constructor?

  • @qmac9966
    @qmac9966 Před 3 lety +1

    4:10 🧢🎓

  • @markojic1989
    @markojic1989 Před 11 lety

    "Bucky is awesome and hot, twenty-five in size."

  • @skazis87
    @skazis87 Před 11 lety

    look at the date of his comment, dude.

  • @xrtze
    @xrtze Před 14 lety

    bib bib bib bib bom chicka boomboom. xD

  • @JKTCGMV13
    @JKTCGMV13 Před 12 lety

    back... I have made progress

  • @pppppaaaaaccccchhh
    @pppppaaaaaccccchhh Před 12 lety

    yea but the first 2 vids are just installing, it actually begins at the third vid.

  • @digdootyditches6789
    @digdootyditches6789 Před 6 lety

    I like how da top comments section doesn't have nothin to wit da tutorial and da new comments section have some stuff bout da tutorial XD

  • @12me91
    @12me91 Před 12 lety

    Whats the * for at the end of the import statements?

    • @omerd602
      @omerd602 Před 3 lety

      I have 0 expectation of you reading or replying to this after 9 years but I'm putting this here to help others with the same question, I believe it simply imports everything from that specific thing
      I don't know the technical words but instead of having to import like 10 different things all at once that all start with java.awt or javax.swing or something, you could just import all of java.awt or javax.swing or whatever to save time (recall the earlier tutorials where we had to import a bunch of things in the Gui class)

    • @12me91
      @12me91 Před 3 lety

      @@omerd602 You are correct. 9 years later I have a masters degree in computer science and am a professional developer. I use the * all the time now.

    • @omerd602
      @omerd602 Před 3 lety

      @@12me91 Wow, can't believe people can be active on the same account for so long that they respond to a reply on a 9 year old comment! Congrats on your career!

    • @12me91
      @12me91 Před 3 lety

      @@omerd602 Thanks! luckily my lazy ass prevents me from making new accounts

  • @janellogrono8379
    @janellogrono8379 Před 11 lety

    its most watched in the year 2012

  • @Learn2Code92
    @Learn2Code92 Před 15 lety

    Nice tutorial, but I would really like for you to go back to C++. I went through all the tutorials and understand them completely.
    I want more.

  • @clintonknight9798
    @clintonknight9798 Před 8 lety

    I'm not sure what happened but around tutorial 50 you went from "I can follow this" to "HOLY CRAP WHAT ARE YOU DOING!?"
    It is like you just threw the KISS (Keep It Simple Stupid) philosophy out the window. Remember it was a true beginner tutorials, not just try and keep up.

    • @fuckyeahlions
      @fuckyeahlions Před 8 lety

      +Clinton Knight I don't mean to disrepect or belittle you, but I've found him to be very easy to keep up with!
      HOWEVER, I've been tinkering with the code after every tutorial. I NEVER copy and paste when he does (so I write it more and memorise it) and I have been making notes after each tutorial from #55+
      I really hope you can go over some of the videos and reinforce your knowledge and get back on track! I promise you it's not too hard, it just takes some practice. Good luck fellow java newbie!

    • @clintonknight9798
      @clintonknight9798 Před 8 lety

      +fuckyeahlions It took me several examples from others before I pieced together using JRadioButton's correctly. Not to mention understanding JSlider, JTextfield, JCheckBox. OOP (object oriented programming) has never been my strong suit. Having to push the "I believe" button about what is built into Java has not been easy for me. So watching this video and the several around Java GUI has been exceedingly difficult.
      Just getting beyond the basic form of these to being able to actually use the code outside of the example has kept me busy for a couple of days.
      I apologize for venting in such a fashion, but frustration levels have been very high for me in learning Java.

    • @fuckyeahlions
      @fuckyeahlions Před 8 lety

      no problem! I'm just starting this particular video myself, so I may be about to share your frustration!
      I don't know any programming languages so far, so OOP (assuming all of java is object oriented) is alls I know.

    • @arnavnarula1534
      @arnavnarula1534 Před 8 lety

      I found a really simple way to understand and follow the GUI tutorials. All I do is set the button's size and visibility to true in the main class before Bucky starts the tutorial. Then, as I am coding in the secondary class, I can run the code to see what each line of code does (unlike Bucky who only sees the program run in the end). For example, before the group variable was added, I saw all Radio Buttons could be checked at once. However, once it was added, only one button could be checked at a time. Using this method, its easy to isolate specific lines of codes to their function and uses. Viewing each line is more efficient than viewing the whole code at once.

    • @breakdancerQ
      @breakdancerQ Před 8 lety

      The difficulty is perfect. Hanging at these subject a bit longer is perfectly fine and understandable. Yes the difficulty has been raised but it can't stay that easy forever, it's still is easy however, it just might take a littl ebit more effort now to get these. He's gradually raising the difficulty in a good pace.

  • @Bro-the-cast
    @Bro-the-cast Před 11 lety

    turn the transcript on and play :D

  • @TheIQo
    @TheIQo Před 12 lety

    yeah..suuure, your ear ...

  • @ilikechess1
    @ilikechess1 Před 14 lety

    because im guessing first you have learn Jframe so you can learn JPanel much easier, its like the process of learning i guess

  • @ed-edd-n-eddy
    @ed-edd-n-eddy Před 12 lety

    That's why I eat Wendy's.

  • @gatoo23
    @gatoo23 Před 13 lety

    1:46 lol

  • @HaplyKneels
    @HaplyKneels Před 12 lety

    @12me91 It imports everything.

  • @yotamfromm4920
    @yotamfromm4920 Před 10 lety

    can someone tell me what * mean?

  • @acegulabot88
    @acegulabot88 Před 11 lety

    public gui(){
    super("naslov");
    setLayout(new FlowLayout());
    tf = new JTextField("ACE GULABOT",25);
    add(tf);
    Why i am having problems here. I repeat the same steps like in the tutorial.

  • @Jojobeni1
    @Jojobeni1 Před 11 lety

    "1 year ago"

  • @TheViolinCalamity
    @TheViolinCalamity Před 12 lety

    LOL Bucky has java groupies LOL

  • @athimaddy
    @athimaddy Před 13 lety

    hei, It's really very usefull to me, i want to know how to make this all programs to executable files, then only we can use it with any other pc's, so, plz tell about that>>>
    ok,, thx... Keeeeeeeeeeep Rockkkkkkkiiiiiiinnnnnnnnngggggg>>>>

  • @jxipa1604
    @jxipa1604 Před 9 lety

    cmd+option+down arrow

  • @Tonyrosama
    @Tonyrosama Před 11 lety

    its the only error and it wont run the program with it.

  • @KitanTm
    @KitanTm Před 11 lety

    I didn't name it bif, i named it beefstake:)

  • @jetdevon8983
    @jetdevon8983 Před 11 lety

    prizes!? :D

  • @potenvandebizon
    @potenvandebizon Před 10 lety

    Who doesn't like free education?

  • @sammichty
    @sammichty Před 8 lety

    main...?

  • @rammsteinhammy
    @rammsteinhammy Před 12 lety

    I didn't say anything abaout video 1 and 2 o_o

  • @thebuilder511
    @thebuilder511 Před 11 lety

    Execute tutorial 66

  • @samoualilas
    @samoualilas Před 11 lety

    bucky is still awsome and hot!

  • @azzz766
    @azzz766 Před 11 lety

    There's 464 likes and 6 dislikes!

  • @noocsharp
    @noocsharp Před 11 lety

    Thats 469 likes and 6 dislikes!

  • @garou0827
    @garou0827 Před 5 lety

    instead of writing:
    JRadioButton ...;
    JRadioButton ...;
    JRadioButton ...;
    JRadioButton ...;
    one can also write
    JRadioButton ...,....,....,....;

  • @OOchriOO
    @OOchriOO Před 11 lety

    *read

  • @poseidenjp1496
    @poseidenjp1496 Před 11 lety

    thers 406 likes and 6 dislikes

  • @DrYunfattpao
    @DrYunfattpao Před 11 lety

    private JTextField tf;
    tf = new JTextField("TREASON!!", 5000);