Added: 2 years ago
From: thenewboston
Views: 115,359
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (173)

Sign In or Sign Up now to post a comment!
  • Finally, why I have waited thru 50 tutorials :D

  • Comment removed

  • Do I actually need to know this?

    I see like if I am making my program.

    Also do we ever see how to make our file into some portable program what others can use?

    (I still going)

  • @Chillers1337 Its best to know this, its also good to know as much as you can about java, that way its easier to understand.

    also. i just did a quick search and this is how to make the program so other people can use it: /watch?v=RbhJ9sTMTD8

  • now all that i know is that my teacher who teaches java is named greg.His other name is bucky,He had four girlfriends,and also can get to the door or find a phone in nanoseconds...

  • @onechannel100 lol at your comment, i think he just editted the video afterwards, so that it showed him come back

  • i love you

  • wow, he found his friends phone REALLY fast

  • you can put, import.javax.swing.*;

    it holds all sub-libraries inside the swing.

    @_@

  • @denr808 Thanks for sharing. for a short app it doesn't matter, but if you programm a big app. Then you would import alto of not used stuff.So Specific importing is better i think:).

  • @denr808 As already mentioned to you, for short little programs like the one above it's fine using the * . But if you're working for a company and making a program that has like thousands of lines of code in it, it'll reduce it's performance. So being specific like Bucky is just good practice :)

  • Is there no GUI designer in Eclipse? I have one in Netbeans, makes things MUCH easier...

  • @maikkel81 Thats because WYSIWYG editing is nothing compared to doing it without beans.

  • Actually mostly I import nothing and let Eclipse do it, much more comfortable, then you don't have to look in API ;)

  • @korkypnoy just try it out.

  • quick question. could you have made those variables in the constructor only? so you don't have to declare the variable and have another line saying it's new and assigns default value? just curious for the sake of brevity

  • also, how come you have to extend JFrame but not AWT class?

  • quick question but can you have all the formatting for your GUI in the tuna class instead of inside your main (apple) class program? Or is things like window size and what buttons do have to be specified with the object? I'm wondering if this is just a programmers individual style. ok thanks

  • @korkypnoy This was the tuna class :D

  • thumbs up if dat "android ad"  irritates you :p

  • @376prince herp derp thumbs up.

  • I cant wait to start programing a baby!

  • @aminhas Yes it runs the constructor of the inherited class.

  • import java.Crap;

  • Comment removed

  • What does the super() function do? Does it run the constructor of the parent class?

  • @aminhas It sets the title text, if you set the arguments to a string; e.g: super("Title");

  • @aminhas The super() inherits the parameters from the superclass which we cannot see as it is from the imports.

  • actually it says unditable......but who cares....

  • Bucky you must like food.

  • "we shall start programming this baby"

  • You could just put import java.awt.* etc it puts in a lot of stuff you don't need, but it saves a lot of time and doesn't make a difference to the end result

  • @AJLogan1 it does make a difference, it makes your program run slower as you are importing unnecessary stuff, if you are interested on having a faster way though i would recommend you just dont import anything and program as you go (if you are using eclipse), whenever you use a library you havent imported you will get an error red underline in your text, there you hover and it gives you the option to automatically add the specific library you need.

  • why didn't he use JLabel to add the text?

  • import java.awt.*

    import javax.swing.*

  • @Dennisthewolf We do not need that many classes to get info from.

  • Little tip, you can access all of the methods by using a little astride I E: import javax.swing.*;

  • He's really fast at finding phones.

  • next tutorial, bucky will teach us how to dogie.

  • if you guys are so worried about program being slow you can just not import stuff and then correct it by hovering over red line (if oyu are using eclipse)

  • this guys is just an insane Teacher it's hard to belive that someone can be so INCREADIBLE way way way way better teacher then the teachers we have in university. I mean university teachers probaly know more but this guys CAN FUCKING TEACH GOOD

  • this guys is just an insane Teacher it's hard to belive that someone can be so INCREADIBLE way way way way better teacher then the teachers we have in university. I mean university teachers probaly know more but this guys CAN FUCKING TEACH GOOD

  • import java.awt.*;

    import javax.swing.*;

    import java.awt.event.*;

    much easier

  • @TheScars75 could it be more easyer , ?

    like that import java.*  import javax.* ???

    pls answer

  • @n1c313a

    1. Please learn to spell and type with grammar that people could at least understand.

    2. No, I don't believe you can.

  • @TheScars75 sorry for my bad english but i'm from germany 

  • for as being lazy as you claim to be i'm surprised to still right click to copy something. Crtl + v my friend much easier lol.

  • @splitfiretj Heh, Ctrl + V pastes what is copied, I think you mean Ctrl + C, then Ctrl + V.

  • @TheElvenDremor lol that is what i ment, Ctrl+X, C and V where the best shortcuts i ever learned

  • thumbs up if you think ur going to forget all most of the imports :P

  • Youtube tutorial on one monitor, Netbeans 7.0 on the other, going to be a long night.

  • it would be simpler if you just typed "java.awt.*;"

  • why not just use the * symbol instead of all of those extra lines of code when importing? example:

    instead of:

    import java.awt.FlowLayout;import java.awt.event.ActionListener;­import java.awt.event.ActionEvent;imp­ort javax.swing.JFrame;import javax.swing.JTextField;import javax.swing.JPasswordField;imp­ort javax.swing.JOptionPane;

    use:

    import java.awt.*;import java.awt.event.*;import javax.swing.*;

    subsequently reducing file length and size when you are using larger files... just a tip :)

  • @TwizzyTheWizzy He knows, he just wants to show you which parts come from where. Plus this video is 2 years old, so... yeah

  • its funny how 500 people liked the last video but now its only 280

  • Very good tutorial set on GUI Buckz!I Thanks so much. Just needs more info on formatting the diffent items though. For ex., if I need to leave the password field at the bottom of the window, make the default text dissappear when I type, a new line between the text fields, centering, left, right justification etc... Thanks again for the great work!

  • 50000 people just watched the 2 GUI vids and quit :P

  • @zerohourkevin This is GUI!

  • @ashadow0309 This is event handling, read the title :P (Yes, I know, elements from GUI are incorporated, but the focus isn't on making GUI, it's responding to stuffs.)

  • Idol bucky

  • U r really awesome bucky...

  • computer god

  • dude where could I get a complete documentation of more winapps¿? and how would u make an AV engine? thanx in advance dude ur tuts rock

  • Why you don't just import all the javax.swing.*

  • is there a class you can import that just imports everything you need so you dont have to write all this import stuff?

  • oh well i'll just import everything cuz i dont give a fuck

  • I have a question: If you're gonna import a lot of stuff from awt and swing, why don't you just import the whole package? like (import java.awt.*;)?

  • @Pinkpapi If you import all of it, your program will run slower because it's importing unnecessary things it doesn't need to run. If you just import what you need, your program should run a lot more faster than if you import the whole package.

  • Thanks for all the vids, I have been following all, currently on 52, as you can guess and planning to finish em all & move to intermediate ones. Thanks agains for providing these. You rock.

  • I assume programmers reference a guide, am I right? I mean, without a lot of programming experience, I highly doubt one can memorize all of this syntax unless if they want to spend their whole life memorizing :)

  • @canadia7x Most programming languages have cheat sheets, but if you spend some time with any programming language you memorize it fairly quickly.

  • @Gyohdon Well, I hope I can memorize this info too! I'm going to look into some projects to do just so I can feel more familiar with the language.

  • where is the code for the "enter" key , or it will just set it by default for a textbox?

    help please

  • My hexacore + 8 gigs ram doenst need to save memory space, I'll import java.*;

  • How am I suppose to remember all this plus 1000+ java library indexes? :\

  • @threeclock Write it down ;)

  • Man you found that phone quick...

  • import java.awt.*;

    import java.awt.event.*;

    import javax.swing.*;

    much faster

  • @gatoo23 faster but also not necessary to import everything if he doesnt need it...you only import what you need, ask anyone in the field!!

  • @gatoo23 much faster... for the programmer but not for JVM that will now need to load the entire libraries instead of certain classes. In an enterprise application, utilizing specific classes instead of the entire libraries and only using a class or two, is necessary.

  • @gatoo23 works much slower

  • I'm upset. Nothing about "event handling"...

  • Ohp Missed a semicolon, eembarassing! xD

  • Haha he said extends.

  • Thank you for your videos! Nice job!

  • Netbeans has a GUI maker. It makes it ten thousand times easier.

  • @xXChaosHavokXx Java Programmers have a Brain. It makes them look more professional.

  • can we create our own event like value of integer variable exceeds a limit

  • I just finished 52 tutorials in 7 hours (give or take) its 4AM... im tired. Goodnight. Bucky, You. Are. Pure. Amazing.

  • why not just this

    import java.awt.*;

    import java.awt.event.*;

    import javax.swing.*;

  • @TheAdventuresClayMan I think he brakes them down just so people can see what each does.

  • @TheAdventuresClayMan It's because when you do that you load everything, including the stuff you won't be using, and this takes up a lot more memory and is just a waste. :)

  • @TheAdventuresClayMan to save memory space :)

  • which University are u studying in...?

  • 0528203 , i am studting computer Science and am in my second year, i know all of this stuff i even build my own application.

    if you want it feel free to ask me i will email you :)

    but i think these Tutorials are very useful so ye Weldone Bucky ;)

  • mate you are getting me through university. Your better at teaching then the lecturers.

  • now what a event Handler is.... no idea!

  • I had a question that you might be able to answer, why not just type "import javax.swing.*;" etc. is it faster when running the program for it to only import the things you use?

  • bucky may i ask because i bet alot of people are wondering not just me but what are your qualifications are you studying at university or college and is this your job sorry for being so personal as im training as an engineer and then going down the computer engineering route thx in advance rate this up if you want to know?

  • @0528203 he`s working for nbsa oaviously :D

  • @0528203 i'm certain that Bucky mentioned that he has a job that's not making tutorial and wishes that this is his job.

  • setLayout method comes from classw hich is extended JFrame

  • if ur using eclipse why dont u just type "import classname" and press control space that way you can save more of your precious seconds... import with * bad idea and bad habit... specially for begginners...

  • Save yourself alot of copying and pasting by just importing the whole thing... t doesn't effect programs as only required things are imported just type

    import java.awt.*;

    import java.awt.event.*;

    import javax.swing.*;

    instead of all the seperate ones. Notice that awt.event is a different package and in not included in awt.* :)

  • buckey can you give me the link or your email id..?

    i want this whole series to be downloaded..

    i need to make you my professor..

    so do reply me.

  • Love you bucky, no homo! ;)

  • lol...those imports shows off like complex prog..

  • importing the specific libraries is a good thing. it IS a tutorial. It re-enforces learning the use of that particular item. Not trolling here but if I was cool with just

    import javax.swing.*;

    I'd probably not need to watch these. Keep being specific Bucky. First rule in training.

  • AHHHH! Useless imports!!!

    import java.awt.*;

    import javax.swing.*;

    So much easier, and it gets every possible thing without worry;

  • Why he is importing crap by crap is for only tutorial purpose.. Helps make you notice what crap does what XD

    NICE TUIT 5/5

  • constructors dont have return type?

  • @nitantm No. the constructors return, in fact, the object that was created

  • @nitantm

    You are right. That is the easiest way to see if its a function or a constructor. Remember that they do not hade tha same task though.

  • wfgfe

  • Can't i just import java.awt.* ?

    and javax.swing.* ?

  • Why is it you don't just import java.awt.* ?

  • start a programme " Babe " LOL 9:45

  • you always say youre lazy so why write:

    private JTextField Text1;

    private JTextField Text2;

    private JTextField Text3;

    and not private JTextField Text1, Text2, Text3? ;

    :D

  • Thats what I do for all :D

  • @Fjerdue well that's not a big deal

  • why is he not using jigloo?

  • hmk25061984

    keep yer mouth shut!!!

  • hey good videos thanks its great. just one tip though. instead of writing super ("ksljkakjdka") for the title, you could just use the JFrame method setTitle("ksdjksdjjds"), hope that helps. thanks.

  • this series is really helpful. great work, man!

  • well, this is pretty much equal to actionScript 3.0...

    I wich adobe could do something for adobe to make flash applications have more control of somethings... then I would not need to learn java to build serial port applications :S

    but very nice tutorial :)

    the messing about java is the amout of API there are for using in programs

    so much thing to know

  • thanks Bucky you have saved myself and others in my java class from certain doom or at least stopped us all from pulling out hair out .

  • You're the king mate! your work is really appreciated

  • is there not a quicker way to import all of them?

  • he shows you that in later tutorials

    import java.awt.*;

    import javax.swing.*;

    import javax.swing.event.*;

  • Bucky,

    Just do import these instead of all that crap..

    import javax.swing.*;

    import java.awt.*;

  • Advanced programmers always say that you should write only the libraries in java you are going to use. I dont know why exactly but maybe it is about memory space, efficiency or performance.

  • It's not about memory or space or anything else apart from simply knowing what you used in your program. It really when you try and correct a programme in like 3 months. If you just have a bunch of packages with * you'l be like wtf did i do here.

  • Yeah actually you are right man... my bad

  • @erhanpartal well those three things are about all the things you could affect in programming ...

    and actually you are right, but it's not "or" its "and", all of them.

    because if you call for libraries you don't use it wastes memory space and therefore this program needs more pages to run on, and page faults occur more often, so the efficiency and performance goes down with it.

  • @erhanpartal yeah it is due to space conservation and enhanced performance. Think of it like this, you might not notice it harming or slowing your program(s) at first, but when you start getting bigger programs that require more and more from your system, you'll start to see how more efficient it is to have only the necessaries available.

  • @erhanpartal :calling too many libraries or imports wont degrade performance..

  • @erhanpartal No, the JVM only use full-package-name. so the performance is the same. but it's a good style to import classes explicitly unless you have too many classes to import.

  • Elipse doesn't just let you go on about coding like that, it will show an error and wont let you compile to execute the code.

  • Then you won't get java.awt.event.

  • @MrKiller00224

    I always use import *;

  • @MrKiller00224

    it slows round the compling and u don't learn that way

  • @MrKiller00224 The way he did it is better. Using a wildcard for importing is stupid and amateur.

  • @MrKiller00224 You're expected to know where exactly is it coming from. You're asked that in interviews. importing everything makes is heavy.

  • @MrKiller00224 this is a tut, would make no sense to import everything, since he's trying to show people what each code does

  • @MrKiller00224 That can make it run alot slower.

  • @MrKiller00224 He is trying to emphasize exactly what we are learning and also providing self-documentation.

  • You can make your tutorials over 10 minutes man!!!

  • you should open each of your vids with a joke ;)

  • fine

  • YAAYYYY

  • brilliant!!

  • dudeeee look at your info for the description. You spelled first wrong. :))

  • haha i fixed it

  • @thenewboston makeyouryouspellitwrong :D

  • @thenewboston I think unfixed was cooler!

  • @thenewboston Dude I like the way you teach but I need some more advanced stuff.

  • @poke1103

    nd u misspelled dude...kekeke :P

  • 7th!

  • Awesomeness!

  • kjj

  • nice

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more