Intermediate Java Tutorial – 39 – GUI for Bucky Instant Messenger

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

48 responses to “Intermediate Java Tutorial – 39 – GUI for Bucky Instant Messenger”

  1. Bhaskar Dhanavath Avatar

    I need more videos about instant messenger from intermediate tutorial

  2. daniel6a1015 Avatar

    can I implement ActionListener at the beginning and use (this) to represent the actionListener instead of creating a new actionListener?

  3. tip4 tech Avatar

    bro u are a good teacher and u explain every single line of code so beautiful Thanx man

  4. alisalman hussein Avatar

    can i use this app u r making to download and upload light files like word or pictures???thank u

  5. Evgeni Kuzmov Avatar

    for example. new JTextArea that is on the right side of the line. what does it mean, new what? a chatWindow variable of a new built-in JTextArea class ?

  6. durgahed waliid Avatar

    what is the purpose of the jscrollpane?

  7. Pratham Dhawan Avatar

    is this app going to the playstore

  8. sagda bakr Avatar

    where can i find the jframe class that is extended in server class

  9. Dreandor Avatar

    I've get an error at: sendMessage(event.getActionCommand());
    The Error called: cannot find symbol

  10. Adit Kirtani Avatar

    You should use lambda expressions

  11. OverloadedCore Avatar

    if you do public Server(){ then click enter, it automatically puts in the other bracket.

  12. Lindiwe Mncwabe Avatar

    You are the Best teacher.Thanks….

  13. Brice Maurice Avatar

    why don't you put the JTextField and the JTextArea into a Panel?

  14. Alexander Falk Avatar

    Please make a Tutorial about this in JAVAFX.

  15. DubstepSheep Avatar

    3:11 "I'm not going to explain to you guys, because you already know what's going on right here" 3:15 *Explaining 🙂
    You are the best teacher on the world Bucky

  16. Will Barden Avatar

    This is great! Thank you

  17. Dzz Avatar

    What is the difference between this:
        super("title");
    And this:
        JFrame frame = JFrame();
        frame.setTitle("some title");

  18. Life Avatar

    is there a reason he always writes gui in the constructor?

  19. Aidan Siener Avatar

    oh i spotted my error hear is working code
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;

    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;

    public class Server extends JFrame {
    private JTextField ut;//made a j text field for your texts that you will send
    private JTextArea cw;//made chat window to view others text
    private ObjectOutputStream o;//made variable to out put text to the other computer 
    private ObjectInputStream i;//made variable to recve the text
    private ServerSocket s; //made some thing that can recive texts
    //constructor
    public Server(){
    super("aidan's instant messager");
    ut = new JTextField();//made box where you can enter text and send it
    ut.setEditable(false);//made the conversaion not editable 
    ut.addActionListener(//made actoin listener to check if you pressed enter
    new ActionListener(){
    public void actionPerformed(ActionEvent event) {
    sendMessage(event.getActionCommand ());//what to do when user sends message
    ut.setText("");//made it so after you enter text and send it it gets cleared
    }

    }
    );
    add(ut , BorderLayout.NORTH);
    cw = new JTextArea();
    add(new JScrollPane(cw));
    setSize(1920,1080);
    setVisible(true);
    }
    //set up and run the server
    public void startRunning(){

    }}

  20. Aidan Siener Avatar

    i'm getting an error on getActionCommand instead of sentMessage
    hear is my code
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;

    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;

    public class Server extends JFrame {
    private JTextField ut;//made a j text field for your texts that you will send
    private JTextArea cw;//made chat window to view others text
    private ObjectOutputStream o;//made variable to out put text to the other computer 
    private ObjectInputStream i;//made variable to recve the text
    private ServerSocket s; //made some thing that can recive texts

    //constructor
    public Server(){
    super("aidan's instant messager");
    ut = new JTextField();//made box where you can enter text and send it
    ut.setEditable(false);//made the conversaion not editable 
    ut.addActionListener(//made actoin listener to check if you pressed enter
    new ActionListener(){
    public void actionPerformed(ActionEvent enter) {
    sendMessage(event.getActionininsted of seninsted Command());//what to do when user sends message
    ut.setText("");//made it so after you enter text and send it it gets cleared
    }

    }

    );
    add(ut , BorderLayout.NORTH);
    cw = new JTextArea();
    add(new JScrollPane(cw));
    setSize(1920,1080);
    setVisible(true);
    }
    //set up and run the server
    public void startRunning(){

    }}

  21. Joe Q Avatar

    By the end of this video and the last, I had error messages and warnings on pretty much every line. I have made no mistake in the programming and have followed your tutorial basically word for word except for a few variable names. Does it matter if I am using Eclipse rather than another Java language program? Also, does it matter what kind of JRE I use? At the moment I am using the default CDC 1.1 JRE. I have both JRE7 and JRE8 installed on my computer though. If I do need to switch to these all I do is add them to the installed JRE list, right?

  22. George Thomas Avatar

    Pro tip, try using ' setTitle("This is the title"); ' instead of ' super("This is the title"); '.

  23. NONO NAWAL Avatar

    hello, can you guys send me the code

  24. Hasan Khan Avatar

    i am getting a WARNING in the 7th line of code 
    it says—

    Multiple markers at this line
    – The serializable class Server does not declare a static final serialVersionUID field of 
    type long
    – Occurrence of 'Server'

  25. amee gosar Avatar

    Bucky is a ghost! A good one.

  26. Games. Avatar

    Not many viewers left
    who's gonna make it?

  27. Games. Avatar

    Start Advertising for thenewboston

  28. chrispychips5 Avatar

    Thank you for actually explaining everything! This may be the most useful tutorial i've ever seen

  29. Sabbib Chowdhury Avatar

    hey bucky, have u ever explained: super(); can u please refer me to ur video or explain it in a video.

  30. Ikilledmorphy Avatar

    He's using Eclipse.

  31. Alucard Tepes Avatar

    i think its Java 60 minutes a day by Rich Raposa.

  32. ThePhan7em Avatar

    What book? Id like to read it thanks.

  33. Tegyukfel Avatar

    Then go read it. I learn programming at the university and to us who need a crash course from Java, Bucky is a perfect and fast teacher. I don't have time to finish a xy hundred page book if I can get an A just by learning from Bucky's tutorials.

  34. adziz H Avatar

    He COPIED a BOOK. Hes a FAKE. UNSUBSCRIBE NOW.

  35. amsfuy Avatar

    What's the problem? Through his videos thousands of programmers are reached that will NEVER read the book.
    He could have mentioned his source, though, as he did with the php-ajax chat.

  36. james hudson Avatar

    its build in to the actionlistener

  37. EvoPortal Avatar

    This ENTIRE chatroom app and tutorial has been copied from a book that I just read. lol.

  38. JayitInc [New Channel: Trenton Pottruff] Avatar

    yes you can use this. he sends string across so why not ints and floats and stuff

  39. raterake Avatar

    JTextField is a class, and the first letters in each word in the class name is capitalized. It's just proper java syntax

  40. Luckas Steyaert Avatar

    because its java syntax…

  41. TheAwesomeDudeGuy Avatar

    Can this be used to make Multiplayer Games?
    Or are other methods used there?
    (Method not like a java method)

  42. Demeter Dzadik Avatar

    that would make it become null instead of a JTextField, that would turn out wrong :>

Leave a Reply

Your email address will not be published. Required fields are marked *