Java Tutorial 29 (GUI) – Draw Lines

///Java Tutorial 29 (GUI) – Draw Lines

Java Tutorial 29 (GUI) – Draw Lines

FavoriteLoadingAdd to favorites

After watching this, you’ll know how to create lines and you’ll know how to add colors.

source

Java468x60
By |2020-03-17T02:19:52+00:00March 17th, 2020|Java Video Tutorials|29 Comments

29 Comments

  1. Wiktor Kochaniak March 17, 2020 at 2:19 am - Reply

    WHERE HE WROTE THIS METHOD?!?!
    HE WROTE IT AND THEN PUFF AND IT WORKS BUT HE DIDNT WRITE TO START THE METHOD
    WTF!

  2. hayat burda March 17, 2020 at 2:19 am - Reply

    how the line can move with time?…

  3. garymcgo1 March 17, 2020 at 2:19 am - Reply

    JOHN JIZZDICK

  4. Luqman Oqbah March 17, 2020 at 2:19 am - Reply

    Thank you so much

  5. MLXIIX March 17, 2020 at 2:19 am - Reply

    How do you do vertical and parallel lines

  6. Anita Sun March 17, 2020 at 2:19 am - Reply

    My stupid professor never teaches codes in class. These videos saved my life. LOL.

  7. Eric Sellers March 17, 2020 at 2:19 am - Reply

    Where are you calling the paint method

  8. Ваня Веревкин March 17, 2020 at 2:19 am - Reply

    border size ?

  9. mpforeverunlimited March 17, 2020 at 2:19 am - Reply

    Is there any way to save all of those lines as a shape so that whenever it is called it summons the entire shape?

  10. lauchiii March 17, 2020 at 2:19 am - Reply

    thank u very much!!! that video was very helpful!!!!

  11. Todd F March 17, 2020 at 2:19 am - Reply

    Can you show how to draw a straight line?

  12. Igor Kalinowski March 17, 2020 at 2:19 am - Reply

    How to make dynamic cross(diagonal) in java?

  13. Nathan Crawley March 17, 2020 at 2:19 am - Reply

    DUDE STOP WITH THE ZOOM!!!! just up your quality

  14. Karen Sarmiento March 17, 2020 at 2:19 am - Reply

    Why does this work if the paint method is never called in main?

  15. 123TeeMee March 17, 2020 at 2:19 am - Reply

    Is your last name real?

  16. yasir mohamed March 17, 2020 at 2:19 am - Reply

    u r charming
    thank u very much

  17. Rabi Manandhar March 17, 2020 at 2:19 am - Reply

    Sir, How to create a thick line in java ?

  18. Ahivan64 March 17, 2020 at 2:19 am - Reply

    for a "drawPolyline" i have this:
    screen.setColor(Color.red);
    int[ ]blablaX={188,197,213,223};
    int[ ]blablaY={146,141,142,146};
    screen.drawPolyline(blablaX, blablaY, 4);

    //i have a doubt on this line and whats the diference in: g.set….. screen.set…..

  19. Trần Hoà March 17, 2020 at 2:19 am - Reply

    I want to draw a line under the pointer. i do like? pls help me? tks a lot!

  20. Will Thompson March 17, 2020 at 2:19 am - Reply

    thankyou, the best!

  21. Jakub K. March 17, 2020 at 2:19 am - Reply

    it tells me to delete the g token (after (graphics g))????can you tell me how to fix it????please i would give you cake 😀

  22. Mark Hermano March 17, 2020 at 2:19 am - Reply

    dude how do you change the stroke of drawLine? is that possible?

  23. Kwak Byeong-rae March 17, 2020 at 2:19 am - Reply

    thx for your good coaching

  24. Ricardo Arteaga March 17, 2020 at 2:19 am - Reply

    quite useful to draw on GUI.

  25. donotpayattention March 17, 2020 at 2:19 am - Reply

    That's not a color library, that's a Color class.

  26. Mut4ntG4m3r March 17, 2020 at 2:19 am - Reply

    I have to thank you for this. you just saved my homework.I totally forgot how to do this stuff^^

  27. edwin espinoza March 17, 2020 at 2:19 am - Reply

    @MrGIZDICH is it possible to make random lines with the random number class? if so can you tell me how? thanks

  28. John Gizdich March 17, 2020 at 2:19 am - Reply

    @hellsing357 Yeah, it is possible. Thank you and np.

  29. hellsing357 March 17, 2020 at 2:19 am - Reply

    Wow

    Great video

    Thank you.
    😀

    Question : Can I make a line on top of other components ?
    For example a have a label with picture and I want to draw a line across it
    is that possible.

    Thank you in advance
    More powers

Leave A Comment

*